Shopify Storefront API Access Denied Error

Topic summary

A developer is encountering an ACCESS_DENIED error when attempting to fetch product data from Shopify’s Storefront API for a mobile application built in Xcode.

Troubleshooting steps already taken:

  • Verified correct .myshopify URL
  • Confirmed valid storefront access token
  • Ensured all necessary permissions are enabled

Error details:
The API returns an empty error message with extension code ACCESS_DENIED, resulting in a “Failed to parse product data” error in the application.

Current status:
The issue remains unresolved. A second user has reported experiencing the same error while attempting server-side cart creation using a private app and token, suggesting this may be a broader authentication or permissions issue affecting multiple implementation scenarios.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Hello, I’m currently developing a mobile application that utilizes Shopify’s Storefront API to fetch and display product data on the mobile application using Xcode. After a ton of testing and revisions, I have ensured that I am using the correct store .myshopify url, storefront access token, and have made sure all the necessary permissions are required, yet I’m still getting an Access Denied error:

Received data: {“errors”:[{“message”:“”,“extensions”:{“code”:“ACCESS_DENIED”}}]}

Parsed JSON: Optional([“errors”: <__NSSingleObjectArrayI 0x60000006c450>(

{

extensions = {

code = “ACCESS_DENIED”;

};

message = “”;

}

)

])

Error fetching products: The operation couldn’t be completed. (Failed to parse product data error -1.)

Received data: {“errors”:[{“message”:“”,“extensions”:{“code”:“ACCESS_DENIED”}}]}

Parsed JSON: Optional([“errors”: <__NSSingleObjectArrayI 0x600000065940>(

{

extensions = {

code = “ACCESS_DENIED”;

};

message = “”;

}

)

])

Error fetching products: The operation couldn’t be completed. (Failed to parse product data error -1.)

Any ideas on what I could try? Thank you.

2 Likes

Any update on this? I got the same error, I’m trying to create a cart with private app and token (just server side requests).

2 Likes