How attribution works
When a visitor arrives through an affiliate link, our tracking snippet stores a referral and exposes its id aswindow.AffID.referral. Capture that id at signup or checkout and
send it back when the customer pays. You can also attribute by the customer’s email (if
they were tracked as a lead) or by an affiliate’s coupon code.
Report a sale
referral_id, email, or coupon to attribute the sale.
Idempotency and renewals
external_id makes the call safe to retry. For subscriptions, send one conversion per
charge, each with its own external_id (e.g. the invoice id). Recurring commissions are
created automatically as long as the campaign’s commission period allows it.
Refunds
Reversing a sale (and clawing back its commission) uses the sameexternal_id. Refund
support via the API is rolling out; until then, void the commission with
DELETE /v1/commissions/:id.
Response
422 with
{ "error": "No matching referral found for this conversion." }.