PearPear

Create a referral code

Issues or claims one case-sensitive referral code after exact legacy ownership verification

POST
/referrals/create
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Payload to issue a referral code to the authenticated user

Response Body

curl -X POST "https://example.com/referrals/create" \  -H "Content-Type: application/json" \  -d '{    "referralCode": "PEAR2026"  }'
Empty