Have an app based on 2024-04 API version which successfully add products to cart via GraphQL.
After few weeks customers who has app working started report the sudden fail of the add to cart function. There were no code changes from our side.
So mutation cartLinesAdd in graphQL starts to return errors like specified cart does not exist
Looks like Shopify update something in the background instead of pushing new changes to new version(!?) of API for example https://shopify.dev/changelog/storefront-api-changes-when-cart-id-is-missing-the-key-param
Anyway my dev store works just fine but
client 1: does not have any key when Carts_Update webhook received so cart add action is fail (why it works before..)
GraphQL cart ADD Full response: {"data"=>{"cartLinesAdd"=>{"cart"=>{"id"=>"gid://shopify/Cart/Z2NwLWV1cm9wZS13ZXN0MTowMUo2RjlNVEJIUkhUN1pUWU5CWFkyVXXX", "lines"=>{"edges"=>[{"node"=>{"id"=>"gid://shopify/CartLine/9deb7f57-72d1-4c34-87e5-3267b437b9ea?cart=Z2NwLWV1cm9wZS13ZXN0MTowMUo2RjlNVEJIUkhUN1pUWU5CWFkyXXX", "quantity"=>1, "merchandise"=>{"id"=>"gid://shopify/ProductVariant/45375246237834", "priceV2"=>{"amount"=>"35.0", "currencyCode"=>"USD"}}}}]}}, "userErrors"=>[{"field"=>["cartId"], "message"=>"The specified cart does not exist."}]}}}, Shopify Domain: store1.myshopify.com
client 2: does have a key in param but starts to receive same specified cart does not exist
GraphQL cart ADD Full response: {"data"=>{"cartLinesAdd"=>{"cart"=>{"id"=>"gid://shopify/Cart/Z2NwLWV1cm9wZS13ZXN0MTowMUo2RVpITkFOWFIzUU5aSkg0SzZNSlhZMA?key=bc0a4d08e11fa3cdcd234c96c092d6XX", "lines"=>{"edges"=>[{"node"=>{"id"=>"gid://shopify/CartLine/84cae575-3485-4e62-ad95-a54f05fc2655?cart=Z2NwLWV1cm9wZS13ZXN0MTowMUo2RVpITkFOWFIzUU5aSkg0SzZNSlhZMA", "quantity"=>1, "merchandise"=>{"id"=>"gid://shopify/ProductVariant/45375246237834", "priceV2"=>{"amount"=>"35.0", "currencyCode"=>"GBP"}}}}]}}, "userErrors"=>[{"field"=>["cartId"], "message"=>"The specified cart does not exist."}]}}}, Shopify Domain: somestore2.myshopify.com
Before adding the cart I do call GraphQL like in hope to receive the cart id with key
query GetCartFromId($cartId: ID!) {
cart(id: $cartId) {
but for the store1 the returned value does not have a key, for second store it has but anyway adding product to cart is stop working.
Note: all works just fine for a weeks and no changes from app code or server.
Note2: all works fine on my dev store.
Would be nice to have some help before telling clients to migrate