List variants
Returns variants for a product.
GET
/products/{product_id}/variantsAuthorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
product_idstringrequiredProduct ID or slug
Query parameters
pageintegerdefault: 1
per_pageintegerdefault: 20
Responses
200
Paginated variants list
_embeddedobjectShow propertiesHide properties
itemsVariant[]Show propertiesHide properties
Array of
Variant_linksHalLinksidintegerproduct_idintegernamestringDisplay name, computed from option1/option2/option3.
positionintegerOrdering position within the product. Lower comes first. For products with chained_variants enabled this drives which variant stays visible (lowest position, then cheapest, then lowest id).
statusstringAllowed:
visiblehiddenskustringbarcode_numberstringoption1stringoption2stringoption3stringcurrency_codestringregular_priceintegerRegular price in cents
sale_priceinteger | nullSale price in cents
priceintegerEffective price in cents (sale_price if set, else regular_price)
online_stockintegerall_stockintegeravailable_if_no_stockbooleanweight_in_gramsintegerunit_quantitynumbercolorstringcostintegerprofitintegerstocksobject[]Per-location stock breakdown
Show propertiesHide properties
Array of
objectlocation_idintegeravailable_unitsintegertotal_unitsinteger