Get referral's info
GET/referral
Get referral's info
Request
Responses
- 200
- 400
- 401
- 403
- 500
- default
Get referral's info.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
referrer
object
username string
cognitoUserId string
referralCode string
avatar url
referees
object[]
cognitoUserId string
username string
avatar url
{
"referrer": {
"username": "Marwan",
"cognitoUserId": "6c3f1279-8b65-4bc4-bac3-20502fdfd4a8e",
"referralCode": "dnjd4n1",
"avatar": "https:/file.playmakers.co/avatar.png"
},
"referees": [
{
"cognitoUserId": "9434knf-8b65-4bc4-bac3-20502fdfd4a8e",
"username": "Latifa",
"avatar": "https:/file.playmakers.co/avatar.png"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Forbidden access"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...