Skip to main content

Orders Fetch by ID API

The following endpoint retrieves the details of a single Order

/orders/:id

Path parameters#

Fieldis required?Description
idmandatoryinteger Unique identifier of the Order to be retrieved

Query parameters#

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

Example#

curl -u <YOUR_SECRET_KEY> \
-X GET https://api.durianpay.id/v1/orders/ord_B14sdfwAdmmSDF24a \
-H "content-type: application/json"'

Response#

{
"id": "ord_A31sd3AwAgItmmXdp",
"amount": "20000",
"payment_option": "full_payment",
"currency": "IDR",
"status": "started",
"is_live": true,
"order_ref_id": "order2314",
"created_at": 1582628071,
"metadata": []
}