Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
I see that there is no webhook for updating discounts. I am building an app right now that will interact with store discounts, and the functionality would be best if I had constant access to live discounts data.
Does anyone know of a way to make sure your app is getting live discounts data from the store?
I guess I could periodically make a GET request to discount PriceRule and DiscountCode API endpoints and make a diff check to see what has been changed, but it would be much more efficient for a Shopify webhook on discounts.
I was looking for the same thing, but I also couldn't find any way to get discounts as a webhook.
Maybe it's possibly in the works?
I did a quick check and what I found was another thread requesting this:
Best of luck.
I see! It's definitely a common issue then. I'm going to reach out to Shopify Support and see if I can make a request that this gets added.
Did you get any response from them about this issue?
@EdenRTG @Conner_Pope I would like webhooks for Create/Update/Delete on Discount Codes as well. I reached out to Shopify Plus support today (10/17/23) to see if it was something in the works. They didn't know but offered to pass my feature request along to the developers. Anyone know if there is a publicly accessible Shopify roadmap of features?
Yes please.
It looks like this is now available. No idea when this was added, it definitely wasn't there Q4 2023:
https://shopify.dev/docs/api/admin-graphql/2024-01/enums/WebhookSubscriptionTopic#value-discountscre...