My main goal is to create a checkout. I tried to do that, but was told I need to create a storefront token. I successfully called the endpoint to create a storefront token, but I realized in order to create a checkout I need a public app. So I created a public app but now am not able to call the Create Storefront Token endpoint. It works fine with the private app’s X-Shopify-Access-Token header but breaks when I try it on the public app. Here is what I’m doing in Postman:
POST
https://{{API [email removed]
Headers:
| X-Shopify-Access-Token | {{ Public app’s API secret key}} |
|---|
Body (raw/JSON):
{
"storefront_access_token": {
"title": "Test"
}
}
and this is the response I get:
{
"errors": "[API] Invalid API key or access token (unrecognized login or wrong password)"
}
Please someone help me! This documentation doesn’t seem to line up with what actually happens in the API.