How to Retrieve Sales Channel Details for a Product via Shopify API or GraphQL?

Hello,

I’m looking for a way to retrieve detailed information about the sales channels for a specific product using Shopify’s API. Specifically, I want to know which sales channels a product is listed on or not.

Is there an API endpoint or a GraphQL query that can provide this information? If not, are there any workarounds or alternative methods to achieve this?

Thank you in advance for your help!

Hi @snamdev

You can use below query to retrieve sales channels

{
  product(id: "gid://shopify/Product/8310540468414") {
    id
    title
    productPublications(first: 10) {
      edges {
        node {
          channel {
            name
          }
          
        }
      }
    }
  }
}

Thank you.

D.P.

This is not a useful answer for Shopify Flow

Are you asking about this for Flow or something else?

Hi @paul_n
Thank you for your insights,

I think @snamdev needs the list of Sales Channels through the API, That’s why I have added the query here. @snamdev’s Question is not related to Shopify Flow.

Thank you.

Publication.name is deprecated API. It should be used Catalog.title

@Shopify_77 but main problem it returns different values! before we had Publication.name(feedChannel),

right now Catalog.title returns(Channel Catalog 95167414528)

Different values. So how can we check if it exact same channel?