Validate Referral Code
A public endpoint to check whether a referral code is valid prior to registration or sign-in. Searches across both users and drivers databases, and returns the referrer type (USER or DRIVER) with a privacy-masked referrer name.
Endpoint Overview
-
Method:
POST -
Route:
/api/v1/referral/validate -
Authentication:
None (Public) -
Content-Type:
application/json
Request Headers
Request Body Schema
Example Request Body
Response Body Schema (200 OK)
Response Examples
1. 200 OK — Valid Driver Referral Code
2. 200 OK — Valid User Referral Code
3. 200 OK — Invalid / Non-Existent Referral Code
4. 400 Bad Request — Validation Error (Missing referral_code)
5. 500 Internal Server Error
Status Codes Reference
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.