#Tailor

1 messages ยท Page 1 of 1 (latest)

queen mistBOT
ancient dome
#

Hi there,
Yes, you can't update the billing_cycle_anchor for a specific future timestamp.

lusty bay
#

so is there no way to achieve what I described?

#

to charge the customer on the 1st of next month?

keen sierra
#

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?

lusty bay
#

Hi there, would you like me to send you the subscription ID ?

keen sierra
#

Yes please

lusty bay
#

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 ๐Ÿ˜…

keen sierra
#

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

Learn how to set the billing date for subscriptions.

lusty bay
#

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?

keen sierra
#

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

Learn how to move Billing objects through time in test mode.

lusty bay
#

alright, awesome, thanks a lot for your time and effort ๐Ÿ˜‡

keen sierra
#

Happy to help!