Skip to main content

Check Balance

Endpoint:

https://api.cronosengine.com/api/balance

Method : GET

Allows Merchants to check the project's balance from the Cronos system.

This is especially true when there's no message body to include. Hashing only the Project Key ensures a level of authentication between the client and the server.

$signature = hash_hmac('sha512', $key, $token);

Response Parameters

ParameterDescription
responseCodeThe HTTP response code indicating the status of the request. you can see the detailed information in the Error Codes Section.
responseMessageA descriptive message indicating the status of the request.
responseDataAn object containing the data related to the transaction response.
responseData.activeThe active balance of the merchant's project.
responseData.pendingThe pending balance of the merchant's project.
responseData.totalThe total balance of the merchant's project.

Example

Request

curl --location 'https://api.cronosengine.com/api/balance' \
--header 'On-Key;' \
--header 'On-Token;' \
--header 'On-Signature;' \
--data ''

Response

{
"responseCode": 200,
"responseMessage": "success",
"responseData": {
"active": 10000,
"pending": 10000,
"total": 20000
}
}