v2

latestOpenAPI 3.0.0Commercial2026-07-2649110209.4 KB
Customers

List customer orders

Retrieve a paginated list of orders for a specific customer.

get/v1/customers/{id}/orders

Path parameters

idstring required

The unique identifier of the customer

Query parameters

page_numbernumber
Example:1

The page number for pagination.

page_sizenumber
Example:10

The number of items per page.

Response

Successfully retrieved customer orders

Example response

{
  "items": [
    {
      "transaction": "tx_1234567890",
      "discount": "dis_1234567890",
      "amount": 2000,
      "sub_total": 1800,
      "tax_amount": 200,
      "discount_amount": 100,
      "amount_due": 1900,
      "amount_paid": 1900,
      "currency": "USD",
      "fx_amount": 15,
      "fx_currency": "EUR",
      "fx_rate": 1.2,
      "created_at": "2023-09-13T00:00:00Z",
      "updated_at": "2023-09-13T00:00:00Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "next_page": 2
  }
}