Get User List
GEThttps://api.cleverhub.co/api/v2/cashbacks/users
Retrieves a paginated list of users associated with the site. This endpoint allows merchants to view all users who have activated their cashback accounts, including their personal information and account creation dates. Supports pagination to manage large datasets.
Request
Query Parameters
The page number to retrieve in the paginated response. Defaults to 1 if not specified.
1
The number of records to display per page. Defaults to 10 if not specified.
10
Responses
- 200
- 400
- 401
A successful response containing a list of users.
- application/json
- Schema
- Example (auto)
Schema
The current page number in the paginated response.
1
The number of records displayed per page.
2
The page number of the next page, or null if there is no subsequent page.
null
The total number of pages available based on the current query.
1
The total number of users available across all pages.
1
records object[]
{
"page": 1,
"per_page": 2,
"next_page": null,
"total_page": 1,
"total_count": 1,
"records": [
{
"user_id": "8GAVZZKTI3",
"site_id": "3BAVFJ6H",
"first_name": "example",
"last_name": "example",
"email": "example@gmail.com",
"phone": "+61412345678",
"created_at": "2024-11-06T16:39:48.264Z",
"updated_at": "2024-11-06T16:39:48.264Z"
}
]
}
Bad Request
Unauthorized
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`.
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.cleverhub.co/api/v2/cashbacks/users");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("app-id", "<app-id>");
request.Headers.Add("secret-key", "<app-id>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());