Skip to main content
POST
Associate a referral code with the authenticated account

Authorizations

Authorization
string
header
required

JWT obtained from POST /v1/auth/verify after SIWS authentication. Include as: Authorization: Bearer <jwt>

Body

application/json
code
string
required

Referral code to associate with the authenticated wallet.

Example:

"ALICE"

Response

Referral association recorded or already present

associated
boolean
required

True when the wallet is associated with a referral code.

Example:

true

code
string
required

Normalized referral code recorded for this wallet.

Example:

"ALICE"

already
boolean
required

True when the wallet already had an attribution before this request.

Example:

false