Cannot go to checkout url that is created checkout rest api

Jasoliya
Shopify Expert
4820 625 1224

I am creating bundle page. For that i am using checkout REST api for create checkout and redirect to it. After call ing this api, i get response with no error and status code 200. However when i redirect to web_url that is return by checkout api, i got 422 error. I don't know what is the issue.

 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
Reply 1 (1)

ShopifyDevSup
Shopify Staff
1436 234 488

Hey @Jasoliya, this is a great question. Just to confirm - are you filtering that generated web_url into another API call to redirect a user or are you just accessing it through a browser? If you're accessing it through a browser, could you share the X-Request-ID you'd receive in response to the REST call you made to generate the web_url value and if not through the browser, could you the X-Request-ID from the response header where you received the 422 response? 

With that we can take a closer look at the error on our end to see what may have been the cause. Hope to hear from you soon!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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