Commerce
Add variant
Add a variant.
The first variant turns a priced product into a variant one.
product*stringA product id. Anything that is not one is 404 resource_missing.
Format
uuidX-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
application/json- body
label*stringprice*|A whole number up to 100000000, as a number or a string.
stock?||Up to 1000000; null leaves stock untracked.
curl -X POST 'https://v3.ghala.io/v1/commerce/shop/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/variants' \ -H 'Content-Type: application/json' \ -d '{ "label": "string", "price": 0}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "label": "string", "price": "1500.00", "stock": 0, "is_active": true}