New Shopify Certification now available: Liquid Storefronts for Theme Developers

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
Shopify Staff
1671 235 345

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
Shopify Staff
1671 235 345

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