Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
I need to get all the sales channels but I can't find the endpoint to retrieve them.
Can you help me please ?
I also need to create a product and associate it with a sales channel.
Solved! Go to the solution
This is an accepted solution.
Hi @BLC-Nicolas
No, it's not possible via our REST API. In general some features will be added to GraphQL and may not be included on the REST version. Your application can make both types of calls - there's no need to switch the entire application over all at once to GraphQL in order to use these features.
Kind regards,
CS | API Support @ 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
Hi @BLC-Nicolas
You can retrieve active sales channels via the channels object in GraphQL - https://shopify.dev/api/admin-graphql/2021-10/queries/channels
Regarding creating a product and associating it with a channel - you can publish a product to a channel as described here: https://shopify.dev/api/admin-graphql/2021-10/mutations/publishablepublish
Regards,
CS | API Support @ 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
Thanks @csam ,
For now, I am working with the REST API, is it possible to do that with it ?
This is an accepted solution.
Hi @BLC-Nicolas
No, it's not possible via our REST API. In general some features will be added to GraphQL and may not be included on the REST version. Your application can make both types of calls - there's no need to switch the entire application over all at once to GraphQL in order to use these features.
Kind regards,
CS | API Support @ 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
Hi, Shopify experts .... any news after lots of months and years? Thanks
User | RANK |
---|---|
6 | |
5 | |
5 | |
5 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022