Dark Mode

Approve Disbursement API


The following endpoint approves a disbursement:

/disbursements/:id/approve

Run in Postman

Path Attributes

id

String
Mandatory

Unique identifier of the disbursement to be approved.

Query Attributes

ignored_invalid

Boolean
Optional

Default false. If set to true, ignores the invalid batch items and disburse only the valid items.

Example
curl -u [Base64({Your_Server_Key}:)] \
-X POST https://api.durianpay.id/v1/disbursements/dis_XXXXX/approve \
-H "content-type: application/json" \

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
{
    "data": {
        "id": "dis_XXXX",
        "name": "sample disbursement",
        "type": "batch",
        "status": "approved",
        "total_amount": "10000.00",
        "total_disbursements": 1,
        "description": "this is a sample disbursement"
    }
}

400 - Invalid Request

401 - Unauthorized Access

500 - Internal Server Error