Documentation

How to set up a programme, track sales and keep a clean record of what you owe your affiliates.

Affilitee does not pay affiliates. Your business is solely responsible for paying every commission owed to your affiliates, on time, and for any tax reporting. Affilitee only tracks referrals and keeps the record.

1. How Affilitee works

Affilitee is software for running an affiliate programme. You create a programme, affiliates apply and get a tracking link, and your website tells Affilitee about each sale. Affilitee works out the commission, holds it as pending for your hold period, then marks it approved, which means you owe it.

Affilitee never pays affiliates and never holds money. You pay your own affiliates, outside Affilitee, and record the payment in Payout Records.

2. For merchants

  1. Create a programme in Programmes: commission type and rate, cookie window, hold period, minimum payout, and the terms affiliates accept.
  2. Share your programme's join page and approve affiliates in Affiliates.
  3. Add the tracking snippet to your website and send each sale from your server (sections 4 and 5).
  4. Watch commissions in the Commission Ledger. Check anything in the review queue that a fraud rule flagged.
  5. In Payout Records, create a batch from approved commissions, export it (CSV, PayPal Payouts or Wise batch), upload it to your own PayPal or Wise account, pay, then mark it paid.

3. For affiliates

Join a programme from the merchant's join page. Once approved you get a tracking link; add ?sub= to see where clicks came from. Your dashboard shows clicks, referrals and commissions, and you can download statements.

Commissions are paid directly by the merchant, not by Affilitee. Questions about a payment go to the merchant, whose email is on the programme page. Always disclose your links; see Affiliate Disclosure guidance.

4. The tracking snippet

Add this once to every page of your website. It is about 2.6 KB, makes no third-party calls, stores the click id in a first-party cookie called aff_ref and adds it as a hidden field to your forms, so your sign-up and checkout handlers receive it.

<script async src="https://affilitee.com/affilitee.js" data-days="30"></script>

5. Conversion API

Create an API key in API keys (shown once). Send each sale from your server with an Idempotency-Key, so a retry never creates a second commission.

curl -X POST https://api.affilitee.com/api/v1/track/conversion \
  -H "X-API-Key: ah_live_..." \
  -H "Idempotency-Key: order-10023" \
  -H "Content-Type: application/json" \
  -d '{"order_id":"10023","amount":149.00,"currency":"USD","click_id":"<aff_ref cookie>"}'

No API key on that server? Sign each request instead with the secret from Webhooks: send Affilitee-Account and Affilitee-Signature: t=<unix seconds>,v1=<HMAC-SHA256 of "t.body">. Requests older than 5 minutes are refused. Send "event": "lead" for sign-ups and free trials.

Refunds and chargebacks go to /api/v1/track/refund with the order_id and, for a partial refund, the amount. A refund reduces or reverses the commission; if it was already paid, a clawback reduces what you owe that affiliate next time.

Billing platforms whose webhooks carry no custom data (Recurly, Braintree): when the customer signs up, link their customer or subscription id to the click once. Later payments from that platform are credited to the same affiliate.

curl -X POST https://api.affilitee.com/api/v1/track/billing-link \
  -H "X-API-Key: $AFFILITEE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider":"recurly","customer_id":"<account_code>","click_id":"<aff_ref cookie>"}'

6. Webhooks

For reading data and acting on it from your own tools (or from Claude through the Affilitee MCP server), see the API reference.

In Webhooks, add HTTPS endpoints and choose events: affiliate applied or approved, a new lead, a new sale, a commission approved or reversed, a payout batch created and a payout marked paid.

Each delivery is signed in the Affilitee-Signature header with HMAC-SHA256. Failed deliveries are retried for 24 hours, every attempt is logged, and you can replay any delivery. Webhooks never carry payout details.

7. Commission states

Pending (hold period or review), then approved (owed by you), then paid (you marked it paid). A commission can also be rejected with a reason, or reversed after a refund or chargeback. Every change is in the audit log.

Need help? Visit the Help Centre or email support@affilitee.com.