Top-up Amount API

Changed on

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

post/disbursements/topup

Request

  • Base URL
    https://api.durianpay.id/v1
  • URL
    https://api.durianpay.id/v1/disbursements/topup
  • Auth
    HTTP basic

Headers

X-Idempotency-Keystring required

The idempotency key used to submit a topup request. It will be used to prevent accidentally creating the same topup request more than once.

Request body

bank_idinteger required

The id of the bank retrieved from the banks API.

amountstring required

The amount of money to top-up.

Response

200

Example response

{
  "data": {
    "id": "topup_123",
    "sender_bank": "bni",
    "total_amount": "1123",
    "status": "processing",
    "expiry_date": "0001-01-01T00:00:00Z",
    "transfer_to": {
      "bank_code": "bni",
      "bank_name": "Bank BNI / BNI Syariah",
      "atm_bersama_code": "009",
      "bank_account_number": "12345678",
      "bank_holder_name": "PT DurianPay",
      "unique_code": 123
    }
  }
}

Changes