So I configured Webhooks and used the recommended approach of calling the RevenueCat API to handle logic.
This works for all events tested so far. Except for the Cancellation event (I canceled Platinum):
![](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/2e0d6b92-d135-44ca-abf0-e863fc9e49f9.png)
As shown in the image. The function is called at 11:38:35 with the cancellation event and after calling the RevenueCat API to check the expiration date, the platinum membership is not yet expired and thus my logic to remove the enitlement is not triggering as I am checking if the expiration date is in the past.
Did I oversee something here?