What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Storefront Api create Cheout Url ,But Return 500

Storefront Api create Cheout Url ,But Return 500

zhangxiaolei1
Shopify Partner
5 0 0

when I generate the cheout url when calling the Storefront api, the interface reports 500 "errors": "Internal Server Error". What is the cause of this?

 

Returning 500 cannot let me know the specific reason. i use postman to create a checkout url

zhangxiaolei1_0-1700219036228.png

zhangxiaolei1_1-1700219046481.png

 

Replies 5 (5)

SBD_
Shopify Staff
1831 273 421

Hey @zhangxiaolei1 

 

Cam you please DM me replication steps / checkout URL?

Scott | Developer Advocate @ Shopify 

zhangxiaolei1
Shopify Partner
5 0 0

1、Use access_token to generate private token。 private token is success return.

zhangxiaolei1_0-1700448215682.png

2、Use private token to create ckeckout url.but return 500

zhangxiaolei1_1-1700448320678.png

 

zhangxiaolei1
Shopify Partner
5 0 0

My purpose is to help the store generate a checkout url through the app, so that users can directly click on the url to jump to the checkout page.

SBD_
Shopify Staff
1831 273 421

Thanks - are you able to capture the request ID from the response headers?

Scott | Developer Advocate @ Shopify 

zhangxiaolei1
Shopify Partner
5 0 0

X-Request-ID: aa887370-a133-4a14-a609-d48d6e827f70