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).
Documentation Index
Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
Secret API key for admin access
JWT token for admin user authentication
Bearer token for admin authentication
Product ID
"SKU-001"
29.99
39.99
10
"USD"
One pair per option type the variant participates in (e.g. size + color). Option types and values are auto-created if missing.
Per-currency prices. Upserted by currency.
Per-stock-location inventory. Upserted by stock_location_id.
variant created