Fetch top-up detail by ID API

The following endpoint retrieves the details of the top-up created by ID.


Path parameters

Fieldis required?Description
idmandatorystring Unique identifier of the topup to be retrieved.


curl -X GET \
  https://api.durianpay.id/v1/disbursements/topup/topup_WipuEEkAk83245 \
  -H 'authorization: [Base64({Your_Server_Key}:)]' \
  -H 'content-type: application/json' \

Response Code : 200

Here is an example of success response

    "data": {
        "total_amount": "12000.00",
        "unique_code": 10,
        "expiry_date": "2021-03-21T09:58:53Z",
        "bank_account_number": "121212",
        "bank_name": "BCA",
        "bank_holder_name": "Receiver",
        "status": "processing"

Error Response Code : 401

Here is an example error response for unauthorized access

    "error": "invalid Authorization header in request",
    "error_code": "DPAY_UNAUTHORIZED_ACCESS"

Error Response Code : 500

Here is an example error response for internal server error

    "message": "sql: no rows in result set",
    "error": "error getting topup by id"
    "error_code": "DPAY_INTERNAL_ERROR"