Skip to navigation

List orders

Lists orders newest first, each with all its lines, ended ones included. Filter by customer, status, externalId, startsAt[gte] or endsAt[lt]. Ended orders are included unless includeEnded is false.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the orders=v1 beta. Send this header to use it.

Allowed values:

Query parameters

cursorstringOptional

The nextCursor of the previous page. Omit it for the first page.

customerstringOptional1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.
endsAt[lt]datetimeOptional
Exclusive end filter.
externalIdstringOptional1-255 characters
Your stable identifier, 1 to 255 characters.
includeEndedenumOptional

Include ended orders; defaults to true.

Allowed values:
limitintegerOptional1-100Defaults to 10
How many objects to return, 1 to 100. Defaults to 10.
startsAt[gte]datetimeOptional
Inclusive start filter.
statusenumOptional
Order lifecycle state.
Allowed values:

Response

200
objectenum

The type of object. Always list.

Allowed values:
datalist of objects
The resources on this page.
hasMoreboolean
Whether another page follows this one.
nextCursorstring or null

Send it as cursor to get the next page. Null on the last page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error