Re: Discounts Webhook?

Discounts Webhook?

Conner_Pope
Shopify Partner
48 1 19

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.

Replies 6 (6)

ui-gab
Shopify Partner
211 13 55

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:

https://community.shopify.com/c/Shopify-APIs-SDKs/Webhook-API-requests-for-PriceRules-Discounts/td-p...

 

Best of luck.

ui-gab
https://www.uiavenue.ca
We specialize in data analytics. If I've helped you today, please give our give our app a try (15-day free trial) https://apps.shopify.com/ui-ave-analytics and maybe write a good review.
Send me a message if you want a free data analysis consultation.
Conner_Pope
Shopify Partner
48 1 19

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.

EdenRTG
Shopify Partner
1 0 0

Did you get any response from them about this issue? 

krisgholson
Shopify Partner
4 0 4

@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?

sonchu
Shopify Partner
7 0 5

Yes please. 

jahilldev
Shopify Partner
26 1 10

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...