Create and update combinations with /product calls
What's new
Requests for updating products or creating new ones now support passing combinations in the request body. For example, you can now delete combinations through the Update product call, or add both options and variations for specific option choices with the Create product call.
This change does not affect existing apps and workflows, as changing/creating combinations through /products
endpoint requires a new query parameter.
Changes in API
PUT
/products/{productId}
– API call for updating a product now supports"combinations": []
array of objects. Any changes to the passed combinations are applied (creating/updating/deleting).POST
/products
– API call for adding a new product to the store now accepts"combinations": []
array of objects. You still need to provide the"options": []
array with the"choices" :[]
array inside, so added combinations are based on specific choices.
Documentation links
Update productCreate productLast updated
Was this helpful?