#akhil_api

1 messages ยท Page 1 of 1 (latest)

full runeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1291021917712679076

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

stiff stream
vital ridge
#

Hi @fervent field - when a subscription is in_trial, even if we do proration invoice immediately, it doesn't raise the invoice immediately

#

So we're migrating subscriptions from Chargebee to Stripe and as you can imaging, a lot of subscriptions are already ACTIVE

#

So we need to migrate them as ACTIVE and ensure Stripe doesn't create a new invoice for the current billing period

#

The advice that we found was -

To migrate your active subscriptions to Stripe and ensure that Stripe does not collect payment for the current billing period, you can set a custom trial end date that matches the end of the current billing period. This way, the subscription will start billing in Stripe only after the current period has ended, thus avoiding double billing for the same period.

When creating subscriptions through the API, specify the trial_end parameter to set the trial period to end after the current billing cycle. This ensures the new billing cycle will start in Stripe after the current period ends.

#

However with this advise, when the subscription is in_trial, if we edit say the quantity of a product and want it billed immediately, Stripe doesn't bill immediately

#

Do you have any advise on how we can ensure we migrate active subscriptions?

stiff stream
#

If you make a change before trial has ended, you should end the trial first and then make the change.

vital ridge
#

No, if we end the trial sooner, and then Stripe would just bill the customer for the current billing period which the customer has already paid for in the current billing system

stiff stream
#

Stripe won't charge for current period but the next period.. So let's say you have an active sub that charges $10 per month and the cycle is Oct 5th to Nov 5th.

You migrate to Stripe on Oct 20th and customer wants to make a change on Oct 25th. When you end the trial, the billing cycle anchor changes.. It creates a new cycle from Oct 25th to Nov 25th.. The new invoice would be $10 for the new cycle and any proration for the unused trial period.. You can disable proration when you end the trial.

Then you can update the subscription with the new price and proration behavior -> always_invoice
That should generate a new invoice and you'd then void the previous $10 invoice manually.

(I haven't tested any of the above myself, so I'd recommend trying it out in test mode)

vital ridge
#

Sorry I'm struggling to get my head around that, would you mind just explaining it again but may be with a little more information, like a timeline of events would be greatly appreciated.

stiff stream
#

Which part are you struggling with exactly? I have the timeline in the above message ๐Ÿ˜…

When you end the trial, the billing cycle anchor changes.. It creates a new cycle from Oct 25th to Nov 25th.. The new invoice would be $10 for the new cycle and any proration for the unused trial period.. You can disable proration when you end the trial.

Then you can update the subscription with the new price and proration behavior -> always_invoice
That should generate a new invoice and you'd then void the previous $10 invoice manually.
If you're unclear about when above updates should happen, all of these would be on Oct 25th since that's when customer wants to update in my example

vital ridge
#

So on the 25th, the billing cycle of the subscription would change to 25th Oct to 25th of Nov? Where as the acutal billing cycle is 5th of Oct to 5th of Nov....this is the part that's throwing me.

stiff stream
#

Oh I see what you mean.. Let's say today is Oct 14th.. You have an existing subscription on chargebee with current period that started on Oct 5th.. and you want to move it to Stripe..