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.
- PHP
$signature = hash_hmac('sha512', $key, $token);
Response Parameters
| Parameter | Description |
|---|---|
| responseCode | The HTTP response code indicating the status of the request. you can see the detailed information in the Error Codes Section. |
| responseMessage | A descriptive message indicating the status of the request. |
| responseData | An object containing the data related to the transaction response. |
| responseData.active | The active balance of the merchant's project. |
| responseData.pending | The pending balance of the merchant's project. |
| responseData.total | The total balance of the merchant's project. |
Example
Request
- cURL
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
}
}