curl --request GET \
--url https://campaignservice.withbenji.com/campaigns \
--header 'Authorization: Bearer <token>'
{
"code": "ok",
"data": {
"campaign": {
"base_reward": 1,
"campaign_logo": "testcampaign.png",
"campaign_type": 1,
"created_date": "2024-11-20T00:30:57.256493+00:00",
"description": "This is a test campaign",
"end_date": null,
"id": 1,
"is_active": 1,
"is_deleted": 0,
"merchant_id": 1,
"name": "Test Campaign",
"owner_id": 5,
"partner_id": 3,
"start_date": "2024-11-14T03:18:06+00:00",
"total_rewards": 100,
"trigger_type": 1
}
}
}
Endpoint to retrieve all campaigns associated with your account
curl --request GET \
--url https://campaignservice.withbenji.com/campaigns \
--header 'Authorization: Bearer <token>'
{
"code": "ok",
"data": {
"campaign": {
"base_reward": 1,
"campaign_logo": "testcampaign.png",
"campaign_type": 1,
"created_date": "2024-11-20T00:30:57.256493+00:00",
"description": "This is a test campaign",
"end_date": null,
"id": 1,
"is_active": 1,
"is_deleted": 0,
"merchant_id": 1,
"name": "Test Campaign",
"owner_id": 5,
"partner_id": 3,
"start_date": "2024-11-14T03:18:06+00:00",
"total_rewards": 100,
"trigger_type": 1
}
}
}
Comma separated list of possible campaign type values :
Show possible campaign type values
An Array of campaign objects associated with your account
Show items
A campaign object property
Hide properties
Integer representing an enum of one of the following values :
Show possible campaign type values
Integer representing an enum of one of the following campaign trigger values :
Show possible trigger type values
{
"code": "ok",
"data": {
"campaign": {
"base_reward": 1,
"campaign_logo": "testcampaign.png",
"campaign_type": 1,
"created_date": "2024-11-20T00:30:57.256493+00:00",
"description": "This is a test campaign",
"end_date": null,
"id": 1,
"is_active": 1,
"is_deleted": 0,
"merchant_id": 1,
"name": "Test Campaign",
"owner_id": 5,
"partner_id": 3,
"start_date": "2024-11-14T03:18:06+00:00",
"total_rewards": 100,
"trigger_type": 1
}
}
}
Was this page helpful?