#leanfucio

1 messages · Page 1 of 1 (latest)

brittle atlasBOT
indigo delta
#

Yes you can set proration_behavior: none to disable proration/

warped meadow
#

Is there a webhook or callback that we can catch so we know that a subscription is about to expire? my plan is to catch all those subscriptions with $100 Product and use this proration_behavior: none just before they expire. Instead of creating a script that gets all those subscriptions and hitting the update subscription API.

indigo delta
#

You mean you want to get notified when a subscription is about to renew?

warped meadow
#

Im sorry, yes. when the subscription is about to renew

indigo delta
#

You can listen to invoice.upcoming events

warped meadow
#

Thanks. But I also have a question. I just realized, maybe I don't need that event. Maybe I can just update all subscriptions with that product with proration_behavior: none in just 1 go.

Is it possible? if so, will it take a long time based on the number of users?

indigo delta
#

No sure what you mean by just one go. You need to call the update API on all the subscriptions that you want to update to.

warped meadow
#

Does that mean for each subscription, I'm gonna hit the subscribe API?

indigo delta
#

Yes

warped meadow
#

Alright. Thank you! I really appreciate your help! You can close this thread