Skip to main content
POST
/
referrals
/
validate-code
cURL
curl --request POST \
  --url https://api-dev.withflock.com/referrals/validate-code \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "referralCode": "<string>"
}'
{
  "isValid": true,
  "referredBy": {
    "id": "<string>",
    "externalUserId": "<string>",
    "email": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Body

application/json
referralCode
string
required

Response

200 - application/json
isValid
boolean
required
referredBy
object
required