Submit Disbursement

Changed on

The following endpoint submit a disbursement:

post/disbursements/submit

Request

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

Query parameters

force_disburseboolean

If this parameter is true then the batch will be validated and disbursed. In this case, approve API doesn't need to be called. Default value: true

Headers

idempotency_keystring required

The idempotency key used to submit the disbursement batch. It will be used to prevent accidentally creating the same disbursement more than once.

X-Idempotency-Keystring required

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

Request body

namestring

The name given for the disbursement batch to be submitted.

descriptionstring

The description for the disbursement batch.

Response

200

Example response

{
  "data": {
    "id": "dis_123",
    "name": "sample disbursement",
    "idempotency_key": "123xxx",
    "total_amount": "20000",
    "total_disbursements": 2,
    "description": "this is a sample disbursement"
  }
}

Changes