Rafobase Logo

Approve a referral

Manually approve a pending referral. This moves the credit to available balance.

POST
/referrals/{id}/approve

Manually approve a pending referral. This moves the credit to available balance.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

id*string

Referral ID

Request Body

application/json

notes?string

Admin notes for the approval

Response Body

application/json

application/json

application/json

curl -X POST "https://api-base.rafo.work/api/v1/referrals/string/approve" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "id": "ref_xxxxx",
    "member_id": "string",
    "member": {
      "id": "string",
      "name": "string",
      "email": "string"
    },
    "referee_email": "string",
    "referee_name": "string",
    "referee_external_id": "string",
    "order_id": "string",
    "order_value": 0,
    "reward_amount": 0,
    "status": "pending",
    "rejection_reason": "string",
    "warranty_expires_at": "2019-08-24T14:15:22Z",
    "source": "guru",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
Empty
{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or missing API key"
  }
}
{
  "error": {
    "code": "not_found",
    "message": "Resource not found"
  }
}