https://shopify.com/admin/api/unstable/inventory_levels/connect.jsonhttps://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#connect-unstable
The ID of 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.
Whether inventory for any previously connected locations will be relocated. This property is ignored when no fulfillment service location 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/connect.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/connect.jsonhttps://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#connect-unstable
The ID of 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.
Whether inventory for any previously connected locations will be relocated. This property is ignored when no fulfillment service location 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/connect.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}