Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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?