Snapvisor Docs

Get the user's referral summary

Get the user's Refer & Earn referral link, its clicks, signups and sales, and their pending, cleared and paid earnings. Use it when the user asks for their referral link or how much they have earned.

GET
/me/referral

Get the user's Refer & Earn referral link, its clicks, signups and sales, and their pending, cleared and paid earnings. Use it when the user asks for their referral link or how much they have earned.

Authorization

AuthorizationBearer <token>

Authenticate as a user with a personal access token.

Send it as a bearer token in the Authorization header:

Authorization: Bearer <personal-access-token>

Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.

In: header

Query Parameters

includeReferrals?string

true to also list the people the user referred (slower).

Value in

  • "true"
  • "false"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/me/referral"
{  "enabled": true,  "reason": "guest",  "link": {    "shortLink": "string",    "clicks": 0,    "leads": 0,    "sales": 0,    "property1": null,    "property2": null  },  "earnings": {    "pendingCents": 0,    "clearedCents": 0,    "paidCents": 0,    "readyToWithdraw": true,    "currency": "string",    "property1": null,    "property2": null  },  "portalUrl": "string",  "referrals": [    {      "property1": null,      "property2": null    }  ],  "property1": null,  "property2": null}