Inventory levels via API

Hi!

Currently we have an integration via SAP for our Inventory Levels. However, we are noticing that after an order is placed, and SAP returns it’s answer, it “corrects” the inventory level and extract again the items from inventory. For example. We have a product with inventory level 0 in Committed, Available and On hand. From SAP, we send 10 units to that product, so now our Available and On Hand is 10 units. Then, we make an order in the online store, we purchased 1 item. So now Shopify extracts 1 from available and send 1 to committed and 9 remains in available. But then, SAP updates the inventory levels and extracts another unit, so now the inventory levels in i available is 8. Is something wrong with our integration? Below is a picture of the issue from the adjustment history.

HI Jd1studio,

How is the integration with SAP set up to receive order information? EG: are you using the order create webhook? Is it possible there are mutiple webhooks set up that are interfering with the correct inventory numbers being recorded?

Hi Liam! Thanks for your answer. We dig a little bit more into the problem and found that with the Graphql api, the inventory is updated in the on hand column, instead of the available column. We found that with rest api, we can update to the available column. We made some test and everything works fine now.

Thanks for your help