Affiliate Webhooks send you a real-time alert when a customer you referred is at risk of leaving: a failing payment, an unfinished setup, or an attempt to cancel. Connect these alerts to a HighLevel workflow and you can step in early, help the customer stay, and protect your recurring commission.
TABLE OF CONTENTS
What Are Affiliate Webhooks?
Before You Begin
How To Set Up Affiliate Webhook Alerts
Webhook Payload Reference
Put Your Webhook Data to Work
Frequently Asked Questions
Related Articles
What Are Affiliate Webhooks?
A webhook is an automatic message sent to a URL you choose the moment something happens. Affiliate Webhooks send these messages for three events in a referred customer's journey:
Note: An alert does not mean the subscription has ended. In every case, there is still time to act.
Before You Begin
Make sure you have the following:
Affiliate Webhooks enabled: This feature is in beta. Find it in Labs and turn it on.
Agency Admin access: Only Agency Admins can create and manage webhooks.
A sub-account for your workflows: Ideally the sub-account where you already manage your affiliate leads and customers.
Custom Fields ready: You'll create these in Step 1 to store the webhook data on each contact.
Important: Affiliate Webhooks are set up in a different place from your standard affiliate or FirstPromoter settings. You'll find them under Agency View > Affiliate Portal > Webhook.
How To Set Up Affiliate Webhook Alerts
Setup takes about 10 minutes per event. You'll create the webhook in Agency View, connect it to a workflow in your sub-account, and save the alert data on the matching contact.
At a glance: Create custom fields → Start the webhook → Add an Inbound Webhook trigger → Send a test → Map the payload → Find the contact → Save the data → Publish
Tip: Keep Agency View and your sub-account open in two browser tabs. You'll switch between them during setup.
Step 1: Create Custom Fields
In your sub-account, go to Settings > Custom Fields.
Create the fields you want to store. We recommend:
Affiliate Notification Type (Payment Failure, Onboarding Pending or Cancellation Attempt)
Cancellation Reason
Plan Type and Plan Amount (optional)
[Screenshot: Settings > Custom Fields]
Step 2: Start a Webhook in Agency View
In Agency View, click Affiliate Portal in the left menu.
Click the Webhook tab in the top bar, then Create Webhook.
Enter a name and select an Event type.
Leave this page open. You'll add the Webhook URL in Step 4.
[Screenshot: Affiliate Portal > Webhook tab > Create Webhook]
Step 3: Add an Inbound Webhook Trigger
In your sub-account, go to Automation > Workflows and create a workflow from scratch.
Click Add New Trigger and select Inbound Webhook.
Click Copy to copy the webhook URL HighLevel generates.
[Screenshot: Inbound Webhook trigger with URL]
Step 4: Paste the URL and Send a Test Event
In Agency View, paste the URL into the Webhook URL field.
Click Send Test Event and wait for the confirmation.
Tick Make this webhook live and click Create Webhook.
[Screenshot: Webhook URL field and Send Test Event]
Step 5: Map the Sample Payload
In your workflow, open the Inbound Webhook trigger.
Under Mapping References, click Check for new requests and select the test payload.
Map Email and Affiliate Notification Type, then click Save Trigger.
[Screenshot: Mapping References with sample payload]
Step 6: Find the Matching Contact
The customer usually already exists in your CRM, so find them instead of creating a new contact.
Add a Find Contact action.
Search by the email from the webhook payload.
[Screenshot: Find Contact action]
Step 7: Save the Data to the Contact
Add an Update Contact Field action.
Map the payload values into the Custom Fields from Step 1.
[Screenshot: Update Contact Field mapping]
Step 8: Save and Publish
Click Save, then toggle the workflow to Publish.
Important: Alerts are only processed once the workflow is published. Repeat Steps 2–8 for each event you want to receive.
Webhook Payload Reference
Every alert arrives with the same set of fields. Use them when mapping your workflow in Steps 5 and 7.
Note: A field can be empty or missing if that information isn't available for the customer, for example a customer with no phone number on file. Build your workflow so it still runs when a field is blank.
Sample – Cancellation Attempt
{
"promoterId": "promoter_456",
"productType": "agency_subscription",
"eventType": "try_to_cancel",
"agencyOwnerName": "Jane Doe",
"planType": "agency_unlimited",
"planAmount": 297,
"leadEmail": "customer@example.com",
"leadContact": "+1234567890",
"cancellationReason": "too_expensive",
"webhookId": "wh_abc123"
}
Payment Failure and Onboarding Pending alerts carry the same fields, without cancellationReason.
Put Your Webhook Data to Work
Once the alert data is on the right contact, use it to trigger follow-up automatically.
Branch on the Cancellation Reason
Use an If/Else action on the Cancellation Reason field to send a different message for each reason, for example price, missing features, low usage or technical issues. Match the system value exactly as it arrives in the payload (for example too_expensive).
Handle Duplicate Alerts
The same alert can occasionally be sent twice. Save the webhookId to the contact and skip any alert whose ID you've already processed.
Frequently Asked Questions
Who can set up Affiliate Webhooks? Only Agency Admins can create and manage webhooks.
How do I get access to Affiliate Webhooks? The feature is in beta. Find Affiliate Webhooks in Labs and turn it on.
Does an alert mean the subscription is already canceled? No. Payment Failure is sent after the 4th failed retry, before the final attempt. Cancellation Attempt means the customer started to cancel but didn't complete it. In both cases, there is still time to act.
Can I receive more than one Onboarding Pending alert for the same customer? Yes. HighLevel checks 2 days after signup and again 2 days after the first successful payment. If onboarding is still incomplete at each check, you receive an alert.
Can I get alerts for only one or two events? Yes. Each webhook is set up for one event type, so create webhooks only for the events you want.
What if I receive the same alert twice? Check the webhookId. If it matches an alert you've already received, it is a repeat and you can ignore it.
Why is a field empty in my alert? A field is left empty or missing when that information isn't available for the customer, for example no phone number on file.
What currency is planAmount in? All plan amounts are sent in US dollars (USD).
My test event didn't arrive in the workflow. What should I check? Make sure you copied the full URL from the Inbound Webhook trigger, pasted it into the Webhook URL field, and clicked Check for new requests after sending the test.
I triggered an event but nothing happened in my workflow. Why? Check that the webhook is live, its Event type matches the event, and the workflow is published.
Will more events be added? Yes. This is version 1 with three events. More are planned based on affiliate feedback.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article