Making product available on all sales channels using Product API

kiemi
Visitor
2 0 2

Hello!

I am trying to make the product available on all sales channels when it is created.

It worked when I create from the Store Admin but it is not working when I use the Product API.

Can anyone help me, please?

Thanks in advance.

Replies 3 (3)
Gregarican
Shopify Partner
1031 86 142

What happens when you specify published_scope as global? As is described here --> https://shopify.dev/docs/admin-api/rest/reference/products/product#create-2020-10. If that doesn't publish to any other sales channels (besides POS and Ecom), then perhaps take a look here --> https://shopify.dev/docs/admin-api/rest/reference/sales-channels/productlisting#create-2020-10. This is assuming you are using the REST API.

kiemi
Visitor
2 0 2

Hi, Greg.

Thank you!!

I tried both but it didn't work.

I think it needs to specify something else.

Also, I would like to know how does the product listing work? Seems like there are no product listings on my store.

AlphaBen
Visitor
2 0 0

I believe per this article that this isn't currently possible via the Product API (unfortunately). 

It seems that there maybe an option using GraphQL, but I haven't confirmed that functionality myself.

https://community.shopify.com/c/Shopify-APIs-SDKs/Product-created-via-Admin-API-quot-unavailable-on-...