POST /referee-redeem
Referee Endpoints
POST /referee-redeem
Redeem a metacode and get a platform-specific promo code
POST
POST /referee-redeem
Redeem Metacode
Validates a metacode and issues a platform-specific promo code to the referee. This is the core of the metacode flow.Request
Unique identifier for the referee in your app (must match RevenueCat app_user_id)
The metacode entered by the user (case-insensitive)
Platform for the promo code:
ios or androidExample Request
Response
The platform-specific promo code to redeem in App Store or Google Play
Platform the code is for:
ios or androidHuman-readable instructions for redeeming the code
Direct URL to the store redemption page
Information about the referrer
Example Response
Usage in Mobile App
Error Responses
What Happens Behind the Scenes
Best Practices
Always use the same
referee_uid that you use with RevenueCat (app_user_id)Convert metacode to lowercase before sending to handle user input variations
Show clear instructions and a “Copy Code” button in your UI
Handle all error codes gracefully with user-friendly messages
Testing
Use the test metacodetest123 in development to verify your integration without consuming real codes.
