#obo - cancel subscriptions

1 messages ยท Page 1 of 1 (latest)

winged night
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐Ÿ™‚

#

Nothing automatic, no, you'd control this in your backend based on the includes products/prices and set the cancellation on individual subscriptions as needed.

modern wigeon
#

could you elaborate on that last part?

winged night
#

I mean based on your business logic, you would decide which subscriptions should be cancelled or not, then call the API to perform this cancellation when needed

modern wigeon
#

I see, so on that note, are there any patterns you can suggest that will allow us to easily query these subscriptions that have failed the 30 day window?

#

Because currently we can set subscriptions to auto-cancel after X-retries or X-time

#

but it seems this wouldn't be the case

winged night
#

Do you use ~monthly invoicing?

modern wigeon
#

Yes, monthly subscriptions

winged night
#

actually, doesn't matter, one sec

#

This will then cancel if no other changes are made

#

You can then

  1. either not do this or update your preferred subscriptions to not cancel
  2. listen for invoice.paid webhook events and update and subscriptions where the invoice was paid to undo the pending cancellation
modern wigeon
#

is there a webhook that we can set up to call before a cancellation?

#

so if a subscription is about to cancelled, this webhook gets called, and then we basically take an action based on that

#

so if it's a normal subscription, we cancel, if it's enterprise, we don't

winged night
#

Nope, there is not. To do things that way you'd need to track the subscriptions yourself.

modern wigeon
#

Okay so if I set something up like this:

#

would there be an easy way to query those subscriptions

winged night
modern wigeon
#

okay, good to know