Get list of orders

Returns a list of orders.

For enterprise organizations, orders where the logged-in organization is the customer will be returned. For parent organizations, orders where the logged-in organizations is the issuer or the reseller will be returned.

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the POST request to /api/v1/authenticate.

Query parameters

qstringOptional
Filter parameter in `<field><operator><value>` format. Expects comma separated list of filtering criteria out of the following fields: - `id` Supported operators: - `:`: equal - `!:`: not equal - `>`: greater than - `>=`: greater than or equal - `<`: less than - `<=`: less than or equal - `^~`: like - `submit_date` Supported operators: - `:`: equal - `>`: greater than - `>=`: greater than or equal - `<`: less than - `<=`: less than or equal - `status` Possible values: - `0`: EDITING - `1`: SUBMITTED - `2`: SHIPPED - `3`: DELIVERED - `4`: CANCELED Supported operators: - `:`: equal - `!:`: not equal - `>`: greater than - `>=`: greater than or equal - `<`: less than - `<=`: less than or equal - `paid` Possible values: - `0`: unpaid - `1`: paid Supported operators: - `:`: equal - `!:`: not equal
sortstringOptional
Sorting parameter in `<operator><field>` format. Sort properties according to a comma-separated list from the allowed fields: - `id` - `submit_date` - `total_amount` Supported operators: - `-`: descending order - `+`: ascending order If no operator is supplied, ascending order will be applied. If no sorting options are supplied, the response will be sorted by `submit_date` in descending order, meaning the newest order will be listed first.
per_pageintegerOptional
Defines the number of items per page
pageintegerOptional
Current page number

Response headers

X-pageinteger
The current page number
X-per-pageinteger
Number of orders per page
X-pagesinteger
Total number of pages
X-countinteger
Total count of orders

Response

OK
linelist of objects
paidboolean
statusobject
customer_organisationobject
customer_userobject
shipping_optionobject
shipped_withobject
payment_optionobject
invoice_addressobject
shipping_addressobject
currencyobject
submit_datestringformat: "date-time"
shipped_datestringformat: "date-time"
delivered_datestringformat: "date-time"
external_payment_referencestring
external_shipping_referencestring
totaldouble
vatdouble
vat_ratedouble
metaobject
auto_provisioningboolean
purchase_order_numberstring

Errors

400
Bad Request Error