#pobourdeau
1 messages · Page 1 of 1 (latest)
Hello! To clarify, do you want to preview what the upcoming Invoice will look like with the discount, or do you want to apply the discount to the Invoice after it's created?
I'm building an app that you can subscribe to multiple products at the same time. A product can have a closure date and I want to charge only for the remaining amount before closure.
eg:
We are the 2022-09-12, I'm subscribed to a product with a 3 months inverval. The next invoice will be the 2022-12-12. The product will "close" the 2022-12-20. I want to charge for only the number of days/months remaining before the closure and not the full amount of 3 months
My thought was to apply a coupon/discount on an item of the upcoming invoice, but maybe it is not the best way to do it?
Generally speaking you should have the Invoice reflect what's being paid for. Our Subscriptions and Invoices support multiple Products, and proration when the number or quantity of Products is modified: https://stripe.com/docs/billing/subscriptions/change
You should not need to use discounts for this, our prorations system should be able to handle what you want.
Oh okay, can I set a date for the price change? If I change the price 7 days before the renewal, when will the customer will be charged? Does it change the anchor date of the subscription cycle?
Yep, you can use a Subscription Schedule to schedule changes to a Subscription: https://stripe.com/docs/billing/subscriptions/subscription-schedules
Changes to the billing cycle are detailed here: https://stripe.com/docs/billing/subscriptions/billing-cycle
Could I just remove the subscription_item from the subscription and create a new subscription with the product for the X months remaining?
I forgot to specify that a subscription can have multiple products, so if it remains 2 months before closure on one project, the subscription will have two intervals (one with a 3 months interval, the other with a 2 months interval) which is not supported by stripe, correct?