Hi everyone,
I’m trying to figure out how to access the “Sales Channel Access” feature in the Discounts section using the GraphQL Admin API. I’ve attached an image where I’ve highlighted the specific area I’m referring to.
Can anyone provide guidance or examples on how to retrieve or set this access? Any help would be greatly appreciated!
Hi Quoclucnguyen,
It’s not possible. I recently went down a rabbit hole to try to figure this out.
There are functions in the API such as publishablePublish and publishableUnpublish, but they’re only usable for products and collections.
You can use th publications() query to list the sales channels, but it’s not useful, as you can’t do anything to discounts with them via the API.
I plan to eventually open a feature request thread about this in the Shopify developer forum. If/when that happens, I’ll link it here…
Best,
Tobe
Hi Tobe,
Thank for you reply