Hi there,
we have a problem in our shop: Customers are ordering items that are out of stock.
We are importing stocks every 15 Minutes via the API and the stocks are set correct. Nevertheless there are orders coming for out-of-stock articles after the stocks are set to zero. I double checked the stocks in the shopify backend and they are listed correctly as zero. Is there something we are missing when updating the stocks via the API? Maybe if customers already have items in their cart they are not removed when stocks are updated via the API?
To set the stock levels we use this Endpoint:
/admin/api/2021-07/inventory_levels/set.json
Best regards
Steffen
Hi Steffen,
As far as I know Shopify have a validation in checkout too, so that no one can order a out of stock [product/variant] at any case,
→ Maybe if customers already have items in their cart they are not removed when stocks are updated via the API?
→ So it wont possible in this case,
To understand the issue lemme ask some questions
-
Is that particular product, you are saying as Out of Stock is really showing in the product when it is zero in stock
-
Is that mark as Continue overselling product,
-
Is that product inventory control by shopify?
Thankyou
Hi,
thank you for your reply. I tested the validation on our staging system and was experiencing the correct behaviour (articles getting removed in checkout when I modify stocks), but in this case I was modifying them via the GUI and not via the API, thats why I thought there might be a different handling when setting stocks via the API.
To answer your questions:
-
The product is correctly shown as out-of-stock on the article page when the stock is zero,
-
The product is not allowed to be oversold,
-
I’m not sure where to toggle that the inventory is controlled by Shopify. The stock-related section in the Backend looks like in the screenshot
Best regards
Steffen