Skip to content

Affiliate ​

Referral codes, invite links, invited users, and affiliate revenue views.


Referral rules ​

Confirmed current backend rules:

  • invite codes are generated server-side
  • the standard affiliate share is 3 % of the referred creator's sales for 12 months, counted from that creator's signup; fee_percentage overrides the share for one invitation (relationships made before this standard may still carry their older percentage)
  • fee_percentage is capped at 10
  • self-referral is not supported through the creator-tagging system and affiliate linkage is validated server-side
  • master_id and invite_code are mutually exclusive during registration
  • affiliate currency mismatches can cause registration failure and cleanup
  • a commission on a sale in another currency than the affiliate's is converted into the affiliate's currency when it is booked - reference rate minus a conversion buffer of up to 5 %, see Wallet

GET /api/affiliate/invitation ​

Return a shareable affiliate invitation link.

  • Auth required: Yes
  • Roles: Authenticated creator

Query parameters ​

ParameterTypeRequiredNotes
fee_percentagenumberNoIf omitted, backend uses the default master fee from DB.

Success response example ​

json
{
  "success": true,
  "errors_message": null,
  "data": "https://fangate.info/applink/uuid-value"
}

Important notes ​

  • response data is a string URL, not an object
  • backend reuses an existing matching invitation app link when possible

GET /api/affiliate/invitation/code ​

Return the invitation code associated with the creator's affiliate invite setup.

  • Auth required: Yes
  • Roles: Authenticated creator

Query parameters ​

ParameterTypeRequired
fee_percentagenumberNo

Success response example ​

json
{
  "success": true,
  "errors_message": null,
  "data": {
    "code": "1234s"
  }
}

Important note ​

Current live backend returns data.code. Older documentation that used invite_code in the response body is stale.


GET /api/affiliate/invited ​

Return creators invited by the authenticated creator.

  • Auth required: Yes
  • Roles: Authenticated creator

Success response example ​

json
{
  "success": true,
  "errors_message": null,
  "data": [
    {
      "id": 91,
      "email": "invited@example.com",
      "fee_percentage": 4
    }
  ]
}

Returned fields ​

FieldType
idinteger
emailstring
fee_percentagenumber

Example flow: using an affiliate invite ​

  1. creator calls GET /api/affiliate/invitation or GET /api/affiliate/invitation/code
  2. new user opens the invite link or enters the invite code
  3. registration sends either:
    • invite_code, or
    • master_id plus optional fee_percentage
  4. backend resolves the affiliate relationship during POST /api/register
  5. affiliate revenue later appears in:
    • GET /api/wallet
    • GET /api/wallet/affiliate

Fangate backend developer documentation