Skip to main content

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​

FieldTypeRequiredDescription
sReferralAddressstringyesNew payout pubkey.

Response 200​

{ "sReferralCode": "ABCDEF", "sReferralAddress": "<new>" }

Errors​

StatusMeaning
404No 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>" }'