#cbol-sub-end-date

1 messages · Page 1 of 1 (latest)

south wasp
#

Hi there! No, you would want to listen to invoice.paid to know there was a successful renewal.

#

A Subscription could update for numerous reasons that don't have to do with payment at all.

celest patio
#

Ok, but the invoice.paid event doesn't contain the information about the new end date of the subscription, while the subscription object does contain this information.

south wasp
#

Correct, you would likely want to retrieve the Subscription from your Webhook handler.

#

Based on the Invoice

celest patio
#

That's a great idea. I can assume that when the invoice is paid, the subscription end date will be up to date?

south wasp
#

Yep, when the invoice.paid event fires then the invoice is paid then there should be a new end_date on the Sub when you retrieve it and you can examine it for the next period

celest patio
#

Thank you so much!