Orders

List orders

Orders, a page at a time. Filters match exactly; `status` repeats as any of, and `createdFrom` (inclusive) to `createdTo` (exclusive) is the one range.

Authorization

bearer orders:read
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: orders:read

Query Parameters

limit?integer
Range1 <= value <= 100
Default20
cursor?string
Match^[A-Za-z0-9_-]{1,512}$
status?string
number?string
currency?string
country?string
disputed?string
createdFrom?string
createdTo?string

Response Body

application/json

application/problem+json

GET
/v1/orders
curl -X GET "https://example.com/v1/orders"
{  "data": [    {      "id": "string",      "number": "string",      "status": "created",      "total": {        "amount": -9007199254740991,        "currency": "string"      },      "subtotal": {        "amount": -9007199254740991,        "currency": "string"      },      "tax": {        "amount": -9007199254740991,        "currency": "string"      },      "fee": {        "amount": -9007199254740991,        "currency": "string"      },      "discount": {        "amount": -9007199254740991,        "currency": "string"      },      "discountCode": null,      "taxBreakdown": null,      "reverseCharge": null,      "totalItems": 0,      "country": "string",      "checkoutId": "string",      "subscriptionId": "string",      "lastPaymentId": "string",      "lastPaymentNumber": "string",      "invoiceNumber": "string",      "createdAt": "2019-08-24T14:15:22Z",      "customer": {        "id": "string",        "email": "user@example.com",        "name": "string",        "companyName": "string",        "taxNumber": "string",        "taxNumberType": "string",        "address": {          "line1": "string",          "line2": "string",          "city": "string",          "state": "string",          "postalCode": "string",          "country": "string"        },        "createdAt": "2019-08-24T14:15:22Z",        "username": null,        "reference": null,        "type": null,        "firstName": null,        "lastName": null,        "phoneDialCode": null,        "phoneNumber": null      },      "items": [        {          "id": "string",          "productId": "string",          "priceId": "string",          "quantity": 1,          "unitPrice": {            "amount": -9007199254740991,            "currency": "string"          },          "listTotal": {            "amount": -9007199254740991,            "currency": "string"          },          "net": null,          "tax": null,          "gross": null,          "taxRatePercent": null,          "taxBehavior": null,          "taxType": null,          "discount": null,          "name": "string",          "variant": "string",          "variantReference": null,          "productReference": null,          "priceReference": null,          "plan": "string",          "productType": "string",          "customFields": null        }      ]    }  ],  "nextCursor": "string"}