Update DB value after subscription change on stripe

Hello all!

I have a credits system on my app, with 3 plans : free, premium and platinium. I set my backend workflow to edit my user DB with the following :


Now the issue I have is : how to set up the workflow part which will update my db with the plan updated? I already added the customer.subscription.update to my webhook, I just don’t know what step can help me identifiable stripe’s plan and update the db to Free, Premium or platinium.

Does anyone have a solution please? :star_struck:

I finally find a solution, not the best but using Plan.nickname and changing my DB with those values