sku, barcode, price, and currency. Variants also link to attribute values (such as color: Red or size: S) giving you full flexibility to model any combination of option dimensions your catalog requires.
All requests require the standard headers:
Authorization: Bearer <token>, X-Tenant-ID, and X-Org-ID.Create a variant
Add a new variant to an existing product. You need the parent product’s UUID as a path parameter.The UUID of the parent product. The product must exist and belong to your tenant.
Your internal Stock Keeping Unit identifier. Should be unique within your tenant’s catalog.
EAN-13, UPC-A, or any GTIN-style barcode for this variant.
The selling price for this variant as a decimal number (e.g.,
89.99).ISO 4217 currency code (e.g.,
USD, EUR, GBP).200 OK
UUID for this variant. Use it to link inventory levels, media, and attribute values.
The parent product’s UUID, confirming the association.
Returned as a numeric string to preserve decimal precision.
A JSON object of human-readable option labels (e.g.,
{"size": "S", "color": "Red"}). Populated separately when you assign attribute values to this variant.Modeling multiple variants
To represent a product that comes in three sizes and two colors — six variants total — create each combination as a separate variant record with a distinct SKU.POST request per variant. For large catalogs, use the Bulk Operations workflow to import many variants at once.
Assigning attribute values to a variant
After creating a variant, you can attach typed attribute values (defined in your attribute configuration) to describe option dimensions like size or color. The full attribute linkage flow is:- Create an attribute (e.g.,
name: "Size",type: "TEXT"). - Create an attribute value for that attribute (e.g.,
value: "Small",slug: "small"). - Link the attribute value to the variant using the attribute values API, providing the
variant_idandattribute_value_id.
option_values field on the variant reflects the resolved label pairs for display purposes.