Getting Started with the Diool API | Balance Endpoint
The general details about the Diool's RESTful API and the prerequisites to use or test this endpoint with Postman can be found on the introductory article: Getting Started with the Diool API | Introduction.
The balance endpoint executes a request to retrieve the balance associated with a Diool user account.
There is no additional request parameter to provide because the API uses the account associated with the Bearer Token.
HTTP Method: GET
Already using or testing the API and need a hand?
Self service: Check out the FAQ.
Have a question..? Chat with us instantly through the Live Chat on our Help Center.
Totally stuck..? Send us a mail at helpdesk@diool.com and we will get back to you as soon as possible.
The balance endpoint executes a request to retrieve the balance associated with a Diool user account.
There is no additional request parameter to provide because the API uses the account associated with the Bearer Token.
HTTP Method: GET
Sample Request
# Here is a curl example of a balance request
curl
-H "Authorization: Bearer [API-KEY]"
-H "Content-Type: application/json"
-X GET "ENVIRONMENT_URL/balance"
Sample Response - Prod
{
"code": 0,
"message": "Balance retrieved successfully",
"developerMessage": null,
"moreInfo": "www.diool.com",
"resultType": "SUCCESS",
"result": {
"responseCode": "OK",
"responseMessage": "Action succeeded",
"availableBalance": 91902.41,
"timeStamp": "1692626823543"
}
}
Need Help?
Already using or testing the API and need a hand?
Self service: Check out the FAQ.
Have a question..? Chat with us instantly through the Live Chat on our Help Center.
Totally stuck..? Send us a mail at helpdesk@diool.com and we will get back to you as soon as possible.
Updated on: 23/08/2023
Thank you!