#ggkoul
1 messages · Page 1 of 1 (latest)
👋
Don't think there is another way other than looking at the Subscription
The recommendation here would be to track this in your database based on Webhooks
Ah actually I lied
You want to look at the discount object: https://stripe.com/docs/api/discounts/object
So yeah retrieve the Sub and look at discount: https://stripe.com/docs/api/subscriptions/object#subscription_object-discount
stripe discount object doesn't show end date / customer... so drop off
looking for customer / coupon / end date
the subscription doesnt cleanly
Hmm the discount indeed should show all of this. It has end and customer and coupon as properties.
So I'm not sure what is missing exactly
Maybe it would help if you provide an actual example Subscription we can look at?
Let me see what a end user can see from a subscription_object-discount record on the customer dashboard