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 -u [Base64({Your_Server_Key}:)] \
-X GET https://api.durianpay.id/v1/orders?limit=50&skip=10 \
-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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  orders: [{
    "id": "ord_A31sd3AwAgItmmXdp",
    "amount": "20000",
    "payment_option": "full_payment",
    "currency": "IDR",
    "status": "started",
    "order_ref_id": "order2314",
    order_ds_ref_id": "",
    "created_at": 1582628071,
    "description": "Testing",
    "metadata": []
    "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": ""
  }, {
    "id": "ord_B14sdfwAdmmSDF24a",
    "amount": "10000",
    "payment_option": "full_payment",
    "currency": "IDR",
    "status": "started",
    "order_ref_id": "order1144",
    "created_at": 1578228010,
    "metadata": []
    "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": ""
  }],
  total: 2
}

400 - Invalid Request

401 - Unauthorized Access

500 - Internal Server Error