cURL
curl --request POST \ --url https://api.chift.eu/consumers/{consumer_id}/commerce/variants/set_quantity/{variant_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "location_id": "<string>", "available_quantity": 1 } '
{ "location": { "id": "<string>", "name": "<string>" }, "available_quantity": 123 }
Update available quantity of a product variant in a specific location
This access token needs to be included in each of your request to the Chift API.
Technical id of the location in Chift
x >= 0
Successful Response
Show child attributes