Hello,
I have created a public app with sales channel enabled and am trying to generate the storefront API access token but keep getting a status code 403 with following response body:
POST /admin/api/2021-07/storefront_access_tokens.json
x-request-id: (41437402-df7a-42cc-b88d-8e98cc3270ad)
{
“errors”: “Token must be eligible to manage storefront tokens.”
}.
The Admin API has the following scopes so i’m not sure what is missing or incorrect. Any ideas?
Admin API (https://{shop}/admin/api/2019-10/graphql.json) Request:
{
appInstallation {
accessScopes {
handle
description
}
}
}
Response:
{
"data": {
"appInstallation": {
"accessScopes": [
{
"handle": "read_product_listings",
"description": "Read product information"
},
{
"handle": "read_orders",
"description": "Read orders, transactions, and fulfillments"
},
{
"handle": "read_shipping",
"description": "Read shipping rates, countries, and provinces"
},
{
"handle": "write_content",
"description": "Modify store content like articles, blogs, comments, pages, and redirects"
},
{
"handle": "write_products",
"description": "Modify products, variants, and collections"
},
{
"handle": "write_customers",
"description": "Modify customer details and customer groups"
},
{
"handle": "write_draft_orders",
"description": "Modify draft orders"
},
{
"handle": "unauthenticated_read_customer_tags",
"description": "Read customer tags"
},
{
"handle": "unauthenticated_read_content",
"description": "Read store content like articles, blogs, comments, pages, and redirects"
},
{
"handle": "unauthenticated_read_product_listings",
"description": "Read product information"
},
{
"handle": "unauthenticated_read_product_tags",
"description": "Read product tags"
},
{
"handle": "unauthenticated_read_collection_listings",
"description": "Read collection listings"
},
{
"handle": "unauthenticated_write_checkouts",
"description": "Modify checkouts"
},
{
"handle": "unauthenticated_write_customers",
"description": "Modify customer details and customer groups"
},
{
"handle": "read_content",
"description": "Read store content like articles, blogs, comments, pages, and redirects"
},
{
"handle": "read_products",
"description": "Read products, variants, and collections"
},
{
"handle": "read_customers",
"description": "Read customer details and customer groups"
},
{
"handle": "read_draft_orders",
"description": "Read draft orders"
},
{
"handle": "unauthenticated_read_checkouts",
"description": "Read checkouts"
},
{
"handle": "unauthenticated_read_customers",
"description": "Read customer details and customer groups"
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 2,
"actualQueryCost": 2,
"throttleStatus": {
"maximumAvailable": 1000.0,
"currentlyAvailable": 998,
"restoreRate": 50.0
}
}
}
}