Menu
Get Campaign By Attributes
List campaigns that match the given attributes
POST
/v1/applications/{applicationId}/campaigns_searchUse it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Get Campaign By Attributes action (under management).
- Fill in the fields below, then reference the result from later steps as
{{getCampaignByAttributes.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"attributes": {}
}
Response
Returns 200 with an object. Read it in later steps with {{getCampaignByAttributes.response.data.<field>}}.
{
"totalResultSize": 1,
"data": [
{
"type": "advanced",
"templateId": 3,
"customEffectCount": 0,
"activeRevisionId": 6,
"features": [
"coupons",
"referrals"
],
"createdLoyaltyPointsCount": 9,
"storesImported": true,
"couponSettings": {
"couponPattern": "SUMMER-####-####",
"validCharacters": [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
},
"experimentId": 1,
"id": 4,
"state": "enabled",
"couponAttributes": "{}",
"reservecouponEffectCount": 9,
"updatedBy": "Jane Doe",
"frontendState": "running",
"created": {},
"referralCreationCount": 8,
"stageRevision": false,
"couponRedemptionCount": 163,
"couponCreationCount": 16,
"version": 6,
"campaignGroups": [
1,
3
],
"tags": [
"summer"
],
"discountEffectCount": 343,
"budgets": [
{
"limit": 1000,
"action": "createCoupon",
"counter": 42
},
{
"limit": 1000,
"action": "createCoupon",
"counter": 42
}
],
"redeemedLoyaltyPointsCount": 8,
"name": "Summer promotions",
"valueMapsIds": [
100,
215
],
"applicationId": 322,
"updated": {},
"callApiEffectCount": 0,
"createdLoyaltyPointsEffectCount": 2,
"discountCount": 288,
"revisionFrontendState": "revised",
"description": "Campaign for all summer 2021 promotions",
"activeRevisionVersionId": 6,
"currentRevisionVersionId": 6,
"startTime": {},
"currentRevisionId": 6,
"limits": [
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
},
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
}
],
"activeRulesetId": 6,
"reevaluateOnReturn": true,
"userId": 388,
"awardedGiveawaysCount": 9,
"redeemedLoyaltyPointsEffectCount": 9,
"linkedStoreIds": [
1,
2,
3
],
"createdBy": "John Doe",
"addFreeItemEffectCount": 0,
"referralSettings": {
"couponPattern": "SUMMER-####-####",
"validCharacters": [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
},
"attributes": "{}",
"lastActivity": {},
"endTime": {},
"referralRedemptionCount": 3
}
]
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?