What is Affonso?
Affonso is an affiliate marketing platform for SaaS companies. It tracks referral links, conversions, commissions, and payouts for your affiliate program.Connecting Affonso
Step 1: Get Your Webhook URL
- Go to Settings → Integrations in Sequenzy
- Find Affonso under Affiliate Marketing
- Click Connect
- Copy the Webhook URL shown
Step 2: Create an Affonso API Key
- Open Connect → API in Affonso
- Click Create Key
- Grant the key Affiliates: read, Referrals: read, and Commissions: read permissions
- Copy the API key (it is shown only once)
Step 3: Create a Webhook Endpoint in Affonso
- Go to your Affonso dashboard
- Navigate to Settings → Webhooks
- Click Add Endpoint and paste your Sequenzy webhook URL
- Select All events (recommended), or pick the affiliate, referral, transaction, coupon, and payout events you need
- Copy the Signing Secret (it is shown only once)
Step 4: Complete the Connection in Sequenzy
- Return to Sequenzy’s Affonso connection modal
- Paste the API Key and Signing Secret
- Click Connect Affonso
What Gets Synced
During the initial backfill and whenever an affiliate signs up or is updated in Affonso, Sequenzy creates or updates a subscriber with the affiliate’s email, name, and these attributes. Attribute names are provider-agnostic (affiliate*,
not affonso*), so your segments and automations keep working if you ever
switch affiliate platforms:
The initial sync imports Affonso’s absolute performance totals. Relevant
referral, transaction, and payout webhooks update the subscriber immediately,
then queue an absolute refresh so retries, refunds, deletions, and missed events
cannot leave the totals drifting:
Failed and refunded sales are not counted, and the universal
transaction.updated event never double counts totals.
Referral, transaction, coupon, and payout events identify the affiliate by
their Affonso affiliate id. The affiliate must already be synced (via an
affiliate.created, affiliate.confirmed, or affiliate.updated webhook)
before these events can be matched. The initial API backfill creates those
subscriber profiles for affiliates who predate the connection; unmatched
events are acknowledged and skipped.affiliate.* events or enroll subscribers into sequences.
Event Naming
Events live in the provider-agnosticaffiliate.* namespace and target the affiliate’s subscriber profile. Affiliate lifecycle events keep Affonso’s names; referral, transaction, coupon, and payout events are folded into the same namespace:
Using with Automations
Affiliate Welcome Sequence
- Go to Automations → Create New
- Set trigger to Event Received →
affiliate.created - Send a welcome email with their tracking link:
Your referral code is {{affiliateTrackingId}}
Celebrate Conversions
Send affiliates a congratulations email whenever they refer a paying customer:Payout Notifications
Trigger onaffiliate.payout_paid to confirm payouts, using {{event.amount}} and {{event.invoiceNumber}} in the email body.
Reward Top Affiliates
Create a segment whereaffiliateTotalReferredRevenue is greater than 1000 and send them an upgraded commission offer or exclusive coupon.
Event Properties as Variables
Each event exposes its details as{{event.*}} variables in automation emails:
- Referrals:
referralId,trackingId,referralStatus,referredEmail,customerId,referrer - Transactions:
transactionId,saleAmount,saleCurrency,saleStatus,commissionAmount,commissionStatus,incentiveType - Payouts:
payoutId,amount,status,invoiceNumber,paidAt - Coupons:
couponId,code,paymentProvider
Troubleshooting
Events Not Appearing
- Verify the webhook URL in Affonso matches the URL shown in Sequenzy
- Check that the signing secret you pasted matches the endpoint’s secret in Affonso
- Use the Activity button on the Affonso integration row to inspect recent webhook deliveries and errors
Referral or Payout Events Being Skipped
These events are matched through theaffiliateId attribute. Check the Affonso
integration row to confirm the initial affiliate backfill completed. If it
failed, reconnect with an active API key that has Affiliates: read,
Referrals: read, and Commissions: read permissions.
Signature Verification Failing
Affonso’s live service signs the exact raw request body with HMAC-SHA256 and sends it assha256=<64-character hex digest> in X-Affonso-Signature.
Affonso may instead send the Unix time in X-Affonso-Timestamp and a bare
digest of <timestamp>.<raw body> in X-Affonso-Signature; Sequenzy accepts
that format too, along with the older combined t=...,v1=... form. If your
endpoint secret was rotated in Affonso, reconnect the integration in Sequenzy
with the new signing secret.
FAQ
Do affiliates count toward my subscriber limit?
Do affiliates count toward my subscriber limit?
Yes. Affiliates are synced as regular subscribers so you can email them,
segment them, and enroll them in sequences.
Are referred customers added as subscribers?
Are referred customers added as subscribers?
No. Referral events carry the referred customer’s email as an event property
(
{{event.referredEmail}}), but only the affiliate is created or updated as
a subscriber. Referred customers usually enter Sequenzy through your normal
signup or payment integrations.Does the initial backfill send automation emails?
Does the initial backfill send automation emails?
No. The backfill creates or updates subscriber profiles without replaying
historical events or enrolling those subscribers into sequences. New Affonso
webhook events behave normally after the connection is active.
What happens when an affiliate is removed from my program?
What happens when an affiliate is removed from my program?
Their
affiliateStatus attribute is set to DELETED and an
affiliate.deleted event fires. The subscriber stays active so you keep
history; build an automation on that event if you want to tag or unsubscribe
them.Do refunds reduce the revenue totals?
Do refunds reduce the revenue totals?
No.
affiliateTotalReferredRevenue and affiliateTotalCommissionEarned are
lifetime gross totals. Refunds emit affiliate.transaction_rejected events
you can automate on, but totals are not decremented.Is this included in my plan?
Is this included in my plan?
Yes, the Affonso integration is included at no extra cost.