inventory_read
Arguments
String
Forward pagination cursor — returns items after it. Pass an
edges[].cursor or
pageInfo.endCursor from a previous page.String
Backward pagination cursor — returns items before it. Pass an
edges[].cursor
or pageInfo.startCursor from a previous page.Int
Forward pagination: returns the first N items (max 100, default 25). Use with
after; mutually exclusive with last/before.Int
Backward pagination: returns the last N items (max 100, default 25). Use with
before; mutually exclusive with first/after.Which key to sort by (defaults to the first key, newest-first). Combine with
reverse to flip direction.Boolean
Reverses the sort direction selected by
orderBy (or its default).Only return purchase orders with this status.
ID
Only return purchase orders for this supplier.
Returns
required
A paginated list of PurchaseOrder items.
Show fields
Show fields
required
The list of edges (each a node plus its pagination
cursor).Show fields
Show fields
String!
required
Opaque cursor for this item; pass to
after/before to page from here.required
The item at this edge.
Show fields
Show fields
ID!
required
The id of this purchase order.
required
A paginated list of the order’s line items.Requires:
inventory_readShow fields
Show fields
Arguments
String
Forward pagination cursor — returns items after it. Pass an
edges[].cursor or pageInfo.endCursor from a previous page.String
Backward pagination cursor — returns items before it. Pass an
edges[].cursor or pageInfo.startCursor from a previous page.Int
Forward pagination: returns the first N items (max 100, default 25). Use with
after; mutually exclusive with last/before.Int
Backward pagination: returns the last N items (max 100, default 25). Use with
before; mutually exclusive with first/after.The location the order’s inventory is destined for.Requires:
locations_readString
An internal note on the purchase order.
String!
required
The merchant-facing purchase order number.
String
An external reference for the purchase order.
required
Inbound shipments fulfilling this purchase order.Requires:
inventory_readShow fields
Show fields
Arguments
String
Forward pagination cursor — returns items after it. Pass an
edges[].cursor or pageInfo.endCursor from a previous page.String
Backward pagination cursor — returns items before it. Pass an
edges[].cursor or pageInfo.startCursor from a previous page.Int
Forward pagination: returns the first N items (max 100, default 25). Use with
after; mutually exclusive with last/before.Int
Backward pagination: returns the last N items (max 100, default 25). Use with
before; mutually exclusive with first/after.required
The current lifecycle status of the purchase order.
The supplier the order was placed with.Requires:
inventory_readString
A note shared with the supplier.
[String!]!
required
Free-form tags applied to the purchase order.
required
The nodes in this page, without the edge/cursor wrapper — a convenience over
edges.Show fields
Show fields
ID!
required
The id of this purchase order.
required
A paginated list of the order’s line items.Requires:
inventory_readShow fields
Show fields
ArgumentsFields
String
Forward pagination cursor — returns items after it. Pass an
edges[].cursor or pageInfo.endCursor from a previous page.String
Backward pagination cursor — returns items before it. Pass an
edges[].cursor or pageInfo.startCursor from a previous page.Int
Forward pagination: returns the first N items (max 100, default 25). Use with
after; mutually exclusive with last/before.Int
Backward pagination: returns the last N items (max 100, default 25). Use with
before; mutually exclusive with first/after.required
The list of edges (each a node plus its pagination
cursor).required
The nodes in this page, without the edge/cursor wrapper — a convenience over
edges.The location the order’s inventory is destined for.Requires:
locations_readShow fields
Show fields
String
The city of the location’s address.
String
The company name associated with the location.
String
The country code, e.g. “US”.
ID!
required
The id of this location.
Per-product inventory levels held at this location.Requires:
inventory_readShow fields
Show fields
Arguments
String
Forward pagination cursor — returns items after it. Pass an
edges[].cursor or pageInfo.endCursor from a previous page.String
Backward pagination cursor — returns items before it. Pass an
edges[].cursor or pageInfo.startCursor from a previous page.Int
Forward pagination: returns the first N items (max 100, default 25). Use with
after; mutually exclusive with last/before.Int
Backward pagination: returns the last N items (max 100, default 25). Use with
before; mutually exclusive with first/after.String!
required
The location’s display name.
String
The contact phone number for the location.
String
The postal or ZIP code, e.g. “84101”.
String
The state or province code, e.g. “UT”.
String
The first line of the street address.
String
The second line of the street address.
String
An internal note on the purchase order.
String!
required
The merchant-facing purchase order number.
String
An external reference for the purchase order.
required
Inbound shipments fulfilling this purchase order.Requires:
inventory_readShow fields
Show fields
ArgumentsFields
String
Forward pagination cursor — returns items after it. Pass an
edges[].cursor or pageInfo.endCursor from a previous page.String
Backward pagination cursor — returns items before it. Pass an
edges[].cursor or pageInfo.startCursor from a previous page.Int
Forward pagination: returns the first N items (max 100, default 25). Use with
after; mutually exclusive with last/before.Int
Backward pagination: returns the last N items (max 100, default 25). Use with
before; mutually exclusive with first/after.required
The list of edges (each a node plus its pagination
cursor).required
The nodes in this page, without the edge/cursor wrapper — a convenience over
edges.required
The current lifecycle status of the purchase order.
The supplier the order was placed with.Requires:
inventory_readShow fields
Show fields
required
The contact people at this supplier.
String
The ISO 4217 currency code the supplier transacts in.
ID!
required
The id of this supplier.
Int
The supplier’s typical lead time, in days.
String!
required
The supplier’s name.
String
The supplier’s phone number.
[String!]!
required
Product vendor names associated with this supplier.
required
Purchase orders placed with this supplier.Requires:
inventory_readShow fields
Show fields
Arguments
String
Forward pagination cursor — returns items after it. Pass an
edges[].cursor or pageInfo.endCursor from a previous page.String
Backward pagination cursor — returns items before it. Pass an
edges[].cursor or pageInfo.startCursor from a previous page.Int
Forward pagination: returns the first N items (max 100, default 25). Use with
after; mutually exclusive with last/before.Int
Backward pagination: returns the last N items (max 100, default 25). Use with
before; mutually exclusive with first/after.String
The supplier’s website URL.
String
A note shared with the supplier.
[String!]!
required
Free-form tags applied to the purchase order.
Pagination metadata for the current page.
Show fields
Show fields
String
Cursor of the last edge in this page; pass to
after to page forward.Boolean!
required
Whether more items exist after this page (drives forward pagination with
first/after).Boolean!
required
Whether more items exist before this page (drives backward pagination with
last/before).String
Cursor of the first edge in this page; pass to
before to page backward.Example
query {
purchaseOrders(
after: "..."
before: "..."
first: 10
last: 10
orderBy: CREATED_AT
reverse: true
status: CANCELLED
supplierId: "..."
) {
nodes {
closedAt
createdAt
id
note
orderedAt
poNumber
referenceNumber
status
# ...
}
pageInfo {
hasNextPage
endCursor
}
}
}