Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Checkout does not exist Error

Checkout does not exist Error

FrancoCertainly
Shopify Partner
3 0 5

Hey there,
I've been trying to use "checkoutLineItemsAdd" and keep getting this error:

{
    "data": {
        "checkoutLineItemsAdd": {
            "checkout": null,
            "checkoutUserErrors": [
                {
                    "code": "INVALID",
                    "field": [
                        "checkoutId"
                    ],
                    "message": "Checkout does not exist"
                }
            ]
        }
    }
}

It works perfectly when I try it after using checkoutCreate using the storefront API, but not for dynamically extracting checkoutID from URL and cart token from localStorage, cookies, or Shopify.Checkout.cartToken. Even copy pasting the values gives me the same error when not using the checkoutCreate request & details.

Is it not possible to add/remove items on theme automatically created checkouts?

 

Replies 0 (0)