Associate a referral code with the authenticated account
Records attribution for a referral code against the authenticated wallet. The request body contains only the referral code; wallet and account identity are resolved from the Bearer session by the platform service.
The endpoint is idempotent per wallet: if the wallet already has a
referral attribution, it returns associated: true with already: true
and does not write a second redemption row.
Authorizations
Joyride Core session JWT obtained from the SIWS flow
(public/get_nonce + public/auth on the Core trading WebSocket).
Include as: Authorization: Bearer <jwt>
Body
Referral code to associate with the authenticated wallet.
"ALICE"
Response
Referral association recorded or already present