Dark Mode

Order Fetch by ID API


The following endpoint retrieves the details of a single Order

/orders/:id

Run in Postman

Path Attributes

id

Integer
Mandatory

Unique identifier of the Order to be retrieved

Query Attributes

expand

Integer
Optional

Used to retrieve additional information about the Order. Supported values are: customer, payments. Example: /orders/ord_A1B1C1D1234?expand=customer&expand=payments

Example
curl -X GET \
  https://api.durianpay.id/v1/orders/ord_mJH2hKOSYb3514 \
  -H 'authorization: [Base64({Your_Server_Key}:)]' \
  -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
{
    "id": "ord_A31sd3AwAgItmmXdp",
    "amount": "20000",
    "payment_option": "full_payment",
    "currency": "IDR",
    "status": "started",
    "is_live": true,
    "order_ref_id": "order2314",
    "order_ds_ref_id": "",
    "created_at": 1582628071,
    "description": "Testing",
    "is_live": true,
    "given_name": "Doe",
    "sur_name": "",
    "email": "jude_casper@koss.info",
    "mobile": "+6285722173217",
    "payment_option": "full_payment",
    "description": "",
    "payment_link_url": "",
    "is_notification_enabled": false,
    "email_subject": "",
    "email_content": "",
    "payment_method_id": ""
    "metadata": []
}

401 - Unauthorized Access

404 - Not Found

500 - Internal Server Error