Triggers let you perform actions when certain events happen in the platform. You could use triggers to automate the approval of affiliates, commissions, or generation of payouts, for example. Please note that webhooks are an advanced feature - we highly advise that you fetch a developer to help implement this.
The triggers feature can be found by following the ‘Settings’ gear icon in the dashboard.
We have several events implemented which you can set triggers to, some of them are:
Affiliate created: This can be the result of an individual (who was previously not an affiliate) signing up as an affiliate, or being manually added as an affiliate. You can distinguish who initiated this event by using the ‘initiator’ filter.
Affiliate added to program: Each time an affiliate applies, or is manually added to a program. You can distinguish who initiated this event by using the ‘initiator’ filter.
Affiliate approved for program: This event is triggered when an affiliate is automatically approved, or manually added to a program.
Conversion created: This event is triggered whenever a conversion is created.
Commission created: This event is triggered whenever a commission is created. This can be the result of a conversion, an automatic recurring commission, an MLM commission, or a commission added through the API.
Commission updated: This event is triggered whenever a commission is (dis)approved or edited.
Payout created: This event is triggered each time a payout is created.
Payout updated: This event is triggered each time a payout is updated (e.g. marked as ‘paid’)
You can assign filters to triggered events, too. The filters are different for each specific event. For example, the event ‘affiliate created’ has the filters options shown in the image below:
Setting up a new trigger webhook
Access the trigger feature from the ‘Settings’ gear icon in the dashboard.
Select the ‘event’ that will trigger the email.
Add filters (optional).
Choose from the right-hand ‘Add action’ column, the ‘Webhook’ action.
Open the Webhook settings.
Depending on the type of action you want to trigger, use the correspondent endpoint from our REST API and place it in the URL field.
Use merge tags as indicated in the API documentation for the endpoint.
Write ‘Api-Key’ in the ‘header’ field.
Copy the API key from the account settings: Click on the profile icon on the top-right corner > Click on ‘Account settings’ > Tab ‘Api access’ > Click on ‘Generate’> Copy the key.
Paste the key in the header ‘value’ field.