I had someone recently create a discount code and publish it to the Meta sales channel, causing it to show up in Instagram when products were tagged.
Looking at the GraphQL API I don’t see a way to get this information about a discountNode - are there any plans to add this to the API (or another way to get at this information)?
Hi @David_Robinson,
Here’s some Admin API queries that can help you retrieved code based Discount Nodes on your store:
Here’s some additional documentation on working with Discounts via the API:
Hi Kellan -
I don’t see in the docs where the info about what sales channel the discount is published to is available - for reference, I’m talking about this setting:
Hi @David_Robinson,
Thanks for the additional context. I’ve looked into this further with this in mind, and after some testing on my own store, I don’t believe this info is available via the API at this time.
I am currently discussing this with our developers further internally, and we will be confirming if this is expected behaviour or not, or if there’s any API fields that does expose this information that I may have missed in my investigation.
I’ll follow up here once I have more info to share.
Hi @David_Robinson,
I’m following up here after looking into this further with our developers internally, and I can confirm now that the Sales Channel Access is not currently surfaced in our public APIs at this time.
I’ll go ahead and submit some feedback internally on your behalf to our developers and product managers that you’d like to see this setting available via the API as well. While we can’t guarantee when or if this will be added, I can assure you that we do take all feedback into great value when determining future features, updates, and platform changes.
1 Like