The “committed” stock quantity reported in Shopify Admin and that returned by GrapghQL do not match.
Store: mascaralatex.myshopify.com
VariantID: 40935211597872
Title: BLUE TIGER - M
“Adjustment history” on the Shopify admin website reports committed stock as 2
Graphql reports committed stock as 1
{“data”:{“productVariant”:{“id”:“gid://shopify/ProductVariant/40935211597872”,“displayName”:“BLUE TIGER - M”,“sku”:“16906-M”,“barcode”:“728633793938”,“inventoryItem”:{“id”:“gid://shopify/InventoryItem/43030224961584”,“inventoryLevel”:{“id”:“gid://shopify/InventoryLevel/4787372080?inventory_item_id=43030224961584”,“quantities”:[{“name”:“incoming”,“quantity”:0},{“name”:“on_hand”,“quantity”:58},{“name”:“available”,“quantity”:57},{“name”:“committed”,“quantity”:1},{“name”:“reserved”,“quantity”:0},{“name”:“damaged”,“quantity”:0},{“name”:“safety_stock”,“quantity”:0},{“name”:“quality_control”,“quantity”:0}]}}}},“extensions”:{“cost”:{“requestedQueryCost”:4,“actualQueryCost”:4,“throttleStatus”:{“maximumAvailable”:10000.0,“currentlyAvailable”:9996,“restoreRate”:500.0}}}}
Here’s my GraphQL query:
curl -X POST https://mascaralatex.myshopify.com/admin/api/2023-07/graphql.json
-H ‘Content-Type: application/json’
-H ‘X-Shopify-Access-Token: xxxxxxx’
-d ’ { “query”: “{ productVariant(id:"gid://shopify/ProductVariant/40935211597872") { id displayName sku barcode inventoryItem { id inventoryLevel(locationId:"gid://shopify/Location/4796547120") { id quantities(names:["incoming", "on_hand", "available", "committed", "reserved", "damaged", "safety_stock", "quality_control"]) { name quantity } } } } }” }’
I thought there may be a delay in the quantity updating, but there have been no changes to the stock for the past 12 hours and the GraphQL query is still different from the Shopify Admin inventory page.
Please help.
