Step 1 — Register a referral code
To create a referral code for your account, callPOST /v1/referral/register. This requires authentication.
Step 2 — Apply a referral code
When someone else is making a deposit and has a referral code, they can apply it at checkout time. Pass the code in thereferral_code field when creating a Stripe checkout session:
POST /v1/referral/apply:
Referral codes are validated before the checkout session is created. If the code is invalid, the request will return a
400 error and no checkout session will be started.Step 3 — Check referral stats
To see how many people have used your code and any associated activity, callGET /v1/referral/stats:
Endpoint summary
All three endpoints require a valid API key or Privy session.

