I’m trying to create checkouts as a first step to completing a full payment process. I have some products in the dev store with variants. If I’m not mistaken, I’m following this https://help.shopify.com/en/api/guides/sell-through-the-checkout-api which states that the first thing to do is creating a checkout. However, even when using a valid variant ID, I get an error response saying that it’s invalid. Am I doing something wrong? Thank you
Hey @jameszq ,
Do you have all of the required permissions and scopes to create and complete the payment process? In order to use the Shopify Admin Checkout API, your app needs to be using the Sales Channel SDK.
If this is the case and you are still seeing errors, could you provide the value of the X-Request-ID header from the API response? With this information I can dig in more through our logs and help investigate what might be going on here.
I fortunately figured out where the problem was. I didn’t know that you should first target the ProductListing endpoint before making a checkout using a certain product’s variant. Thank you
1 Like