Fetch Disbursement Status API
This endpoint retrieves the details of a disbursement using either the batch ID or the reference ID.
Request Body
The request body can contain either disbursement_batch_id
or idempotency_key
to fetch the disbursement details. If both are provided, disbursement_batch_id
will take precedence for fetching the disbursement details.
disbursement_batch_id
String
Optional
Unique identifier of the disbursement batch.
idempotency_key
String
Optional
Unique identifier for the request to prevent duplicate submissions.
If the response is 5xx, please try again and do not mark the disbursement batch as failed. Alternatively, you can check with the Durianpay team for assistance.
Example
curl -u [Base64({Your_Server_Key}:)] \
-X POST https://api.durianpay.id/v1/disbursements/status \
-H "content-type: application/json"
--data '{
"disbursement_batch_id" : "dis_xxx",
"idempotency_key" : "idem_123"
}'
Response Code
200 - Success
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{ "data": { "id": "dis_123", "name": "sample disbursement", "idempotency_key": "123xxx", "type": "batch", "status": "approved", "submission_id": null, "total_amount": "20000", "total_disbursements": 2, "description": "this is a sample disbursement", "approver": null, "maker": null, "fees": 6000, "created_from": "api", "created_at": "2024-05-28T12:53:50.34886Z", "updated_by": "", "updated_at": "2024-05-28T12:53:50.34886Z", "approved_at": "0001-01-01T00:00:00Z", "is_live": true, "last_sync_status_at": null, "general_notes": "" } }
401 - Unauthorized Access
404 - Not Found
500 - Internal Server Error
504 - Gateway Timeout