Use the getBalance endpoint to display the available balance for a company. Please discuss with your Partner Technical team for any queries.
Syntax
POST https://nairagrambasket.com/api/getBalance
Input Parameters
The following table lists the parameters that you need to provide in the getBalance request.
Field | Value Format | Required/Optional | Description |
---|---|---|---|
username | Yes | Required | Input the valid email address that you submitted to your Partner Company. |
password | Yes | Required | Input your secure password. |
secretKey | Yes | Required | Input the API key provided to you by your Partner Company. |
Sample Request
curl --location --request POST 'https://nairagrambasket.com/api/getBalance' \
--form 'username="Yes"' \
--form 'secretKey="Yes"' \
--form 'password="Yes"'
Sample Response
{
"Code": "200",
"Message": "Success",
"Content": [ ]
}
OR
{
"Code": "401",
"Message": "Unauthorized",
"Content": {
"error": "Invalid Token"
}
}