Get Campaign Configurations
GEThttps://api.cleverhub.co/api/v2/cashbacks/configuration_campaign
Retrieves detailed cashback conditions and configurations for the merchant's specific campaign. This includes maximum payable amounts, time schedules, applicable payment methods, campaign status, and cashback tiers with specific conditions and values. Useful for merchants to understand the parameters of their cashback campaigns and adjust their strategies accordingly.
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
Filter the campaigns by their status.
Responses
- 200
- 400
- 401
A successful response containing cashback conditions and configurations.
- application/json
- Schema
- Example (auto)
Schema
The unique identifier of the merchant associated with the campaign.
123
The unique identifier of the site where the campaign is active.
site_123
The unique identifier of the cashback campaign.
campaign_456
The name of the cashback campaign.
Holiday Cashback Campaign
max_payable_cashback_amount object
The maximum cashback amount each user can receive throughout the entire campaign. Null indicates no per-user limit.
200
time_schedule_response object
A list of payment methods that are valid for the cashback program.
["pay_id","pay_to","card"]
The current status of the campaign.
active
tiers object[]
{
"merchant_id": 123,
"site_id": "site_123",
"campaign_id": "campaign_456",
"name": "Holiday Cashback Campaign",
"max_payable_cashback_amount": {
"in_whole_campaign_duration": null,
"per_transaction": 50
},
"max_cashback_amount_receivable_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": null,
"end_time_repeat": null,
"repeat_days": [
"Mon",
"Wed",
"Fri"
]
},
"payment_methods": [
"pay_id",
"pay_to",
"card"
],
"status": "active",
"tiers": [
{
"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/configuration_campaign");
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());