Development discussions around payment processing 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,
To learn more visit the Shopify Help Center or the Community 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,
To learn more visit the Shopify Help Center or the Community 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,
To learn more visit the Shopify Help Center or the Community Blog.
Hi, Shopify experts .... any news after lots of months and years? Thanks
Seconding this, any news on if/when this is going to happen? We're also using the REST API, and really don't want to venture down the GraphQL rabbit hole since we're already down the REST rabbithole...