#Filip | Tenderly-billing-cycle-anchor
1 messages ยท Page 1 of 1 (latest)
I've edited the message ๐ Sorry for making it a bit confusing.
Hi there ๐
Yup, that all sounds right, but I'd recommend running it through a test to make sure it's calculating prorations as you're expecting.
Stripe has "time-machine"? And is there a way to specify anchor through UI or I'll need to write small test script for that?
And additionally, is there a docs where I can read how proration is being calculated?
If trial is overlapping anchor timestamp how will that be calulacted, is that day excluded or not.
Within the dashboard you can use the trial period to shift the billing_cycle_anchor, but you can't control the proration behavior so a script is probably a better approach.
We have a method to vie upcoming invoices to see what will be charged in the future:
https://stripe.com/docs/api/invoices/upcoming
Yes we have a doc explaining proration:
https://stripe.com/docs/billing/subscriptions/prorations
The billing_cycle_anchor can't overlap with the trial period, as mentioned in the doc you linked previously:
Introducing a trial results in setting the anchor to the end of the trial.
hey there @fluid pivot i unarchived this
I just run a script and I've confirmed most of what I mentioned here.
Just one question is still present. How should I move invoice to end of cycle, instead of the beggining?
e.g. User is enrolling in the subscription at the 5th but actual first invoice is issued on last day of the month for the period from 5th to the end of month.
cool, would appreciate the help ๐
How should I move invoice to end of cycle, instead of the beggining?
This is not how Stripe's invoices work, they are on a pre-billed basis and are for the period following the invoice issued. eg Nov 1 invoices is for Nov 1 - Dec 1
You can offset this in terms to payment dates for the customer by adding eg a 1 month trial and start billing on Dec 1 (or Nov 30), but the invoice will indicate the following period still.