Re: How to update the checkout using graphQL

How to update the checkout using graphQL

BalaSM
Shopify Partner
2 0 0

I am trying to modify the checkout by using storefront API version 2023-10. My requirement is to update the checkout using graphQL , but when I gone through the documents, I couldn't find any graphQL functionalities for updating the checkout page, only checkoutCreate is available.

 

Is that the functionalities are removed or something? How can we achieve the aforesaid requirement.

Attached the document link that I have referred.

 

Link: https://shopify.dev/docs/api/storefront/2023-10/mutations/checkoutCreate

Reply 1 (1)

Liam
Community Manager
3108 341 880

You should be able to use the Admin API to achieve this rather than the Storefront API - eg by using the cartLinesUpdate mutation, you can update the contents of a cart at checkout. Will this work for you?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog