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.
Successful Response
The response is of type object.
object