#Julio-upcoming-invoice-coupon
1 messages ยท Page 1 of 1 (latest)
That coupon is set up to only discount a specific product, and that product isn't on the invoice so there is nothing to discount.
No, that's not included in the provided response by default and I had to inspect the coupon to find this info. Though I think you could retrieve the info with the invoice if you used expand to reach down into the object structure to expand applies_to:
https://stripe.com/docs/api/coupons/object#coupon_object-applies_to
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.