#Mayuresh-subscriptions
1 messages · Page 1 of 1 (latest)
@waxen briar yep you can listen to the invoice.updated webhook event and look at the status field of the Invoice object.
Thanks for the invoice.updated event.
But I guess invoice have only below statuses
DRAFT, OPEN, PAID, VOID, UNCOLLECTIBLE.
I don't think status field is returning the 'pats_due' value.
it depends if the invoice is part of a subscription or not
In My case it is not a part of subscription.
cool, then if it's not, then if it's status:open and "now" is greater than due_date then it's "past due"