Dark Mode

Settlements Status By Payment ID API


The following endpoint retrieves the settlement status based on Payment ID for a particular merchant

/settlements/details

Run in Postman

Query Attributes

payment_id

String
Mandatory

Unique identifier of the payment ID

Example
curl --location --request GET 'api.durianpay.id/v1/settlements/details?payment_id=pay_O7laHvW2BI5527' \
--header 'Authorization: <SECRET KEY>'

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
{
  "data": {
    "settlement_id": "set_WDizQUoyWy8680",
    "payment_id": "pay_O7laHvW2BI5527",
    "payment_reference": "",
    "order_id": "ord_KlQRqodMqq0540",
    "order_reference": "order_ref_001",
    "status": "settled",
    "currency": "IDR",
    "settlement_amount": "19635.00",
    "total_settlement_fee": "365.00",
    "payment_discount": "",
    "settled_at": "2021-05-17T08:32:00.628182Z",
    "group": "A",
    "payment_amount": "20000.00",
    "payment_date": "2021-05-17T08:26:43.990125Z",
    "transaction_amount": "20000.00",
    "payment_channel": "ewallet_details",
    "payment_subchannel": "SHOPEEPAY"
  }
}

401 - Unauthorized Access

404 - Not Found