Balance webhooks are in pilot phase. Some of the processes and documentation may change as the feature evolves.
You can view, update, and delete your balance webhook settings by using the Configuration API.
View all balance webhook settings
To get the list of settings and conditions for triggering the webhook, make a GET /balancePlatforms/{id}/webhooks/{id}/settings request, specifying the ID of your balance platform and the ID of your balance webhook as path parameters. Get all settingsView the conditions in a balance webhook setting
To get details of a balance webhook setting with the conditions for triggering the webhook, make a GET /balancePlatforms/{id}/webhooks/{id}/settings/{id} request, specifying the following IDs as path parameters:- balance platform ID
- balance webhook ID
- balance webhook setting ID
Update a balance webhook setting
To update the conditions for triggering balance webhooks, make a PATCH /balancePlatforms/{id}/webhooks/{id}/settings/{id} request, specifying the following IDs as path parameters:- balance platform ID
- balance webhook ID
- balance webhook setting ID
Examples
The following examples provide an overview of the most common reasons to update a balance webhook setting. **Add a new set of conditions
To add a new set of conditions to a balance webhook setting, send both the existing and the new condition set in theconditions array.
Add new condition set
Remove a set of conditions
To remove a set of conditions from a balance webhook setting, exclude them fromconditions array when you send the update request.
You must send the conditions you want to keep in the update request.
Remove condition set
Deactivate a setting
To temporarily stop receiving webhooks for the specified conditions, set thestatus of the webhook setting to inactive.
Deactivate a setting
Remove all conditions
If you remove the only existing condition set from the webhook setting, you will receive updates for all balance changes in the specified balance account(s).Delete a balance webhook setting
If you want to permanently stop receiving webhooks for the specified conditions, send a DELETE /balancePlatforms/{id}/webhooks/{id}/settings/{id} request, specifying the following IDs as path parameters:- balance platform ID
- balance webhook ID
- balance webhook setting ID
