Experiencing a very recent issue where the storefront API is no longer returning data as expected.
This has occurred since about 11th of April 2025.
Extremely troublesome as I am unable to find any documented change to the Storefront API for products/collections.
Examples below outline that the access token has the appropriate scopes granted, but the response is as if we’re blocked from reading collections.
Docs clearly state that only “unauthenticated_read_product_listings” is required.
Does anyone have insight into why this would be happening all of a sudden?
Request IDS:
139eeb1a-a6a0-495b-b0b2-27ff0922c5bd-1744784309
972bf06c-59bb-4224-acdb-a9317be9234c-1744784313
da945abc-3910-4e10-b3bf-8233c81b8e5e-1744784352
085b887d-1f9b-4d6a-9ccf-03adc6b79394-1744784396
–
Using 2025-01
Here is the response when creating a token, these scopes all match the scopes I’ve outlined in our app.toml file.
{
storefrontAccessTokenCreate: {
userErrors: [],
shop: { id: 'gid://shopify/Shop/XXXXX' },
storefrontAccessToken: {
accessScopes: [
{ handle: 'unauthenticated_read_metaobjects' },
{ handle: 'unauthenticated_read_product_tags' },
{ handle: 'unauthenticated_read_product_inventory' },
{ handle: 'unauthenticated_read_product_listings' },
{ handle: 'unauthenticated_write_checkouts' },
{ handle: 'unauthenticated_read_checkouts' },
{ handle: 'unauthenticated_write_customers' },
{ handle: 'unauthenticated_read_customers' },
{ handle: 'unauthenticated_read_selling_plans' },
{ handle: 'unauthenticated_read_product_pickup_locations' }
],
accessToken: 'XXXXX',
title: 'SF Token'
}
}
}
And I simple collection query like this:
{
collections(first: 10, reverse: true) {
totalCount
}
shop {
name
}
}
Is now returning
{
"data": {
"collections": {
"totalCount": "0"
},
"shop": {
"name": "GN - Dev & Partner"
}
}
}
But a token from my testing app returns
{
"data": {
"collections": {
"totalCount": "4"
},
"shop": {
"name": "GN - Dev & Partner"
}
}
}