referral
Generate referral link
Generate a referral link for a member. The backend automatically handles: - Device OS detection (Android/iOS/Desktop) - App installation detection via Universal Links (iOS) and App Links (Android) - Redirect to App Store/Play Store if app is not installed - Opens app directly with member ID parameter if installed
**Usage:**
- Mobile app calls this endpoint with memberID
- Returns referral link that can be shared
- When clicked, backend detects device type and handles redirect
- Seamlessly redirects to store or opens app via deep linking
post/referral/generate
Request body
Example request
{
"memberID": "TWE-123456"
}Response
Referral link generated successfully
Example response
{
"success": true,
"message": "Referral link generated successfully",
"data": {
"memberID": "TWE-123456",
"referralLink": "https://api.tonewow.com/ref/TWE-123456"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.