#Timothée

1 messages · Page 1 of 1 (latest)

gaunt gazelleBOT
fathom crown
#

Hello, I am not quite clear on your ask. Can you tell me more about what you are trying to do here? Are you using some kind of metered billing and want to set a threshold for sending our an invoice? Or are credits something that you are defining yourself and you just want to know how to reset the billing cycle?

scarlet flax
#

Credits are defined on my side. I'm not using Stripe metered billing.

#

For example, a user can have a medium subscription with 10K credits. Every billing cycle, the user gets 10K credits to use.

#

But sometimes they use all their credit and would like to advance to the next billing cycle immediatly instead of waiting for the next billing period.

#

I can do that in the dashboard bu updating a subscription, disabling proration and clicking the "reset billing cycle" checkbox.

#

But I can't find that in the API.

#

If I do that , and don't change anything to the subscription, it will just advance to the next billing syscle.

fathom crown
#

Gotcha, so you can do an update subscription call at set proration_behavior to none and billing_cycle_anchor to now
https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor
https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior

scarlet flax
#

Ok, great !