#pobourdeau

1 messages · Page 1 of 1 (latest)

dull sapphireBOT
drifting flume
#

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?

lone storm
#

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?

drifting flume
#

You should not need to use discounts for this, our prorations system should be able to handle what you want.

lone storm
#

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?

drifting flume
lone storm
#

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?

drifting flume
#

That's correct, if you have two different intervals you need separate Subscriptions.

#

You could remove the item and create a new one as described, yes.