Hi, I have a problem with my private app. I use the “Checkout update” webhook to do an API call to Shopify and thus update the inventory in case there is any mismatch between Shopify and our database. The problem is that, as soon as an order is placed, a manual adjustment occurs which increases the availability of the purchased product by one. By doing so the item doesn’t actually decrease the availability but remain one.
Screen of a test order:
Screen of API call I use:
this is Shopify result of API call:
SHOPIFY RESULT:
Array ( [inventory_level] => Array ( [inventory_item_id] => 42654540660796 [location_id] => 34133213244 [available] => 1 [updated_at] => 2023-01-17T10:38:06+01:00 [admin_graphql_api_id] => gid://shopify/InventoryLevel/33913176124?inventory_item_id=42654540660796 ) )
How does this happen?