Dark Mode

Top-up Amount API


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

/disbursements/topup

Run in Postman

Request Attributes

bank_id

Integer
Mandatory

The id of the bank retrieved from the banks API.

amount

String
Mandatory

The amount of money to top-up.

Example
curl -X POST \
  https://api.durianpay.id/v1/disbursements/topup \
  -H 'authorization: [Base64({Your_Server_Key}:)]' \
  -H 'content-type: application/json' \
  -d '{
    "bank_id": 1,
    "amount": "10000"
}'

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
    "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
        },
    }
}

400 - Invalid Request

401 - Unauthorized Access

500 - Internal Server Error