#ironbeard - Coupon Webhook
1 messages ยท Page 1 of 1 (latest)
Hi ๐
You can only subscribe to all events of that type. You would need to filter to subscriptions with applied coupons yourself.
Do I need to create the event to get an idea of the response? I'm looking at some of my events and they just have a null/none value for discount, I guess I'd like to know what the object would look like if a discount was applied (if it's just the coupon id, or has info on if a promotion code was used instead of the coupon directly, etc)
I would create some test subscriptions with applied test coupons to see how it works.
Gotcha: I suppose this would also be accurate? https://stripe.com/docs/api/discounts/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
although it seems the Discount object only has info on the Coupon, not the PromotionCode
Nevermind, I see the promo code now
Subscription objects are pretty large. There's a lot of data in there and it's easy to miss things.
Thanks for your help ๐