GET/api/v2/users/check-referral

Check if a referral code is valid for a company

Authentication

Send your API key in the x-api-key header on every request.

Parameters

Request parameters
FieldTypeRequiredDescription
referralCode (query)stringNoThe referral code to validate
visitorId (query)stringNoOptional per-install visitor id (at most 64 chars). When the code is a live campaign link, the visit is recorded as a click, once per visitor per UTC day (crawlers and previews are skipped). Without it nothing is recorded.

Responses

200 — OK

Response 200 fields
FieldTypeRequiredDescription
ValidbooleanNo
TierIdunknownNo
KindstringNo
ProviderstringNo
InviterDisplayNamestringNo
WelcomeAmountunknownNoWelcome reward the referred user receives at qualification (0 when the program pays none).
WelcomeCurrencystringNo
TermsVersionunknownNoCurrent referral program terms version, echoed back as ReferralTermsVersion at registration.
DestinationstringNoCampaign links only: where the client should route the visitor after sign-up (signup, home, cards, topup, rewards).

400 — Bad Request

Response 400 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

404 — Not Found

Response 404 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

500 — Internal Server Error

Response 500 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

Example request

curl -X GET "https://{base_url}/api/v2/users/check-referral" \
  -H "x-api-key: YOUR_API_KEY"

This page is generated from the live OpenAPI specification and always matches the current API.