#mattVilla - subscriptions

1 messages ยท Page 1 of 1 (latest)

woven dove
#

Hello, I am not quite sure what "fare" means in this context. Is that an additional fee on the monthly fee? Or is the fare part just to say that the subscription is for a monthly train ticket or something?

fluid ermine
#

fare is the price for me.
actually we have a premium subscription with a fix price, and you can add some coworkers in the subscription. Each coworker you want to add to the subscription have to be prorated

#

in my example the first billing would be 5โ‚ฌ * quantity

#

and the next month 10โ‚ฌ * quantity

woven dove
#

Ah, so you are asking about how to have a subscription that renews on the first of every month/year and charges less for the first payment as the user starts their subscription later in the month/year?

fluid ermine
#

not necessarily every first of the month but yes this is the idea

#

the first payment would be prorated and after the period the client would be charged normally

#

with the real price

woven dove
#

Gotcha, that is definitely possible. Looking in to if we have a doc on this

#

Basically subscriptions have something called a billing cycle anchor which defines what day of the month they renew on. If you set it to the first of the month and create prorations, that should charge like you have described

fluid ermine
#

i see the billing billing_cycle_anchor so I have to specify the timestamp on the very first subscription (tell me if I'm wrong)
and for a second payment which would be prorated I just have to create a new checkout session on the same customer and the system will prorate automatically ? or do I have to do something else ?

soft sparrow
#

Hello ๐Ÿ‘‹
Taking over from Pompey as they had to step away, Give me a few to catch up and I'll respond asap ๐Ÿ™‚ thanks

fluid ermine
#

ok thanks

soft sparrow
#

Thank you for waiting

#

I'm a bit confused by your follow up ask

and for a second payment which would be prorated I just have to create a new checkout session on the same customer and the system will prorate automatically ? or do I have to do something else ?

#

Can you clarify or try re-wording this for me?

fluid ermine
#

on the system we are developing you can have a premium subscription monthly or yearly. you would be charged every year/month
on the subscription you have the possibility to add some coworkers but you have to pay for it.
the price of the addition of the coworker is prorated if the subscription already exist.
example :
you start a subscription on the 1st of september for one month, and you want to add a coworker on the 15th of september. instead of paying 10โ‚ฌ you would pay 5โ‚ฌ

#

but i don't know how to do

#

and after the month is over you pay 10โ‚ฌ automatically for this coworker

#

is it clear ?

soft sparrow
fluid ermine
#

if I understand well this is the per-seat model

#

but when I already have a subscription I'd like to add more seats and every seat will be prorated with the end date of the subscription

soft sparrow
#

Gotcha, so in that case you'd update the quantity right?
I'd actually recommend testing it out with Upcoming invoice endpoint to preview the proration details.
It'd allow you to actually visualize the changes you're making before making them

https://stripe.com/docs/billing/subscriptions/prorations

fluid ermine
#

this is proration on subscription right ?
not on a product contained in the subscription ?

#

in the per-seat model this is the user I want to prorate

soft sparrow
#

Sorry I'm confused.
Updating the quantity in an existing subscription doesn't create new subscriptions

fluid ermine
#

and that's good but I want the customer pay for new user during the subscription (if he decides to)

#

and the addition of these new user have to be prorated

soft sparrow
#

So if you

  • Start a subscription on 1st of september with 1 quantity
  • Add a coworker (increase the quantity) on 15th
    it's still all under one sub

You question is how you can charge them immediately on 15th?

fluid ermine
#

yes

#

charge them for 15 days left in our example

#

and the next month the customer would be charged normally

soft sparrow
fluid ermine
#

okay but

#

is it normal that the "proration_beahvior" doesn't appear on that page ?

#

or do am I missing something ?

soft sparrow
#

on what page?
Are you looking at Create a subscription or Update a subscription section?

fluid ermine
#

oups ! sorry ... my browser didn't find it but it's ok

#

in the susbscription object there is no proration_beahvior is it normal ?

soft sparrow
#

๐Ÿ‘

fluid ermine
#

I'm not sure you see my question ๐Ÿ˜‰

tranquil ledge
#

๐Ÿ‘‹ stepping in as hanzo needed to step away

fluid ermine
#

ok

tranquil ledge
#

proration_behavior is specifically for the update of a Subscription (or the change of phase for a Sub Schedule)