#spencersr - Coupons
1 messages · Page 1 of 1 (latest)
Discounts are passed as an array to the API. You could simply try updating the invoice with a second Coupon object.
Say whaaaaaaaat?
If you take a look at the code snippet here, you'll see what I mean:
https://stripe.com/docs/billing/subscriptions/coupons#using-coupons-in-checkout
Even though we only show a single coupon, that's an array
awesome. Now.... to figure out what will happen if they initiate an ACH and this expires before a certain amount of time.
Do y'all have a write up on coupon compounding?
You could also try discounting the Customer specifically :
https://stripe.com/docs/billing/subscriptions/coupons#discounting-customers
Yeh I saw that but assumed I would also have to apply the coupon code (on top of the one provided in the subscription).
Adding a coupon to the draft invoice is what I needed.. Thanks. Just a learning hurdle on my side.
Perfect, glad to help 👍