v1

latestOpenAPI 3.0.3Commercial — see Terms2026-07-13274891.4 KB
Affiliate program

Attach a referral to a user (public)

Bind an existing user to a referrer after sign-up. Sets referred_by; the referrer earns 15% on the user's future subscriptions.

post/api/v1/visa/affiliate/apply-referral

Request body

referral_codestring required
emailstring email required

Example request

{
  "referral_code": "aff_4f2a91c8",
  "email": "ada@example.com"
}

Response

Referral applied.

okboolean
messagestring
referred_bystring

Example response

{
  "ok": true,
  "referred_by": "aff_4f2a91c8"
}