Menu
Get Campaign Templates
List campaign templates
GET
/v1/campaign_templatesUse it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Get Campaign Templates action (under management).
- Fill in the fields below, then reference the result from later steps as
{{getCampaignTemplates.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getCampaignTemplates.response.data.<field>}}.
{
"hasMore": true,
"data": [
{
"instructions": "Use this template for discount campaigns. Set the campaign properties according to the campaign goals, and don't forget to set an end date.",
"campaignCollections": [
{
"name": "My collection",
"description": "My collection of SKUs"
},
{
"name": "My collection",
"description": "My collection of SKUs"
}
],
"campaignsCount": 3,
"defaultCampaignGroupId": 42,
"description": "This is a template for a discount campaign.",
"features": [
"coupons",
"coupons"
],
"couponReservationSettings": {
"reservationLimit": 45,
"isReservationMandatory": false
},
"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"
]
},
"templateParams": [
{
"attributeId": 42,
"name": "discount_value",
"description": "This is a template parameter of type `number`.",
"type": "number"
},
{
"attributeId": 42,
"name": "discount_value",
"description": "This is a template parameter of type `number`.",
"type": "number"
}
],
"id": 6,
"couponAttributes": "{}",
"state": "draft",
"limits": [
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
},
{
"period": "yearly",
"entities": [
"Coupon"
],
"limit": 1000,
"action": "createCoupon"
}
],
"activeRulesetId": 5,
"campaignAttributes": "{}",
"applicationsIds": [
1,
2,
3,
1,
2,
3
],
"campaignType": "advanced",
"updatedBy": "Jane Doe",
"created": {},
"isUserFavorite": false,
"reevaluateOnReturn": true,
"userId": 388,
"tags": [
"discount"
],
"accountId": 3886,
"validApplicationIds": [
1,
2,
3
],
"name": "Discount campaign",
"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"
]
},
"updated": {}
}
]
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?