Skip to main content

Disburse

Endpoint:

https://api.cronosengine.com/api/disburse

Method : POST

Request Parameters

ParameterMandatoryDescription
bankCodeYesThe code representing the bank to be used for the transaction. you can find the list of available bank codes here.
recipientAccountYesThe bank account number of the customer, which will be the receiver of the transaction.
referenceYesA unique reference number or identifier for the transaction. all transaction references should be unique.
amountYesAmount your user should paid to complete the transaction.
additionalInfo.callbackYesThe callback URL where notifications or updates related to the transaction will be sent.

Headers

KeyValue
On-KeyProject Key
On-TokenProject Token
On-SignatureGenerated using : hash_hmac('sha512', key + json_encode(body), token)
Acceptapplication/json

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.idCronos unique identifier for the transaction.
responseData.statusThe current status of the transaction. success, pending, expired, failed
responseData.feePayerThe party responsible for paying the transaction fee. customer, merchant
responseData.amountThe original amount associated with the transaction.
responseData.feeThe fee charged for the transaction.
responseData.totalAmountThe total amount (original amount + fee) for the transaction.
responseData.expiredDateThe date and time when the transaction will expire.
responseData.additionalInfo.callbackThe callback URL where notifications or updates related to the transaction will be sent.
responseData.disbursement.bankCodeThe code representing the bank destination of the disbursement.
responseData.disbursement.recipientAccountThe bank account number destination for the disbursement.
responseData.disbursement.recipientNameThe name or identifier associated with the bank account.

Example

Request

curl --location 'https://api.cronosengine.com/api/disburse' \
--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"
}
}
}