Access token creation got the error "App must be extendable to create a storefront access token"

when i try to create a store front access token for my public sales channel i got this error “App must be extendable to create a storefront access token” why this such error coming?

during response X-Request-ID : 9edbbdcf-692d-4403-9496-e7e104f93e3f

my request format:

curl -d ‘{“storefront_access_token”:{“title”:“Test”}}’
-X POST “https://xxxx.myshopify.com/admin/api/2022-04/storefront_access_tokens.json
-H “X-Shopify-Access-Token: {access token}”
-H “Content-Type: application/json”

in request {access token} where get this data

2 Likes

I want to answer my own question achieve this solution you must have the following requirements:

  1. Enabled sales channel (You can find it in Apps->your app->app setup)
  2. Api scopes with following values: read_products,write_products,unauthenticated_read_content,unauthenticated_read_customer_tags,unauthenticated_read_product_tags,unauthenticated_read_product_listings,unauthenticated_write_checkouts,unauthenticated_read_checkouts,unauthenticated_write_customers,unauthenticated_read_customers
4 Likes

Thank you. For no reason my app stops to work but your solution helps me

Just to clarify were you able to create store front token from your app? 

Where I can enable sales channel from the partner org or the store. 

I thought I can generate store front token from my app but getting "

"App must be extendable to create a storefront access token."

Apps->your app->app setup

Can’t find that (german localisation).

There are 4 tabs “Overview” / “Configuration” / “API Login Data” / “App Settings”

On “Configuration” I can edit the “Admin-API-Integration” (used so far) und configure the “Storefront-API-Integration” (not used so far).

The other 3 tabs don’t seem to have any matching setting.

In “Admin-API-Integration” there are no “unauthenticated_***” scopes.

I just need to get all availableCountries of the shop which is now deprected for the RestAPI and I never used the storefront API so far.
This doc says the localization Object (where I can find availableCountries) doesn’t need any access scopes.
Seems to be whole day work just to figure out, how to get the availableCountries? I’m struggling from one problem to the next and maximally confused.

Welcome to Shopify :see_no_evil_monkey: