Dark Mode

Fetch Disbursement Items by ID API


The following endpoint retrieves the details of disbursement items created

/disbursements/:id/items

Run in Postman

Path Attributes

id

String
Mandatory

Unique identifier of the disbursement to be retrieved.

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

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
    "data": {
        "submission_status": "completed",
        "disbursement_batch_items": [
            {
                "id": "dis_item_XXXXX",
                "disbursement_batch_id": "dis_XXXXX",
                "account_owner_name": "John Doe",
                "real_name": "Dummy Name",
                "bank_code": "bca",
                "amount": "10000.00",
                "account_number": "8422647",
                "email_recipient": "john@nomail.com",
                "phone_number": "85609873209",
                "invalid_fields": [
                    {
                        "key": "bank_code",
                        "message": "Invalid BankCode/AccountNumber"
                    },
                    {
                        "key": "account_number",
                        "message": "Invalid BankCode/AccountNumber"
                    }
                ],
                "status": "invalid",
                "notes": "salary",
                "is_deleted": false,
                "created_at": "2021-05-03T13:54:28.842634Z",
                "updated_at": "2021-05-03T13:54:28.842635Z"
            },
            {
                "id": "dis_item_XXXXX",
                "disbursement_batch_id": "dis_XXXXX",
                "account_owner_name": "Jake",
                "real_name": "Dummy Name",
                "bank_code": "bca",
                "amount": "10000.00",
                "account_number": "235464",
                "email_recipient": "jake@nomail.com",
                "phone_number": "85609873209",
                "status": "valid",
                "notes": "salary",
                "is_deleted": false,
                "created_at": "2021-05-03T13:54:28.842637Z",
                "updated_at": "2021-05-03T13:54:28.842637Z"
            }
        ],
        "count": 2,
    }
}

401 - Unauthorized Access

500 - Internal Server Error