Development discussions around Shopify APIs
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 |
---|---|
55 | |
11 | |
7 | |
6 | |
5 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023