List Purchase Orders
Returns a list of Purchase Orders belonging to your account.
Query Parameters
- start_cursor string
The start cursor for Keyset pagination.
- per_page integer
Possible values:
>= 2
and<= 100
Default value:
50
The number of records per page to return.
- filter object
The fields, operations, and values to filter the records by.
number object
eq string requiredpart_location_id object
eq string requiredrejected_by_id object
eq string requiredsubmitted_for_approval_by_id object
eq string requiredpurchased_by_id object
eq string requiredcreated_by_id object
eq string requiredapproved_by_id object
eq string requiredvendor_id object
eq string requiredstate object
include string requiredlabels object
include string requiredcreated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt string requiredlte string requiredgt string requiredgte string requiredupdated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt string requiredlte string requiredgt string requiredgte string required
- sort object
The fields and direction to sort the results by.
- id string
Possible values: [
asc
,desc
]Default value:
desc
- created_at string
Possible values: [
asc
,desc
] - updated_at string
Possible values: [
asc
,desc
]
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- start_cursor string
The current start cursor of the records returned.
- next_cursor string
The next cursor to retrieve the next page of records.
- per_page integer
The maxumum number of records returned.
- estimated_remaining_count integer
The number of remaining records including the returned records, up to a maximum of 500.
filtered_by object[]
The filters applied to the returned record set.
anyOf- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- MOD12
number object
eq stringpart_location_id object
eq stringrejected_by_id object
eq stringsubmitted_for_approval_by_id object
eq stringpurchased_by_id object
eq stringcreated_by_id object
eq stringapproved_by_id object
eq stringvendor_id object
eq stringstate object
include stringlabels object
include stringcreated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringupdated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringsorted_by object[]
The sorts applied to the returned record set.
anyOf- MOD1
- MOD2
- MOD3
updated_at stringPossible values: [
asc
,desc
]created_at stringPossible values: [
asc
,desc
]id stringPossible values: [
asc
,desc
]records object[]
id integernumber integerThe Purchase Order Number.
description stringOpen text field for Purchase Order description.
state stringPossible values: [
draft
,submitted_for_approval
,rejected
,approved
,purchased
,received_partial
,received_full
,closed
]See the Purchase Order Lifecycle Guide for more information about Purchase Order states and how to transition between them.
documents_count integercomments_count integerwatchers_count integerdiscount_type stringThe discount type applied to this purchase.
tax_1_type stringThe primary tax type on this purchase
tax_2_type stringThe secondary tax type on this purchase
submitted_for_approval_at date-timeThe date and time at which this Purchase Order was submitted for approval.
rejected_at date-timeThe date and time at which this Purchase Order was rejected.
approved_at date-timeThe date and time at which this Purchase Order was approved.
purchased_at date-timeThe date and time at which this Purchase Order was purchased.
received_partial_at date-timeThe date and time at which this Purchase Order was partially received.
received_full_at date-timeThe date and time at which this Purchase Order was fully received.
closed_at date-timeThe date and time at which this Purchase Order was closed.
created_at date-timeThe date and time at which this Purchase Order was created.
updated_at date-timeThe date and time at which this Purchase Order was last updated.
discount_cents integerThe amount fo the discount on this Purchase Order in cents.
tax_1_cents integerThe amount of the primary tax on this Purchase Order in cents.
tax_1_percentage stringThe percentage for the primary tax.
tax_2_cents integerThe amount of the secondary tax on this Purchase Order in cents.
tax_2_percentage stringThe percentage for the secondary tax.
subtotal_cents integerThe subtotal for this Purchase Order in cents.
shipping_cents integerThe shipping amount for this Purchase Order in cents.
total_amount_cents integerThe total amount for this Purchase Order in cents.
vendor_id integerThe ID of the
Vendor
for this Purchase Order.approved_by_id integerThe ID of the
User
who has approved this Purchase Order.created_by_id integerThe ID of the
User
who created this Purchase Order.closed_by_id integerThe ID of the
User
who has closed this Purchase Order.purchased_by_id integerThe ID of the
User
who has purchased this Purchase Order.rejected_by_id integerThe ID of the
User
who has rejected this Purchase Order.received_partial_by_id integerThe ID of the
User
who has partially received this Purchase Order.received_full_by_id integerThe ID of the
User
who has received this Purchase Order in full.submitted_for_approval_by_id integerThe ID of the
User
who has submitted this Purchase Order for approval.purchase_order_status_id integerThe ID of the
PurchaseOrderStatus
associated with this Purchase Order.part_location_id integerThe ID of the
PartLocation
associated with this Purchase Order.custom_fields object*Full details on working with Custom Fields here.
labels object[]
id integerPossible values:
>= 1
name stringvendor object
A Vendor
name stringThe name of the Vendor.
phone stringThe phone number of the Vendor.
city stringThe city of the Vendor.
region stringThe region, state, province, or territory of the Vendor.
postal_code stringThe postal code or ZIP code of the Vendor.
country stringThe country of the Vendor.
external_id stringThe external identifier of the Vendor.
{
"start_cursor": "string",
"next_cursor": "string",
"per_page": 0,
"estimated_remaining_count": 0,
"filtered_by": [
{
"number": {
"eq": "string"
}
},
{
"part_location_id": {
"eq": "string"
}
},
{
"rejected_by_id": {
"eq": "string"
}
},
{
"submitted_for_approval_by_id": {
"eq": "string"
}
},
{
"purchased_by_id": {
"eq": "string"
}
},
{
"created_by_id": {
"eq": "string"
}
},
{
"approved_by_id": {
"eq": "string"
}
},
{
"vendor_id": {
"eq": "string"
}
},
{
"state": {
"include": "string"
}
},
{
"labels": {
"include": "string"
}
},
{
"created_at": {
"lt": "string"
}
},
{
"updated_at": {
"lt": "string"
}
}
],
"sorted_by": [
{
"updated_at": "asc"
},
{
"created_at": "asc"
},
{
"id": "asc"
}
],
"records": [
{
"id": 0,
"number": 0,
"description": "string",
"state": "draft",
"documents_count": 0,
"comments_count": 0,
"watchers_count": 0,
"discount_type": "string",
"tax_1_type": "string",
"tax_2_type": "string",
"submitted_for_approval_at": "2023-03-14T13:46:27-06:00",
"rejected_at": "2023-03-14T13:46:27-06:00",
"approved_at": "2023-03-14T13:46:27-06:00",
"purchased_at": "2023-03-14T13:46:27-06:00",
"received_partial_at": "2023-03-14T13:46:27-06:00",
"received_full_at": "2023-03-14T13:46:27-06:00",
"closed_at": "2023-03-14T13:46:27-06:00",
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"discount_cents": 0,
"tax_1_cents": 0,
"tax_1_percentage": "string",
"tax_2_cents": 0,
"tax_2_percentage": "string",
"subtotal_cents": 0,
"shipping_cents": 0,
"total_amount_cents": 0,
"vendor_id": 0,
"approved_by_id": 0,
"created_by_id": 0,
"closed_by_id": 0,
"purchased_by_id": 0,
"rejected_by_id": 0,
"received_partial_by_id": 0,
"received_full_by_id": 0,
"submitted_for_approval_by_id": 0,
"purchase_order_status_id": 0,
"part_location_id": 0,
"custom_fields": {},
"labels": [
{
"id": 0,
"name": "string"
}
],
"vendor": {
"name": "string",
"phone": "string",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"external_id": "string"
}
}
]
}
The format or parameters of the request was invalid
- application/json
- Schema
- Example (from schema)
Schema
errors object
typeitems string
{
"errors": {}
}
Request could not be authenticated
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Something unexpected happened
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}