https://shopify.com/admin/api/unstable/inventory_levels/set.jsonhttps://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#set-unstable
The ID for the inventory item.
The ID of the location that the inventory level belongs to. To find the ID of the location, use the Location resource.
Sets the available inventory quantity.
Whether inventory for any previously connected locations will be set to 0 and the locations disconnected. This property is ignored when no fulfillment service is involved. For more information, see Inventory levels and fulfillment service locations. (default: false)
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url 'https://shopify.com/admin/api/unstable/inventory_levels/set.json' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}https://shopify.com/admin/api/unstable/inventory_levels/set.jsonhttps://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#set-unstable
The ID for the inventory item.
The ID of the location that the inventory level belongs to. To find the ID of the location, use the Location resource.
Sets the available inventory quantity.
Whether inventory for any previously connected locations will be set to 0 and the locations disconnected. This property is ignored when no fulfillment service is involved. For more information, see Inventory levels and fulfillment service locations. (default: false)
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url 'https://shopify.com/admin/api/unstable/inventory_levels/set.json' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}