Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Establishing sales channels to an Api Rest product

Establishing sales channels to an Api Rest product

dannycode
Shopify Partner
2 0 0

Hi, I´m using the Rest API to create products. Is there any way to specify which sales channels will be available?

By default, when I create it, only "Point of Sale" is selected. I have been looking through the documentation but haven't seen anything about this. Has anyone been able to do it? Thank you.

Replies 2 (2)

Liam
Community Manager
3108 344 894

Hi Dannycode,

 

The `published_scope` field on the product resource is what you're looking for.

 

 

Let me know if this is not working for you. 

Liam | Developer Advocate @ 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

dannycode
Shopify Partner
2 0 0

Hi Liam,

 

I have tried to set the published_scope = "global" but I have not managed to create the product to be available in all sales channels. Only the "Point of Sale" option is checked and what I want is that once the product is created it is available on all channels, including Facebook, Instagram and the online store.

 

I don't know if this can be done from the API Rest or if it has to be done from the Shopify admin panel. Thanks for your help