Shopify GraphQL “cartLinesAdd” API

Shopify GraphQL “cartLinesAdd” API


1

Shopify GraphQL "cartLinesAdd" API

When I hit this Shopify GraphQL "cartLinesAdd" API to add product to my shopping cart, in response it says invalid ID. So, can anyone please help me to find out what’s wrong here?

1 Answer
1


0

The cart docs on Shopify seem to show they want "merchandiseId" to start with "gid://shopify/ProductVariant/" so I guess you should replace yours with the same value, but this at the front of it.



Leave a Reply

Your email address will not be published. Required fields are marked *