How to set up webhooks
What are webhooks?
Webhooks allow you to subscribe to real-time notifications about various events that occur in Partnero. For example, when a new partner is added to your account, HTTP POST callback is sent to your provided URL with a message (called a payload) containing the new partner data. It allows you to get the most recent updates without constantly polling the API. You can see your existing webhooks, create new, update and delete them.
In order to create a webhook, you'll need to know the event you want to listen for, as well as the URL you want us to send new events to. Below is a list of events you can listen to and send a notification for:
|Fired when the new partner signups or is created manually.
|Fired when existing partner is updated.
|Fired when a partner is deleted.
|Fired when the new customer is created.
|Fired when existing customer is updated.
|Fired when existing customer is deleted.
|Fired when new transaction happens.
|Fired when transaction is deleted.
Create a webhook on Partnero
To create a webhook:
- Log in to Partnero.
- Choose the program you'd like to work with.
- Go to Integration under Program, then scroll to find the Webhooks section:
- Click Create webhook on the right.
- Enter the webhook name and endpoint URL. Then, select the events you'd like to send:
- Click Create.
You can find more information about webhooks as well as code examples in our Developers documentation.