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 product variants.
Arguments
Order the base list in ascending manner using the specified sort key.
More
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
barcodeThe barcode value linked to the product.
collectionThe ID of the collection.
gift_cardSpecify if the product is a gift card item (boolean value passed).
inventory_quantityProduct variant's available inventory.
location_idThe ID of the location
option1The 1st option value of the product variant
option2The 2nd option value of the product variant
option3The 3rd option value of the product variant
option4The 4th option value of the product variant
option5The 5th option value of the product variant
product_idsThe ID of the product (currently does not support passing in multiple IDs)
product_statusThe product's status.
product_typeA product type customized by the merchant.
skuThe SKU of the product variant, a case-sensitive string.
tagThe tags associated with the product.
taxableWhether the variant is taxed when sold (boolean value passed).
titleThe product's title.
updated_atThe last modified date and time of the product variant.
vendorThe vendor name of the product.
spuThe product's SPU code.
tip
The current supports a maximum of 5 parameters. Optimizations will be implemented in the future.

Grammar reference

title:'test' AND inventory_quantity:>=1000
Return
edges ● [ProductVariantEdge!]non-null
List of edge nodes.
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?