Add line item function issue

Hello!

I’m facing an issue related to addLineItem function in POS Cart API. When a variantId with no stock available for that location is used as an argument, an error is returned saying: “Failed to find line item with variant ID: …”.
Here is a screenshot of debugging my android device:


In addition to the error, a special modal is shown urging the user to choose if they would like to ship the item instead:

The function used to add the item no matter if it had stock or not in the past. It would be great to know if there is any workaround this issue as it started occurring recently (July 23 2025).

Hey! In shopify, on the product variant level you can turn on “Continue selling when out of stock”. this will allow you to add the product to your cart - in stock or not.

Screenshot 2025-08-01 at 11.58.08 AM

Let me know if this helps with your issue.

Hello, thank you for your response. Unfortunately, we cannot turn on “Continue seeling when out of stock” due to business related reasons.

We’re seeing the same issue here, and it only seems to affect Android.

This is also effecting my app, we need to add 8 items to the cart but the pop up comes up on the first item. If the merchant clicks “x” or add to cart, either way it removes my discounts I added. Really this feature should happen on the cart not a pop-up over my app. This is causing serious problems.

Confirming this is an issue in our app too. It also really messes with trying to use the cart transform function on POS, as it prevents the cart transform from running. This issue also happens even when a product or variant has the “Continue selling when out of stock” set to true.