Add a product variation
POST {{baseUrl}}/products/:id/variations
Adds a new product variation.
Request Body
{"name"=>"<string>", "prices"=>["<object>", "<object>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"success":true,"data":{"id":2,"name":"Upgraded Mechanical Pencil","product_id":1,"prices":[{"product_variation_id":2,"price":5,"currency":"EUR","cost":2,"direct_cost":3,"notes":"This is the price for the upgraded mechanical pencil"}]}}