Skip to main content

Approve Disbursement API

Approve disbursement#

The following endpoint approves a disbursement:

/disbursements/:id/approve

Path parameters#

Fieldis required?Description
idmandatorystring Unique identifier of the disbursement to be approved.

Query parameters#

Fielddefaultis required?Description
ignore_invalidfalseoptionalboolean If set to true, ignores the invalid batch items and disburse only the valid items.

Example#

curl -u <YOUR_SECRET_KEY> \
-X POST https://api.durianpay.id/v1/disbursements/dis_XXXXX/approve \
-H "content-type: application/json" \

Response#

{
"data": {
"id": "dis_XXXX",
"name": "sample disbursement",
"type": "batch",
"status": "approved",
"total_amount": "10000.00",
"total_disbursements": 1,
"description": "this is a sample disbursement"
}
}