Approve Disbursement

Changed on

The following endpoint approves a disbursement:

post/disbursements/{id}/approve

Request

  • Base URL
    https://api.durianpay.id/v1
  • URL
    https://api.durianpay.id/v1/disbursements/{id}/approve
  • Auth
    HTTP basic

Path parameters

idstring required

Unique identifier of the disbursement to be approved.

Query parameters

ignore_invalidboolean

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

Headers

X-Idempotency-Keystring required

The idempotency key used to submit a disbursement approve request. It will be used to prevent accidentally approving the same disbursement more than once.

Response

200

Example response

{
  "data": {
    "id": "dis_123",
    "name": "sample disbursement",
    "idempotency_key": "123xxx",
    "type": "batch",
    "status": "approved",
    "total_amount": "20000.00",
    "total_disbursements": 2,
    "description": "this is a sample disbursement"
  }
}

Changes