#Benoît
1 messages · Page 1 of 1 (latest)
👋 happy to help
Hi !
you can add a Customer Credit Balance
Thanks !
But this would be applied on my customer, whatever the next invoice type, isn't it ? I would like this balance to be applied only on his next subscription invoice. If he wants to make a one-time payment before the subscription renewal, he musn't be balanced
But this would be applied on my customer, whatever the next invoice type, isn't it ?
yes that's correct, on the next invoice
If he wants to make a one-time payment before the subscription renewal, he musn't be balanced
if the payment isn't through an invoice it won't be applied
It will be through an invoice
hmmmm, in that case, maybe it's better to apply a coupon (https://stripe.com/docs/api/invoices/update#update_invoice-discounts-coupon) to the draft invoice before it gets finalized
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
My customer may have already used a coupon when he has subscribed for the 1st time
Could i retrieve the next upcoming invoice, and apply an update to it by passing it a temporary coupon that would be used only one time ?
Could i retrieve the next upcoming invoice, and apply an update to it by passing it a temporary coupon that would be used only one time ?
not exactly
give me a few minutes would like to try something, maybe there's an easier way
🤞
sorry still looking into this
No problem, thank you !
ok so basically the easiest way is to apply a one-time coupon on the subscription
this will automatically update the next invoice with the coupon amount off
Ok, so i must add a coupon via the "discount" array property of the subscription ?
yes, or pass the coupon id you want to apply to the Subscription:
https://stripe.com/docs/billing/subscriptions/coupons?dashboard-or-api=api#discount-subscriptions
My customer may have already used a coupon when he has subscribed for the 1st time, that allow him to have a recursive reduction month over month. If i set a new coupon, it will replace the old one, isn't it ?
If i set a new coupon, it will replace the old one, isn't it ?
Yes