Skip to main content

Tapfiliate Trigger webhooks for Internal and External automations

This article informs how to automate Tapfiliate Internal and external event chaining with Trigger Webhooks

Nikhil Kandpal avatar
Written by Nikhil Kandpal
Updated yesterday

Overview

Trigger Webhooks are part of Tapfiliate’s Triggers system, allowing you to execute actions when specific affiliate-related events occur. While they’re commonly used to send real-time data to external systems (like Hubspot, or Zapier), they can also be harnessed to chain Tapfiliate events internally via Tapfiliate’s own API, enabling event-driven automations within Tapfiliate itself.


Recommended Steps to set up a trigger webhook

  1. Create Trigger: Dashboard → Triggers → “New trigger”

  2. Select Event: e.g., Conversion Created

  3. Apply Filters: enforce Program, amounts, affiliate, number of conversions

  4. Choose “Webhook (custom)”: input your endpoint, set API key

  5. Construct Body: use merge tags to dynamically populate fields for your API call

  6. Test & Deploy: Manually trigger the event, and confirm the second Tapfiliate event fired.


Primary usage of Webhooks

The trigger webhooks can be primarily used for two types of automation:

  1. External Automation:
    You can directly send webhooks to external endpoints for different use cases like CRM, Slack alerts, accounting tools, etc.—triggered by events like affiliate sign-ups, conversions, commission approvals, and more.

  2. Internal Event Chaining:
    You can use a trigger webhook to call Tapfiliate’s own REST API, which lets one Tapfiliate event initiate another, this includes several use cases like:

  • Pushing an “affiliate created” event through the API to generate a commission, conversion, or customer entry.

  • On “customer created,” firing a webhook that creates an affiliate prospect which can essentially be used to make the customer into a potential affiliate.


Example usage of Triggers for Internal/external flows

The webhook triggers can be used to automate various flows, we are providing some of the basic flows that can be created and automated through the triggers webhooks:

1. Using triggers to sync registered affiliates to external CRM platform (Hubspot):

Use case: Immediately add or update every newly created affiliate as a contact in HubSpot CRM. This is used to directly sync anyone signing up to your affiliate program directly to your CRM without any manual intervention.

Setup:

  1. Trigger Event: Affiliate created — this fires whenever an affiliate is created in the system.

  2. Use the Hubspot's "create a contact" API endpoint as the url of the webhook, and add the headers and Body of the API.

  3. You can dynamically send data in your webhook by using the "tags" available in the webhooks URL and Body.

  4. Complete the setup and hit "test action" to test your webhook.

2. Using triggers to automate affiliate prospect creation when a customer is created (Internal API):


Use case: Immediately add or update every newly created customer as an affiliate prospect in Tapfiliate account. This adds each customer as an affiliate prospect and triggers a mail to refer their peers to become affiliates in Tapfiliate. This feature can help automate your referral process which can be used to promote your program via your customers.

Setup:

  1. Trigger Event: Customer created — this fires whenever a customer is created in the system.

  2. Use Tapfiliate's "create an affiliate prospect" API endpoint as the url of the webhook, and add the headers and Body of the API.

  3. You can dynamically send data in your webhook by using the "tags" available in the webhooks URL and Body.

  4. Complete the setup and hit "test action" to test your webhook.

You can also use the triggers feature for multiple other use cases, some notable use cases can be:

  1. Auto-add affiliates to another program when added to a program via /programs/{program_id}/affiliates/

  2. Reward referrals instantly by creating a commission when a conversion is created

  3. Automatically handle refunds by updating or disapproving commissions after a conversion update

  4. Pause large payouts by holding high-value or new-affiliate commissions via API

  5. Trigger payment information to another platform when a balance is settled in Tapfiliate

For more information about our triggers feature, you can reach out to our support team at support@tapfiliate.com.

Did this answer your question?