Also it doesn’t throw any errors, even when I omit field lines or merchandise_id
I have tried using storefront API cartLinesAdd with the same parameters for the same cart and it works. I can get the updated cart with get_cart tool from MCP
We were unable to replicate this on our side - and it’s working when we try it out on a test store. Can you share a request ID (from the response headers) on their MCP update_cart tool request for us to dig deeper? It’s possible this is a product publication issue - where the product is not published on the correct channel.
I am following this as well because I am running into the same issue as datvm23. Could you please confirm what would be the correct product setup and if possible an example of your working test API request? I’ve tried this on two separate stores with live products published on Sales channels and both created non-working carts with empty line items.
Please see below for an example output from a request I made that created an empty cart using an active variant id with inventory in stock:
"{"instructions":"Ask if the customer has found everything they need. If they’re ready to check out:\n\n1. First help them complete their cart with any additional items they might need\n2. If the cart contains shipping-eligible items, prompt them to select a shipping option from those available\n3. Ask if they’d like to add any special instructions or notes to their order (optional)\n4. Check if they have any discount codes or gift cards they’d like to apply (only if they mention them)\n5. Assist them in navigating to checkout by providing a markdown link to the checkout URL\n\nRemember that buyer information helps calculate accurate shipping rates but isn’t required to proceed.\n","cart":{"id":"gid://shopify/Cart/hWN1EEk1TMciQKMuutTnlN3q?key=faa70f279269615ca748a482c6061f44","created_at":"2025-07-30T17:34:33.632Z","updated_at":"2025-07-30T17:34:33.632Z","lines":,"delivery":{},"discounts":{},"gift_cards":,"cost":{"total_amount":{"amount":"0.0","currency":"CAD"},"subtotal_amount":{"amount":"0.0","currency":"CAD"}},"total_quantity":0,"checkout_url":"ada-indigo-demo-store
It would be helpful to see an example from the Shopify side of a working test API request.
Hi I’ve the same problem. Same payload and no products in the cart. It’s always empty. The variant is available and in stock. As endpoint i use www.domainname.com/api/mcp as described here: Storefront MCP server