We started to use inventoryLevel quantities instead of available and incoming fields as they are deprecated in 2024-04. From time to time we see empty quantities array. Although the REST API and old 2024-01 graphql still returns available and incoming fields as 0.
Tracked field is true and managed by shopify. Can someone tell how we should treat it when we see an empty array instead of fields filled with zeros?
Example query on 2024-01 (which still works) to see all the values including available and incoming
{
inventoryLevel(
id: "gid://shopify/InventoryLevel/1134407?inventory_item_id=52545163067760"
) {
id
updatedAt
createdAt
canDeactivate
deactivationAlert
item {
tracked
}
available
incoming
quantities(names: ["incoming", "available", "committed", "damaged","on_hand","quality_control", "reserved","safety_stock"]) {
quantity
name
}
}
}
{
"data": {
"inventoryLevel": {
"id": "gid://shopify/InventoryLevel/1134407?inventory_item_id=52545163067760",
"updatedAt": "2025-01-03T08:35:46Z",
"createdAt": "2025-01-03T08:35:46Z",
"canDeactivate": true,
"deactivationAlert": null,
"item": {
"tracked": true
},
"available": 0,
"incoming": 0,
"quantities": []
}
},
"extensions": {
"cost": {
"requestedQueryCost": 3,
"actualQueryCost": 3,
"throttleStatus": {
"maximumAvailable": 20000.0,
"currentlyAvailable": 19997,
"restoreRate": 1000.0
}
}
}
}
x-request-id: 72d27463-e5b8-4d7b-be73-2127cfd95fdb-1735895699
date: Fri, 03 Jan 2025 09:14:59 GMT