Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

How to create checkout URL with cart token?

How to create checkout URL with cart token?

PixelNX
Visitor
1 0 1

Hello :),

I am developing an APP, which is based on the Shopify API. I want to create a checkout URL with a cart token.

when a user clicks on the "add to cart" button I receive a token by the Shopify webhook, and we need to create a checkout URL using this token.

Please help me to resolve this issue.
Thanks in advance.

Reply 1 (1)

Alex
Shopify Staff
1561 81 343

At this time you cannot.

 

Checkout creation is done via the Sales Channel API, meaning that apps creating checkouts are expected to be sales channels. Carts are a component of the online store, a sales channel of its own. Channel apps are expected to implement their own cart system, otherwise it's all done as the checkout itself is assembled. You could use the cart webhooks to build a checkout based on the line items in said cart, however.

 

Cheers.

Alex | 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 the Shopify Help Center or the Shopify Blog