Create a variant
Creates a new variant for a product. Supports nested prices and stock items.
Option types and values are auto-created if they don’t exist. Prices are upserted by currency. Stock items are upserted by stock location.
Required scope: write_products (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Path Parameters
Product ID
Body
Required. A variant created here is always non-master, so it must declare at least one option pair (e.g. size + color) or creation fails with 422. One pair per option type the variant participates in. Option types and values are auto-created if missing.
"SKU-001"
"10.00"
"USD"
Per-currency prices. Upserted by currency.
Per-stock-location inventory. Upserted by stock_location_id.
Response
variant created

