AdminGetVariantsParams
Parameters used to filter and configure the pagination of the retrieved product variants.
Properties
q
stringSearch term to search product variants' IDs.
limit
numberLimit the number of items returned in the list.
Default: 20
offset
numberThe number of items to skip when retrieving a list.
Default: 0
expand
stringComma-separated relations that should be expanded in the returned data.
fields
stringComma-separated fields that should be included in the returned data.
if a field is prefixed with
+
it will be added to the default fields, using -
will remove it from the default fields.
without prefix it will replace the entire default fields.id
string | string[]IDs to filter product variants by.
title
string | string[]Titles to filter product variants by.
inventory_quantity
number | NumericalComparisonOperatorNumber filters to apply on product variants'
inventory_quantity
field.order
stringThe field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with
-
.manage_inventory
booleanFilter product variants by whether their inventory is managed or not.
allow_backorder
booleanFilter product variants by whether they are allowed to be backordered or not.
cart_id
stringRetrieve prices for a cart ID.
region_id
stringRetrieve prices for a region ID.
currency_code
stringRetrieve prices for a currency code.
customer_id
stringRetrieve prices for a customer ID.
Was this section helpful?