List purchase orders

Returns your purchase orders with their lines, 50 at a time by default. Page through them with the X-Next-Page header.

See Filtering, sorting and search for how the filters, ranges and sort work.

Required permission (any one of these):

GroupPermission
PurchasingList and view purchase orders
PurchasingCreate, edit and delete purchase orders (includes view)
Query Params
integer
1 to 250
Defaults to 50

How many records to return per page. Defaults to 50, maximum 250.

string

Opaque paging cursor. Don't build this yourself: follow the path in the X-Next-Page or X-Prev-Page response header.

integer

Only return purchase orders with an ID greater than or equal to this one. Note that this one is inclusive: the record with this ID is returned too.

string

Exact match on number.

date-time

Greater than (not including) the number.

date-time

Less than (not including) the number.

string

Exact match on supplier_id.

string

Partial match on number.

string
^\d+(,\d+)*$

Matches one ids or a comma-separated list (up to 200).

string
^\d+(,\d+)*$

Matches one supplier id or a comma-separated list (up to 200).

string

From this expected delivery. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this expected delivery. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this actual delivery. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this actual delivery. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this updated. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this updated. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Sort order. Use sort=key for ascending or sort=-key for descending, for example sort=-created. Keys: id, number, expected_delivery_date, actual_delivery_date, supplierid, created, updated. The older sort_field=key&sort=asc|desc style still works.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json