Dark Mode

Orders Fetch API


The following endpoint retrieves the details of all Orders created

/orders

Run in Postman

Query Attributes

from

String
Optional

Timestamp (in YYYY-MM-DD format) from when the Orders should be fetched

to

String
Optional

Timestamp (in YYYY-MM-DD format) up till when Orders are to be fetched

skip

Integer
Optional

The number of orders to be skipped. The default value is 0. This can be used for pagination, in combination with count

limit

Integer
Optional

Number of orders to be fetched. Default value is 25. This can be used for pagination, in combination with the skip parameter

Example
curl -X GET \
 https://api.durianpay.id/v1/orders?limit=50&skip=10 \
-H 'authorization: [Base64({Your_Server_Key}:)]' \
-H 'content-type: application/jso"'

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  "orders": [{
    "id": "ord_A31sd3AwAgItmmXdp",
    "customer_id": "cus_p46hhyWq988496",
    "amount": "20000",
    "payment_option": "full_payment",
    "currency": "IDR",
    "status": "started",
    "order_ref_id": "order2314",
    "order_ds_ref_id": "",
    "created_at": 1582628071,
    "updated_at": 1582899071,
    "expiry_date_": 1592628071,
    "is_live": true,
    "given_name": "John",
    "sur_name": "Doe",
    "email": "jude_casper@koss.info",
    "mobile": "+6285722173217",
    "payment_id": "pay_KEQQaXqazp2892",
    "payment_details_type": "bnpl_details",
    "payment_method_id": "ZZZZZZ",
    "payment_status": "completed",
    "payment_date": "2025-01-01T01:11:11.111111Z",
    "description": "this order is fetched",
    "payment_link_url": "zzzzzz",
    "is_notification_enabled": false,
    "email_subject": "This is email subject",
    "email_content": "This is email body"
  }, {
    "id": "ord_A54sd3AwAgItmmXdp",
    "customer_id": "cus_p96hhyWq988496",
    "amount": "20000",
    "payment_option": "full_payment",
    "currency": "IDR",
    "status": "started",
    "order_ref_id": "order2314",
    "order_ds_ref_id": "",
    "created_at": 1582628072,
    "updated_at": 1582899072,
    "expiry_date_": 1592628072,
    "is_live": true,
    "given_name": "Jane",
    "sur_name": "Doe",
    "email": "jane_doe@koss.info",
    "mobile": "+6285722223217",
    "payment_id": "pay_loQQaXqazp2892",
    "payment_details_type": "bnpl_details",
    "payment_method_id": "ZZZZZZ",
    "payment_status": "completed",
    "payment_date": "2025-01-01T01:11:11.111111Z",
    "description": "this order is fetched",
    "payment_link_url": "zzzzzz",
    "is_notification_enabled": false,
    "email_subject": "This is email subject",
    "email_content": "This is email body"
  }],
  "count": 2
}

400 - Invalid Request

401 - Unauthorized Access

500 - Internal Server Error