#wiiim

1 messages · Page 1 of 1 (latest)

shy orchidBOT
arctic sentinel
#

Hi! What's the question?

river sorrel
#

Hey, sorry for the delay.

I'm trying to build a system were each user can have a variable discount amount on a subscription. How would I realise something like that with stripe? Do I need to create a whole voucher for each user to be able to adjust the discount on a per-user basis? Or is there something I can give the API when creating the subscription for the user?

arctic sentinel
#

Is the discount a fixed amount or a percentage of each month's bill?

river sorrel
#

its a percentage value

arctic sentinel
river sorrel
#

I may have tens of thousands subscriptions, if not more. Is it really feasable to create a new coupon for each subscription?

arctic sentinel
#

It depends how much management will you have in the future. Maybe it's worth setting a custom amount if you plan to change the amounts later.

river sorrel
#

Yea it should be definitly possible to change the amount of discount during the subscriptions active time.

A percentage value is not possible with the unit_amount in the price_data?

arctic sentinel
#

You just calculate the final amount on your side and set it in price_data. You can keep the details of the discount in the metadata

river sorrel
#

alright. and lets say a subscription is monthly billed and it has a current unit amount of 5€ and I update that value in the middle of the month to 10€. the next bill should then be 10€ right?

arctic sentinel
river sorrel
#

i dont set that, so i guess the default "create_prorations"?

arctic sentinel
#

Yes, then your customer will be billed $10 + $2.5 (prorated amount) in the next cycle

river sorrel
#

okay, thank you very much for your input.

arctic sentinel
#

Happy to help!