Skip to main content
GET
/
broker
/
referral-stats
Get Referral Stats
curl --request GET \
  --url https://api.rolla.xyz/api/v1/external/broker/referral-stats \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "message": "Referral stats retrieved successfully",
  "data": {
    "totalCommissions": {
      "USD": 1500.5,
      "NGN": 250000
    },
    "totalReferrals": 15
  }
}
Retrieve aggregate referral statistics including total commissions by currency and total referral count.

Example Request

curl -X GET "https://api.rolla.xyz/api/v1/external/broker/referral-stats" \
  -H "X-API-Key: your_api_key_here"

Example Response

{
  "success": true,
  "message": "Referral stats retrieved successfully",
  "data": {
    "totalCommissions": {
      "USD": 1500.50,
      "NGN": 250000
    },
    "totalReferrals": 15
  }
}
The totalCommissions object contains your lifetime earnings broken down by currency. The totalReferrals is the total number of businesses you have referred.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Response

Referral stats retrieved successfully

success
boolean
Example:

true

message
string
Example:

"Referral stats retrieved successfully"

data
object