Skip to main content
Anchor to inventoryPurchaseOrder

inventoryPurchaseOrder

query

Requires read_inventory_purchase_orders access scope. Also: The user must have permission to view purchase orders. The shop must have access to the physical inventory feature preview.

Returns an InventoryPurchaseOrder object by ID.


Note

This query is available only in the unstable API version and to development stores that have enabled the Physical inventory feature preview.


•ID!
required

The ID of the inventory purchase order.


Was this section helpful?

Anchor to InventoryPurchaseOrderInventoryPurchaseOrder
•InventoryPurchaseOrder

A purchase order represents an agreement from a merchant to buy goods or services from a supplier. While the agreement is captured on the merchant's side as a purchase order, it’s recorded as a sales order on the supplier side.


Note

This object is available only in the unstable API version and to development stores that have enabled the Physical inventory feature preview.


•DateTime

The date and time the purchase order was archived.

•CurrencyCode!
non-null

The currency for the purchase order's cost values. The shop's currency will be used if one isn't provided during creation.

•DateTime!
non-null

The date and time the purchase order was placed.

•LocationSnapshot

The target containing the destination location of the purchase order.

•ID!
non-null

A globally-unique ID.

•InventoryPurchaseOrderLineItemConnection!
non-null

A list of the purchase order's line items.

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•ID

ID of the purchase order line item.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
•string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to incoming_quantity
•integer
Anchor to supplier_sku
•string
•string
Anchor to unit_cost
•float
Anchor to variant_id
•id
•Boolean
Default:false

Reverse the order of the underlying list.

•PurchaseOrderLineItemSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.


•String!
non-null

The name of the purchase order.

•DateTime

The date and time the purchase order was confirmed with the supplier.

•InventorySupplierSnapshot

The supplier snapshot where the purchase order originates from.

•String

An external reference name for the purchase order.

•InventoryPurchaseOrderStatus!
non-null

The current status of the inventory purchase order.


Was this section helpful?