Admin API
cURL
curl --request POST \ --url https://api.juo.io/admin/v1/products/{productId}/variants \ --header 'Content-Type: application/json' \ --header 'X-Juo-Admin-Api-Key: <api-key>' \ --data ' { "price": 123, "compareAtPrice": 123, "sku": "<string>", "barcode": "<string>", "optionValues": [ { "optionName": "<string>", "name": "<string>" } ] } '
{ "id": "<string>", "title": "<string>", "image": { "id": "<string>", "url": "<string>", "altText": "<string>" }, "price": 123, "purchaseOptions": [ { "name": "<string>", "price": 123, "interval": { "intervalCount": 123, "interval": "DAY" } } ], "product": "<string>", "planGroups": [ "<string>" ] }
Used to add a variant to a product.
Unique identifier of the tenant in the system (usually a store identifier)
The product identifier
1
Show child attributes
Default Response
This field is expandable.
Subscription plan group IDs associated with this variant