polar
polar copied to clipboard
Webhooks: subscription.updated webhook is fired multiple times on downgrade/upgrade
trafficstars
From the ticket
Description
A subscription.updated webhook is being fired multiple times even though it has the same payload (happens during a downgrade/upgrade flow). This leads to duplicate notifications and potentially unintended side effects for webhook consumers.
Current Behavior
When a subscription is upgraded/downgraded (single update action), the subscription.updated webhook triggers multiple times. Consumers of the webhook receive duplicate events for a single change.
Expected Behavior
The subscription.updated webhook should only fire once per product downgrade/upgrade event. Consumers should receive a single webhook notification for each subscription change.
Video
https://github.com/user-attachments/assets/e632ee64-146d-4e49-96b7-3fe136cdaf0c