#Tailor
1 messages ยท Page 1 of 1 (latest)
Hi there,
Yes, you can't update the billing_cycle_anchor for a specific future timestamp.
so is there no way to achieve what I described?
to charge the customer on the 1st of next month?
HI ๐ I'm jumping in as my teammate needed to step away. Could you share an example of a Subscription where you saw this behavior so I can take a closer look at it?
Hi there, would you like me to send you the subscription ID ?
Yes please
sub_1M7o8xK8ZNDCJlfOengj2PiI there you go ๐
basically, I wanted to simulate the state change from past_due to active, with using the trialing state instead of the past_due
either way, when the state changes (in this case) from trialing to active, thebilling_cycle_anchor is changed to the date, when the state change occurred.
Which makes sense of course, but what I would like to achieve is for the billing_cycle_anchor to be set to the 1st day of the next month.
I hope I explained it well ๐
Adding a trial period is different from a Subscription going past due. Trials are expected to change the billing_cycle_anchor. If you want to reset the billing_cycle_anchor to the 1st of the month with trials, then you need to have the trial end on the 1st of the month. The billing_cycle_anchor will be set to the end of the trial.
https://stripe.com/docs/billing/subscriptions/billing-cycle#using-a-trial-to-change-the-billing-cycle
Oh okay, so it might be only because of the trialing state. What about the change from past_due to active state? does it behave the same way as the change from trialing to active or it doesn't?
from past_due to active it doesn't change the billing_cycle_anchor to the date of when the change occurred?
No, I'm pretty sure the change from past_due to active does not change the Subscription's billing_cycle_anchor. You can test the flow and confirm it behaves the way you're hoping by leveraging our Test Clocks. They allow you to create Subscriptions in a sandboxed environment where time is frozen and you're able to manually advance it. This allows you to quickly test scenarios that otherwise would take weeks-months to fully simulate.
https://stripe.com/docs/billing/testing/test-clocks
alright, awesome, thanks a lot for your time and effort ๐
Happy to help!