StorefrontAccessToken API : Why always HTTP/1.1 403 Forbidden ?

Appypie
New Member
3 0 0

I am trying to use the StorefrontAccessToken API
POST /admin/api/2021-04/storefront_access_tokens.json

In the response I am always getting
HTTP/1.1 403 Forbidden
{
"errors": "App must be extendable to create a storefront access token."
}

As Shopify document says that it comes due to "Generating a token for an app that lacks required unauthenticated scopes fails"
I have already tried to use unauthorised scopes in the OAuth to use this API but each time when I do it app does not run.

How to fix this and get the store front access token ?

I have Already checked : https://community.shopify.com/c/Shopify-APIs-SDKs/StorefrontAccessToken-quot-App-must-be-extendable-...

My app is a sales channel as we are creating Shopify app of category "Mobile App Builder"

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
293 36 47

Hey @Appypie 

Can you link me the ID of your app (you can see this in the URL in partners dash). It should look something like: https://partners.shopify.com/<partner_id>/apps/<app_id>

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
293 36 47

Hey @Appypie 

Thanks for providing the ID, I think I may have an idea of why you are getting the 403. Can you please confirm you have requested one storefront scopes during app installation on a shop before generating the token? See this forum post here for details: https://community.shopify.com/c/Shopify-APIs-SDKs/How-to-get-access-to-the-new-Storefront-API/m-p/32...

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes