Inventory Set
PUT
{{api_url}}/shop/inventory/{{sku}}Set inventory for a sku
Authorization
Bearer token, sent in the Authorization header. Inherited from the collection.
Headers
| Key | Value | Description |
|---|---|---|
Content-Type | application/json |
Body
{
"quantity_to_set": 707
}Example Request
curl --location --request PUT '{{api_url}}/shop/inventory/{{sku}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{auth_token}}' \
--data '{
"quantity_to_set": 707
}'Example Responses
Add Quantity
Request
curl --location --request PUT '{{api_url}}/shop/inventory/5L-MARG-MW04' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"quantity_to_add": 2
}'Response 200 OK
{
"warehouse_inventory": "973"
}Set Total Quantity
Request
curl --location --request PUT '{{api_url}}/shop/inventory/5L-MARG-MW04' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"quantity_to_set": 707
}'Response 200 OK
{
"warehouse_inventory": "707"
}
