Order Fetch by ID API
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", "customer_id": "cus_A31sd3AGtsItmmXdp", "amount": "20000", "payment_option": "full_payment", "currency": "IDR", "status": "started", "is_live": true, "order_ref_id": "order2314", "order_ds_ref_id": "", "created_at": 1582628071, "updated_at": 1582888071, "description": "Testing", "is_live": true, "items": null, "shipping_fee": "100" "payment_option": "full_payment", "payment_link_url": "", "is_notification_enabled": false, "email_subject": "", "admin_fee_method": "included", "fees": "1001", "email_content": "", "metadata": [] }
401 - Unauthorized Access
404 - Not Found
500 - Internal Server Error