Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Recently it was announced in the developer changelog that custom apps now have access to the storefront API.
https://shopify.dev/changelog/storefront-api-now-available-for-custom-apps
The documentation for getting started with the storefront API also mentions custom apps
https://shopify.dev/docs/storefront-api/getting-started
You've authenticated using basic HTTP authentication for your private app or using OAuth for your public or custom app. If you're authenticating to the Storefront API as a public app, then you need to turn your app into a sales channel.
However, this does not appear to be working at all and the following error is returned when attempting to create a storefront access token from a custom app:
{
"errors": "App must have a channel record to create a storefront access token."
}
The error makes some sense as the custom app is not a sales channel (because custom apps are not able to be a sales channel) and personally I was curious how this was going to even work... but regardless it is supposed to work.
Shopify partner support was not able to provide any insight other than agreeing that it did seem like an issue, I'm expecting a follow-up email from them once they find out more.
Any experience or information on how this is supposed to work would be appreciated.
Hi Sad,
I also hit this wall. I did end up getting around it, finally, at least for a custom app I created via the partner dashboard that I am, for now, using only for exploring shopify APIs. Here is what I did:
I hope this helps anyone else looking around or coming from https://community.shopify.com/c/shopify-apis-and-sdks/app-must-have-a-channel-record-to-create-a-sto...