Shopify / js-buy-sdk

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.

Home Page:https://shopify.github.io/js-buy-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lineItemsToUpdate and lineItemIdsToRemove methods are not working

ijazbacha opened this issue · comments

@melissaluu sorry to ping you here but i face some issue.
Passing correct checkoutId and productId but facing the following error:

[{"message":"invalid id","locations":[{"line":1,"column":3615}],"path":["checkoutLineItemsUpdate"]}]

Hi @ijazbacha - please try passing in the checkoutLineItemId instead of the ProductId.