Rafobase Logo

Get a member

Retrieve details of a specific member including their wallet balance and stats.

GET
/members/{id}

Retrieve details of a specific member including their wallet balance and stats.

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

In: header

Path Parameters

id*string

Member ID

Response Body

application/json

application/json

application/json

curl -X GET "https://api-base.rafo.work/api/v1/members/mem_xxxxx"
{
  "data": {
    "id": "mem_xxxxx",
    "email": "john@example.com",
    "name": "John Doe",
    "external_id": "cust_123",
    "coupon_code": "NUT-JOHN-A7X",
    "campaign_id": "camp_xxxxx",
    "status": "active",
    "wallet": {
      "pending": 0,
      "available": 0,
      "currency": "BRL"
    },
    "stats": {
      "total_referrals": 0,
      "total_earnings": 0
    },
    "metadata": {},
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or missing API key"
  }
}
{
  "error": {
    "code": "not_found",
    "message": "Resource not found"
  }
}