An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Retrieve the list of inventory items.
Arguments
after ● String
Returns elements following the specified cursor. The first argument must also be specified when using this argument.
before ● String
Returns elements preceding the specified cursor. The last argument must also be specified when using this argument.
first ● Int
Returns the first n elements in the list.
last ● Int
Returns the last n elements in the list.
reverse ● Boolean
Whether to reverse the order of the list.
● true: reverse
● false: do not reverse
Default value: false
query ● String
Use one or more filters for the query.
parameterdescription
skuThe SKU of the product variant, a case-sensitive string.
tip
The current supports a maximum of 5 parameters. Optimizations will be implemented in the future.

Grammar reference

sku:'T000001' OR sku:'T000002'
Return
edges ● [InventoryItemEdge!]non-null
List of edge nodes
More
nodes ● [InventoryItem]
List of nodes contained within a InventoryItemEdge
More
pageInfo ● PageInfo!non-null
Pagination Assistance Information
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?