How to create checkout URL with cart token?

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.

1 Like

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.