Skip to main content

Activate User's Cashback Account

POST 

https://api.cleverhub.co/api/v2/cashbacks/activate

Activates a user to be eligible for receiving and withdrawing cashback through cashback campaigns. This endpoint validates the existence of the user and registers them for cashback activities. Required fields include user_id, first_name, and last_name. Optional fields like email and phone help in user identification and communication.

Request

Bodyrequired

    user_idstringrequired

    The unique user ID provided by the merchant. This ID is used to identify the user in all cashback transactions.

    Example: user_123
    phonestring

    The user's phone number in international format (e.g., "+61412345678").

    Example: +61412345678
    emailstring

    The user's email address, used for notifications and identification.

    Example: user@example.com
    first_namestringrequired

    The user's first name.

    Example: John
    last_namestringrequired

    The user's last name.

    Example: Doe

Responses

User activated successfully.

Schema
    user_idstring

    The unique user ID assigned by the merchant.

    Example: 8GAVZZKTI3
    site_idstring

    The unique identifier of the site associated with the user.

    Example: 3BAVFJ6H
    first_namestring

    The user's first name.

    Example: John
    last_namestring

    The user's last name.

    Example: Doe
    emailstringnullable

    The user's email address.

    Example: example@gmail.com
    phonestringnullable

    The user's phone number.

    Example: +61412345678
    created_atdate-time

    The timestamp when the user was created in the cashback system.

    Example: 2024-11-06T16:39:48.264Z
    updated_atdate-time

    The timestamp when the user's information was last updated.

    Example: 2024-11-06T16:39:48.264Z

Authorization: app-id

name: app-idtype: apiKeyin: headerdescription: A unique identifier assigned to each application.
name: secret-keytype: apiKeyin: headerdescription: A secure token associated with the `app-id`.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.cleverhub.co/api/v2/cashbacks/activate");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("app-id", "<app-id>");
request.Headers.Add("secret-key", "<app-id>");
var content = new StringContent("{\n \"user_id\": \"user_123\",\n \"phone\": \"+61412345678\",\n \"email\": \"user@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.cleverhub.co/api
Auth
Body required
{
  "user_id": "user_123",
  "phone": "+61412345678",
  "email": "user@example.com",
  "first_name": "John",
  "last_name": "Doe"
}
ResponseClear

Click the Send API Request button above and see the response here!