VA balance and statement

Summary

These APIs give Klasha’s merchants the ability to retrieve the balance of their Virtual Account as well as the statement of their transactions.

Before you begin!

  • Link to the Postman collection

  • Find your keys on the Klasha Dashboard → Settings → Generate API Keys (here).

  • Klasha Dashboard, Generate API Keys page

API specifications

Generate a bearer token

Use the token request endpoint to generate a bearer token and pass in the header of the api calls below.

Get Virtual Account Balance

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.

Headers

Name
Type
Description

x-auth-token*

String

merchant public key

Authorization*

String

bearer <token>

Retrieve Transaction Statements

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)

Headers

Name
Type
Description

x-auth-token*

String

merchant public key

Request Body

Name
Type
Description

currency

String

transaction currency

status

String

transaction status

tnxRef*

String

unique transaction reference

Last updated