FROM CACHE - en_header

Published Product On Sale Channels Like Google By Graphql API

cbrl1974
Shopify Partner
3 0 0

I'm trying to Publish or UnPublish a Product On Sale Channel Google  through Graphql API. Is this even possible?Sales channel.png

Replies 2 (2)
ShopifyDevSup
Shopify Staff
Shopify Staff
520 78 142

Hi @cbrl1974 👋

You should be able to publish/unpublish products with the `publishablePublish` mutation. Keep in mind that you'll need the `write_publications` access scope which is only available to custom apps installed on Shopify Plus stores at this time.

 

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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

cbrl1974
Shopify Partner
3 0 0

It seems that is only possible for Shopify Plus stores, "Requires write_publications access scope. This scope is currently available only to custom apps installed on Shopify Plus stores. Contact Shopify Partner Support to enable the scope for your app. Also: You must have read access to product_listings and Storefront API permissions to read products, variants, and collections."

publishablePublish (shopify.dev)