Set sales channel for productCreate

Hi there.
I’m creating products through an app using GraphQL and I’m wondering if I can set the sale channel availability for the newly created product.

I’m currently only creating products for the online store, but I may need to create for different channels later on.

Thanks!!

3 Likes

Hi @LePong ,

We do have the Publication object, but the required scope (read_publications/write_publications) is currently a protected scope that we are still building out a process for applying for. I’d recommend staying subscribed to our Developer Changelog for any updates to the availability of this object.

Cheers,

1 Like

Has there been any development on this?

1 Like

I would like to know this too. Making write_publications scope only available to Plus stores is ridiculous..

1 Like

Hi Shopify. Anyone?

1 Like

Hi Shopify. Any updates?

Just found an solution:

  1. You can currently publish a product to the online store via the deprecated ‘published’ field on the productCreate mutation
  2. You can publish to any sales channel with the PublishablePublish mutation.

You can find the original answer here.