New Shopify Certification now available: Liquid Storefronts for Theme Developers

Access denied for Channel.products

Solved
arthur_v
Shopify Partner
7 1 0

Hello!

We send request(for get products from channels):
{
  channels(first: 10) {
    edges {
      node {
        id
        name
        products(first: 10) {
          edges {
            node {

              id

              title

            }

          }
        }
      }
    }
  }
}

Response:
access denied

Please help us get all products from all channels.

Thank you.

Accepted Solution (1)
awwdam
Shopify Staff
Shopify Staff
249 42 35

This is an accepted solution.

Hey @arthur_v,

Taking a closer look into the query shared, I can confirm that the GraphQL Admin API channel(s) query was deprecated, as stated in our API documentation here. 

The suggested replacement would be to use a publication(s) query, however this requires access to the scope read_publications available only to some apps installed on Shopify Plus stores. If you are building an app for a Plus store, please have them connect with their support contact to work through obtaining access.

To enquire about access for an app created within a partner account, please connect with our Partner Support team directly through the Partner Dashboard > Support menu. 


Cheers!

awwdam | API 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

View solution in original post

Replies 2 (2)
awwdam
Shopify Staff
Shopify Staff
249 42 35

This is an accepted solution.

Hey @arthur_v,

Taking a closer look into the query shared, I can confirm that the GraphQL Admin API channel(s) query was deprecated, as stated in our API documentation here. 

The suggested replacement would be to use a publication(s) query, however this requires access to the scope read_publications available only to some apps installed on Shopify Plus stores. If you are building an app for a Plus store, please have them connect with their support contact to work through obtaining access.

To enquire about access for an app created within a partner account, please connect with our Partner Support team directly through the Partner Dashboard > Support menu. 


Cheers!

awwdam | API 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

arthur_v
Shopify Partner
7 1 0

Hi Awwdam 

We don't have a Shopify Plus app yet, just a standard app. Did I understand you correctly, that this feature is only available to partners that have a Shopify Plus app, or would this feature be available to us if our client is on Shopify Plus?