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
- Use descriptive codes - Make codes easy to remember and associate with campaigns
- Track usage - Monitor
usedCount to measure campaign effectiveness
- Use categories - Group codes by campaign, partner tier, or time period
- Validate before display - Check code validity before showing to users
- Handle pagination - Use
cursor for large code lists