#exzotic.

1 messages · Page 1 of 1 (latest)

north pebbleBOT
quick igloo
#

It depends on what your definition of "renews successfully" is - if you specifically need to know that a subscription has been paid for you'll likely want to listen for invoice.paid events

wind wyvern
#

Yeah renewed as in the months payment was paid

quick igloo
#

Yeah then you'll want to listen to invoice.paid and check which subscription the invoice is tied to

wind wyvern
#

ahh cool, thanks :)

quick igloo
#

👍

wind wyvern
#

Should I use the invoice.paid as well instead of customer.subscription.updated to provision the service when it is first purchased?

#

or does it not matter

quick igloo
#

If you specifically care about the subscription being paid for then yeah, I'd recommend listening for invoice.paid over customer.subscription.updated

wind wyvern
#

Ok cool, thanks

#

Yeah i did have a check for the subscription is "active" which in theory should of been when its paid?

quick igloo
#

Yeah that would work as well for when the subscription is first created/provisioned, but you have to be careful about edge cases and it really depends on your integration

#

Like as an example - if you're doing collection_method: send_invoice those Subscriptions will start off as active I believe until the due date for the first invoice is passed