#stack-underflow

1 messages ยท Page 1 of 1 (latest)

spark ingotBOT
flint plaza
#

Hello ๐Ÿ‘‹
Unfortunately, not at the moment. You'd likely need to move the billing cycle anchor manually by calling the API. We usually recommend billing on the first day of the month instead.

reef flint
#

When you say moving manually -- that would mean calling to reset the billing anchor at the end of the next month with 31 days, right? That would cause the customer to have an multiple invoices in a short period, because we would charge them on the 28th, and then again on the 31st - right? Any way to avoid that?

flint plaza
#

You can add a trial of 3 days

#

that should move the anchor to 31st

reef flint
#

We use usage based biling

#

Won't that give them free usage?

flint plaza
#

Ah usage-based... hm thinking

spark ingotBOT
flint plaza
#

yeah with metered billing the trial trick won't work unfortunately.

final helm
#

Hey hanzo had to step out but I can help and am trying to think of what you can do here. One thing I can think of would be to create a new subscription once the next 31 day month starts and cancel the old one. Both of those things could be done with subscription schedules though that is a decent amount of complexity here

reef flint
#

So whats the workflow there? Each time a user creates a subscription, we'd have to create a schedule that checks if the current month has less than 31 days, and if so we setup a schedule with 2 parts, one with an end date at the end of the current month, and one with an end date of the next month? Or will they still get charged during the monthly cycle early that way? I don't see any way in the schedule to cancel a subscription

final helm
#

To cancel a subscription you would have to set end_behavior=cancel https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-end_behavior
But yes, that is the part I am trying think of how to address: bridging that 1-3 day gap for the 5 months with less than 31 days.

#

Actually I did think I thought of that. I more meant you set up a schedule to have the subscription ends at the end of the month on the 28th, then another schedule that would create a new subscription on the 1st of march with an anchor on the 31st. Still fairly complex but that would be pretty close to what you want.

reef flint
#

Interesting thank you -- I can try playing around with that

final helm
#

Sounds good. I am still thinking a bit on if there are other ways to do this but I haven't seen other suggestions other than trials. Let me know if you run in to issues or questions and I will let you know if I can think of anything simpler

spark ingotBOT