Products and variants
A product is the template ("Icon T-shirt"). A variant is what is bought ("Icon T-shirt, white, XL"). Only a variant has a price and a stock and can go in the cart: a product with no variant cannot be sold. A product with no choices has one variant. A line of the cart is a variant and the free data the customer gave it, if any (an engraving, a name): see Personalizations on lines.
Product
- Name, HTML description and SEO description, translated per language.
- Visibility. Off, and the Catalog APIs ignore the product.
- Delivery. How it reaches the customer (shipping, pickup or none), and the weight (grams) and size (length, width, height, in cm) that shipping costs are calculated from.
- Where it can go. Its shipping zones, shipping methods and tax zones.
- Tags and attributes, images and videos, metadata (extra fields, also translated) and disable coupons, which keeps it out of discount codes. See Tags and attributes.
Variant
- Identity. A name, and a slug: the slug belongs to the variant, and the address of the product page is
/product/<slug>. The favourite variant loads first on the product page. - Codes. SKU, EAN, MPN, UPC, GTIN, ISBN, ASIN, supplier code and HS code.
- Stock. The quantity, whether it can be bought when it runs out (
allowBackorder, with the days to restock), and a maximum quantity for each order. See Stock. - Free shipping.
allowFreeShippingmakes it eligible for the store's rules;forceFreeShippingforces it. - Prices, below.
Inheritance
A variant can take what the product has. Each of these has a flag: assets, tag values, attributes, package size and weight, shipping methods, shipping zones, tax zones and disable coupons (inheritAssets, inheritTagValues, inheritAttributes, inheritPackageDimensions, inheritShippingMethods, inheritShippingZones, inheritTaxZones, inheritDisableCoupons).
- On: the variant has the product's, and what you add to the variant is added to them.
- Off: the variant breaks the link for that field and defines it entirely.
You cannot link one by one what the variant already inherits. To limit a variant to one of the product's three carriers, turn inheritance off for that field and set it by hand.
Options
An option is an axis of choice, such as Size. The product says which values it offers for each option: a value is a tag value, and an option reuses tags, so "XL" is written once for the whole catalog. Each variant takes one value for each option: that is its combination, and it is what a customer chooses between.
In the dashboard you can generate all the combinations at once. Through the API or MCP, create_product_aggregate creates the product with its option values ({ optionId, tagValueId }) and a variant for each combination, each naming its own in the same form, in one call that is either complete or does not exist.
Prices
A variant has a list of prices, each with a currency, a cadence and an amount:
onceis the usual sale. Any other cadence (daily,weekly,monthly,quarterly,semiannualoryearly) is a subscription. The same variant can be sold both ways.- There cannot be two prices with the same currency and cadence.
- The compare price is the original price, shown crossed out. To show a "Promo" badge, compare the gross minimum with the compare gross minimum: if the second is higher, the variant is on sale.
- Answers carry the net and the gross of each price, and price ranges (minimum and maximum across a product's variants), which a product card shows.
Reason in net. The VAT depends on the customer's country, from the tax zone. A gross price is right only for your main market: for several countries, the net price and the tax zone are the way to get the accounting right.