Skip to main content
BETA - SUBJECT TO CHANGE - This API is in beta and may change without notice.

Endpoints

Create Referral Code

Create a new referral code for tracking.

Request

Request Fields

Response

An empty response indicates successful creation.

List Referral Codes

Retrieve referral codes with optional filtering.

Request

Query Parameters

Response

Response Fields

Referral Code Object

Validate Referral Code

Check if a referral code is valid and get associated information.

Request

Response

Response Fields

Invalid Code Response

Using Referral Codes in KYC

Pass the referral code when starting KYC verification:
When the user’s KYC is approved, the referral will be tracked and any associated bonuses will be processed.

Best Practices

  1. Use descriptive codes - Make codes easy to remember and associate with campaigns
  2. Track usage - Monitor usedCount to measure campaign effectiveness
  3. Use categories - Group codes by campaign, partner tier, or time period
  4. Validate before display - Check code validity before showing to users
  5. Handle pagination - Use cursor for large code lists