What’s Changing
The v1 webhook API used separate endpoints for each event type:/recovery_action- Payment retry instructions
- Single unified
/eventsendpoint for all webhook events - Consistent event envelope structure with
id,type,created, anddatafields - 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
/eventspath - Parse the
typefield in the request body to determine the event type - Handle event-specific data from the
datafield based on the event type - Test with all three event types:
recovery_action,pause_collection, andcomplete_dunning