#Nick-Subscription-status

1 messages · Page 1 of 1 (latest)

split ridge
#

Hi there! Hmmm give me a second...

#

Are you continuing to generate new invoices when the Subscription is past_due? Or do you cancel after retries?

vast juniper
#

We're trying to build out a flow where 90 days after the subscription's first payment attempt fails, we cancel the subscription

#

And yes, the whole time we're still generating invoices (as soon as they update their payment information, they're out of the cancelation process)

#

So was hoping there was a short hand like past_due_since or whatever so that I won't have to parse through the list of invoices to see the oldest unpaid one

split ridge
#

Yeah that doesn't really exist.

#

The best thing to do here will be to use Webhooks

#

You can listen for customer.subscription.updated for when the Sub status moves to past_due

#

Then track time from there