PATCH /referrals/wallet
Change the payout wallet on an existing code.
Code itself stays the same. Takes effect on the next payout.
Use case
User rotated their wallet and wants future referral earnings sent to a new address.
Body
| Field | Type | Required | Description |
|---|---|---|---|
sReferralAddress | string | yes | New payout pubkey. |
Response 200
{ "sReferralCode": "ABCDEF", "sReferralAddress": "<new>" }
Errors
| Status | Meaning |
|---|---|
404 | No code has been created yet — call /referrals/create first. |
Example
curl -X PATCH "$BASE_URL/referrals/wallet" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID" \
-H "Content-Type: application/json" \
-d '{ "sReferralAddress": "<new payout>" }'