Rafobase Logo

Reject a referral

Reject a referral due to fraud or policy violation.

POST
/referrals/{id}/reject

Reject a referral due to fraud or policy violation.

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

reason*string

Rejection reason code

Value in"fraud" | "self_referral" | "policy_violation" | "duplicate" | "test_order" | "other"
notes?string

Additional notes

Response Body

application/json

application/json

application/json

curl -X POST "https://api-base.rafo.work/api/v1/referrals/string/reject" \  -H "Content-Type: application/json" \  -d '{    "reason": "fraud"  }'
{
  "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"
  }
}