List Variants

Retrieve a list of all variants for a specific product.

🔒

Requires read_product access scope. More access scope

The Variant List API retrieves a list of variants associated with a specified product. By providing a valid product_id in the path parameter, users can fetch detailed information about the variants linked to a particular product. Ensure the product_id is valid and properly formatted as a UUID to avoid errors.This API is especially useful for:

  1. Retrieve all variants of a specific product to display options such as size, color, or other attributes.
  2. Fetch variant details to support inventory and pricing management.

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
product_idstringYesUnique identifier of the product"prod_123456789"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"200"HTTP status code
messagestring"Success"Operation result message
data.variantsarray of objects-List of product variants

Variant Object

ParameterTypeExampleDescription
idstring"var_987654321"Unique variant identifier
product_idstring"prod_123456789"Parent product ID
image_idstring"img_456789"Primary image reference
created_atstring"2025-01-15T09:00:00Z"Creation timestamp
updated_atstring"2025-06-15T14:30:00Z"Last update timestamp
titlestring"Large / Black"Variant display title
option1string"Black"First option value
option2string"Large"Second option value
option3string""Third option value
imageobject-Variant image details
image.srcstring"https://example. com/image.jpg"Image URL
image.widthint32800Image width in pixels
image.heightint32600Image height in pixels
image.altstring"Black variant"Image alt text
image.pathstring"/images/variants"Image storage path
positionstring"1"Display position
compare_at_pricefloat199.99Original/comparison price
pricefloat149.99Current selling price
skustring"SKU123-BLK-L"Stock keeping unit
barcodestring"123456789012"Product barcode
notestring"New stock"Internal notes
inventory_quantitystring"50"Current stock level
weightfloat0.75Product weight
weight_unitstring"kg"Weight measurement unit
cost_pricefloat89.99Cost/production price
whole_pricesarray of objects-Wholesale pricing tiers
whole_prices.pricefloat129.99Wholesale price
whole_prices. min_quantitystring"10"Minimum order quantity
retail_pricefloat149.99Retail price
is_discountbooleantrueDiscount status flag
origin_pricefloat179.99Original base price

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!