Get Cashback Campaign List
GEThttps://api.cleverhub.co/api/v2/cashbacks/campaigns
Retrieves a paginated list of current cashback campaigns available on the site. This endpoint allows merchants to view and manage ongoing promotional cashback offers, including filtering by campaign status such as active, scheduled, or inactive. Detailed information about each campaign is provided, including tiers, schedule, applicable payment methods, and maximum cashback amounts.
Request
Query Parameters
The page number to retrieve in the paginated response. Defaults to 1 if not specified.
1
The number of campaigns to display per page. Defaults to 10 if not specified.
10
Possible values: [active
, scheduled
, inactive
]
Filter the list of cashback campaigns by their status. Possible values are 'active', 'scheduled', or 'inactive'.
Responses
- 200
- 400
- 401
A successful response containing a list of cashback campaigns.
- application/json
- Schema
- Example (auto)
Schema
The current page number in the paginated response.
1
The number of campaigns displayed per page.
10
The page number of the next page, or null if there is no subsequent page.
2
The total number of pages available based on the current query.
5
The total number of cashback campaigns matching the query parameters.
50
records object[]
{
"page": 1,
"per_page": 10,
"next_page": 2,
"total_page": 5,
"total_count": 50,
"records": [
{
"merchant_id": 123,
"site_id": "site_123",
"campaign_id": "campaign_456",
"name": "Holiday Cashback Bonanza",
"max_payable_cashback_amount": {
"in_whole_campaign_duration": null,
"per_transaction": 50,
"per_user": 200
},
"time_schedule_response": {
"start_time": "2024-11-05T16:20:00.000Z",
"end_time": "2024-12-05T16:20:00.000Z",
"start_time_repeat": "08:00:00",
"end_time_repeat": "14:00:00",
"repeat_days": [
"Mon",
"Wed",
"Fri"
]
},
"payment_methods": [
"pay_id",
"pay_to",
"card"
],
"status": "active",
"tiers": [
{
"id": 3086,
"cashback_type": "percentage",
"cashback_value": 10,
"absolute_type": "min_order",
"absolute_value": 100
}
]
}
]
}
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/campaigns");
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());