#meek

1 messages · Page 1 of 1 (latest)

coarse pikeBOT
half ridge
#

invoice.paid is typically the event that we recommend listening to for subscription payments though payment_intent.succeeded would definitely work too

amber storm
#

Thank you. And once that event is called, how can i verify that they upgraded a plan rather than downgraded?

half ridge
#

Meant to ask about that. How is your integration upgrading or downgrading their subscription? Are you making the API call yourself or is this from the Customer Portal?

amber storm
#

Making the api call myself

#

👀

half ridge
#

In that case your integration should know that it has upgraded that subscription already right?

If you aren't storing that state then, the invoice object in the invoice.paid event should have the price ID of the price your user is subscribed to in its invoice items