v1
latestOpenAPI 3.0.12026-08-062532117.6 KBCreate a referral
Records a new referral — someone an affiliate sent your way who has now signed up.
You must identify the affiliate with exactly one of affiliateId, affiliateEmail or promoCode. affiliateId is flexible: it accepts an affiliate UUID, one of their affiliate link slugs, or a numeric click ID.
When you pass promoCode, the code is validated first — it must exist, be active, be unexpired, and be under both its own and its coupon's redemption limits. On success the redemption counters on the promotional code and its coupon are both incremented.
name, email and referredUserExternalId are always required. Referrals created here are always recorded as active.
Request body
Response
The created referral, looked up by email after creation. Returns null if the referral could not be resolved.