Check Single Transaction
Endpoint:
https://api.cronosengine.com/api/check/:id?resendCallback=true
Method : GET
Allows Merchants to get list of transaction's 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);
info
The system retains transaction records for the last seven days only. For access to records older than this period, please contact your system administrator.
Path Variables
| Variable | Description |
|---|---|
| id | The ID of the transaction. |
Parameters
| Parameter | Description | Default |
|---|---|---|
| resendCallback | true / false | false |
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. |
Example
Request
- cURL
curl --location 'https://api.cronosengine.com/api/check/757cc3c7-fb6a-4c4b-bc99-0928ca398a9d' \
--header 'On-Key;' \
--header 'On-Token;' \
--header 'On-Signature;' \
--data '{
"bankCode": "014",
"recipientAccount":"0821837182312831",
"reference": "123456",
"amount": 10000,
"additionalInfo": {
"callback": "http://your-site-callback.com/notify"
}
}'
Response
{
"responseCode": 200,
"responseMessage": "success",
"responseData": {
"id": "757cc3c7-fb6a-4c4b-bc99-0928ca398a9d",
"merchantRef": "123456",
"status": "pending",
"feePayer": "customer",
"amount": 10000,
"fee": 3000,
"totalAmount": 13000,
"expiredDate": "2023-07-13T11:51:41+07:00",
"additionalInfo": {
"callback": "https://kraken.free.beeceptor.com/notify"
},
"disbursement": {
"bankCode": "014",
"recipientAccount": "0821837182312831",
"recipientName": "Mr. Gentur"
}
}
}