Skip to main content
What’s Changing
The v1 webhook API used separate endpoints for each event type:
/recovery_action - Payment retry instructions
v2 improvements:
- Single unified
/events endpoint for all webhook events
- Consistent event envelope structure with
id, type, created, and data fields
- Additional event types including
complete_dunning
- Easier to extend and maintain
Migration Path
To migrate from v1 to v2:
- Update your webhook endpoint to accept POST requests at a single
/events path
- Parse the
type field in the request body to determine the event type
- Handle event-specific data from the
data field based on the event type
- Test with all three event types:
recovery_action, pause_collection, and complete_dunning