Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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.
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