VA balance and statement
Last updated
Last updated
These APIs give Klasha’s merchants the ability to retrieve the balance of their Virtual Account as well as the statement of their transactions.
Generate a bearer token
POST
{{env_url}}/auth/auth/login
Using the Token endpoint on the Postman collection, the token can be obtained from the headers under the header name: token.
{{token}}*
String
token
username*
String
username
password*
String
password
Get Virtual Account Balance
GET
{{env_url}}/nucleus/virtual/account/collections/business/
You’d need to pass the merchant public key in the header as the x-auth-token. This can be obtained from your merchant dashboard → Settings → Generate API keys → Merchant public key.
x-auth-token*
String
merchant public key
Retrieve Transaction Statements
POST
{{env_url}}/nucleus/tnx/paginated/filter/v2
You will need to pass the merchant public key in the header as the x-auth-token. This can be obtained from your merchant dashboard → Settings → Generate API keys → Merchant public key.
You can get all your transactions by passing an empty body, or you can pass a body with any combination of the following 3 filters (all of them or just 1 or 2)
x-auth-token*
String
merchant public key
currency
String
NGN
status
String
failed
tnxRef
String
paylink-8e3172ac-4cb4-422f-a805-9a571f236939