v1

latestOpenAPI 3.1.02026-07-26500375.1 KB

Order Fetch API

The following endpoint retrieves the details of all Orders created

get/orders

Query parameters

fromstring

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

tostring

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

skipinteger

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

limitinteger

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

Response

200

countinteger

Example response

{
  "orders": [
    {
      "id": "ord_A31sd3AwAgItmmXdp",
      "customer_id": "cus_p46hhyWq988496",
      "amount": "20000",
      "payment_option": "full_payment",
      "currency": "IDR",
      "status": "started",
      "order_ref_id": "order2314",
      "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",
      "email_subject": "This is email subject",
      "email_content": "This is email body"
    }
  ],
  "count": 2
}
All 50 operations