Skip to main content

supplyPoItems

Retrieves purchase order line items across one or more purchase orders, with filtering and sorting capabilities.

Useful for searching and selecting PO lines when creating or editing shipments that may reference items from multiple POs.

Authentication

Authentication is required. Unauthenticated requests will fail.

Permissions

Requires supply:read_purchase_orders permission for the requested brands.

Brand Filtering

Results are automatically filtered by brand. If no brand is specified in filters, the current brand from the session context is used.

supplyPoItems(
after: String
before: String
filters: POItemFilterInput
first: Int
last: Int
sortField: POItemSortFieldEnum = CREATED_AT
sortOrder: SortTypeEnum = DESC
): POItemConnection!

Arguments

supplyPoItems.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

supplyPoItems.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

supplyPoItems.filters ● POItemFilterInput input purchase-orders

Filter criteria to narrow down PO item results

supplyPoItems.first ● Int scalar common

Returns the first _n_ elements from the list.

supplyPoItems.last ● Int scalar common

Returns the last _n_ elements from the list.

supplyPoItems.sortField ● POItemSortFieldEnum enum purchase-orders

Field to sort PO items by (defaults to created_at)

supplyPoItems.sortOrder ● SortTypeEnum enum common

Sort direction - ASC for ascending, DESC for descending (defaults to DESC)

Type

POItemConnection object common

The connection type for POItem.