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.

skip

Integer
Optional

The number of disbursement item to be skipped. The default value is 0. This can be used for pagination, in combination with count

limit

Integer
Optional

Number of disbursement item to be fetched. Default value is 25. This can be used for pagination, in combination with the skip parameter

Example
curl -u [Base64({Your_Server_Key}:)] \
-X GET https://api.durianpay.id/v1/disbursements/dis_XXXXXXX/items?skip=0&limit=50 \
-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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
    "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",
                "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",
                "split_id": "",
                "receipt": ""
            },
            {
                "id": "dis_item_XXXXX",
                "disbursement_batch_id": "dis_XXXXX",
                "account_owner_name": "Jake",
                "real_name": "Dummy Name",
                "bank_code": "bca",
                "amount": "10000",
                "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",
                "split_id": "",
                "receipt": ""
            },
            {
                "id": "dis_item_XXXXX",
                "disbursement_batch_id": "dis_XXXXX",
                "account_owner_name": "Jake",
                "real_name": "Dummy Name",
                "bank_code": "bca",
                "amount": "15000",
                "account_number": "235464",
                "email_recipient": "jake@nomail.com",
                "phone_number": "85609873209",
                "invalid_fields": [],
                "status": "done",
                "notes": "",
                "approver_notes": "",
                "is_deleted": false,
                "created_by": 6970,
                "updated_by": 6970,
                "created_at": "2023-03-13T12:14:04.151553Z",
                "updated_at": "2023-03-13T12:14:04.151553Z",
                "allow_retrigger": false,
                "split_id": "",
                "receipt": "https://dashboard.durianpay.id//img/dummy/receipt.png",
                "fee": "1000",
                "disbursement_status_set_at": "2023-03-13T12:14:46.987924Z"
            }
        ],
        "count": 3,
    }
}

401 - Unauthorized Access

500 - Internal Server Error