#Mayuresh-subscriptions

1 messages · Page 1 of 1 (latest)

lapis grail
#

@waxen briar yep you can listen to the invoice.updated webhook event and look at the status field of the Invoice object.

waxen briar
#

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.

lapis grail
#

it depends if the invoice is part of a subscription or not

waxen briar
#

In My case it is not a part of subscription.

lapis grail
#

cool, then if it's not, then if it's status:open and "now" is greater than due_date then it's "past due"