Settlements Fetch API
Query Attributes
from
Date
Optional
Timestamp (in Unix format) from when the settlements should be fetched
to
Date
Optional
Timestamp (in Unix format) up till when settlements are to be fetched
skip
Integer
Optional
The number of settlements to be skipped. The default value is 0. This can be used for pagination, in combination with count
limit
Integer
Optional
Number of settlements to be fetched. Default value is 10, Max value is 100. This can be used for pagination, in combination with the skip parameter
Example
curl --location --request GET 'https://api.durianpay.id/v1/settlements?limit=1&skip=1&from=2020-07-13&to=2021-07-13' \
--header 'Authorization: <SECRET KEY>'
Response Code
200 - Success
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{ "total_count": 1, "settlement_detail": [ { "id": "set_WDizQUoyWy1234", "settlement_amount": "20000.00", "status": "settled", "fee": "200.00", "promo_amount": "", "total_transcation_amount": "20200.00", "created_at": "2021-05-17T08:30:56.73529Z", "settled_at": "2021-05-17T08:32:00.628182Z", "currency": "IDR" } ] }
400 - Invalid Request
401 - Unauthorized Access
500 - Internal Server Error