Get a variant
GET
/products/{product_id}/variants/{id}Authorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
product_idstringrequiredidstringrequiredVariant ID or SKU
Responses
200
Variant details
_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_unitsinteger404
Variant not found