Skip to main content

Top-up API

Top-up amount#

The following endpoint can be used to top-up amount to durianpay account:

/disbursements/topup

Request parameters#

Following are the parameters to be sent in the request body:

Fieldis required?Description
bank_idmandatoryinteger The id of the bank retrieved from the banks API.
amountmandatorystring The amount of money to top-up.

Example#

curl -u <YOUR_SECRET_KEY> \
-X POST https://api.durianpay.id/v1/disbursements/topup \
-H "content-type: application/json" \
-d '{
"bank_id": 1,
"amount": "10000"
}'

Response#

{
"data": {
"sender_bank": "bni",
"total_amount": "10000",
"status": "processing",
"expiry_date": "2021-03-21T09:58:53Z",
"transfer_to": {
"bank_code": "bni",
"bank_name": "BNI / BNI Syariah",
"atm_bersama_code": "009",
"bank_account_number": "0437051936",
"account_holder_name": "PT Fliptech Lentera Inspirasi Pertiwi",
"unique_code": 10
},
}
}