This API version is deprecated. Please migrate to the latest Webhook definitions which provides a unified webhook endpoint for all event types.
What’s Changing
The v1 webhook API used separate endpoints for each event type:/recovery_action
- Payment retry instructions
- Single unified
/events
endpoint for all webhook events - Consistent event envelope structure with
id
,type
,created
, anddata
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_invoice
, andcomplete_dunning