I have multiple sales channels on my store. Given a product id, how do I find all the sales channel enabled for that given product via API?
API can be REST or GraphQL.
I have multiple sales channels on my store. Given a product id, how do I find all the sales channel enabled for that given product via API?
API can be REST or GraphQL.
Hi Jayaraj,
Thanks for your post. This is possible using a GraphQL query such as the one below, noting that the ‘read_publications’ scope is required which is currently available only to custom apps installed on Shopify Plus stores and which needs to be added by Partner Support by request.
The query:
query {
product(id: “gid://shopify/Product/12345”) {
resourcePublications(first: 10) {
nodes {
isPublished
publication {
name
id
}
}
}
}
}
Some related documentation: