Dark Mode

Settlements By ID API


The following endpoint retrieves the settlement based on ID

/settlements/:id

Run in Postman

Query Attributes

id

String
Mandatory

Unique identifier of the settlement ID

Example
curl --location --request GET 'api.durianpay.id/v1/settlements/set_WDizQUoyWy8680' \
--header 'Authorization: <SECRET KEY>'

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
{
  "data": {
    "id": "set_WDizQUoyWy8680",
    "settlement_amount": "50000",
    "status": "settled",
    "fee": "10000",
    "created_at": "2021-05-17T08:32:00.628182Z",
    "settled_at": "2021-05-27T08:32:00.628182Z",
    "promo_amount": "10000"
  }
}

401 - Unauthorized Access

404 - Not Found