Webhooks
Webhooks are a system of automated notifications indicating that an event has occurred in your gateway. Rather than requiring you to pull information via our API, webhooks push information to your designated destination when important events occur.
Webhooks allow you to develop a workflow for how your server responds to the information provided in a notification (e.g. setting up your server to send an email to any customers whose subscriptions have expired).
Types of webhooks
You can create webhooks for:
- Subscription status changes
- Disbursements to your account
- Disputes on transactions
- Braintree Marketplace sub-merchant account status changes
- Grant API payment method status changes
Creating webhooks
In order to configure webhooks, your user’s role must include the Manage Webhooks role permission.
To create a webhook:
- Log into the Control Panel
- Click on the gear icon in the top right corner
- Click API from the drop-down menu
- Click on the Webhooks tab
- Click the Create New Webhook button
- Provide your destination URL and make your notification selections
- Click the Create Webhook button
After creating the webhook in the Control Panel, you'll need to set up your server to parse the webhook. See our developer docs for details.
Testing webhooks
Once you’ve set up a webhook, you can send a test webhook to make sure your endpoint is configured correctly. To test a webhook:
- Log into the Control Panel
- Click on the gear icon in the top right corner
- Click API from the drop-down menu
- Click on the Webhooks tab
- Click the Check URL link located to the right of the webhook you'd like to test
For more details on the notification received for test webhooks, see our developer docs.