Menu
Get Rulesets
List campaign rulesets
GET
/v1/applications/{applicationId}/campaigns/{campaignId}/rulesetsUse it in a workflow
- Add a step and choose the Talon.One connector.
- Pick the Get Rulesets action (under management).
- Fill in the fields below, then reference the result from later steps as
{{getRulesets.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getRulesets.response.data.<field>}}.
{
"totalResultSize": 1,
"data": [
{
"rbVersion": "v2",
"created": {},
"campaignId": 320,
"bindings": [],
"activatedAt": {},
"activate": true,
"rules": [
{
"condition": [
"and",
[
"couponValid"
]
],
"effects": [
"catch",
[
"noop"
],
[
"setDiscount",
"10% off",
[
"*",
[
".",
"Session",
"Total"
],
[
"/",
10,
100
]
]
]
],
"bindings": [
{
"attributeId": 100,
"minValue": 0,
"expression": [
"string1",
"string2"
],
"maxValue": 19.9,
"valueType": "string",
"name": "my property",
"description": "This is a template parameter of type `number`.",
"type": "templateParameter"
},
{
"attributeId": 100,
"minValue": 0,
"expression": [
"string1",
"string2"
],
"maxValue": 19.9,
"valueType": "string",
"name": "my property",
"description": "This is a template parameter of type `number`.",
"type": "templateParameter"
}
],
"description": "Creates a discount when a coupon is valid",
"id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
"title": "Give discount via coupon",
"parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23"
},
{
"condition": [
"and",
[
"couponValid"
]
],
"effects": [
"catch",
[
"noop"
],
[
"setDiscount",
"10% off",
[
"*",
[
".",
"Session",
"Total"
],
[
"/",
10,
100
]
]
]
],
"bindings": [
{
"attributeId": 100,
"minValue": 0,
"expression": [
"string1",
"string2"
],
"maxValue": 19.9,
"valueType": "string",
"name": "my property",
"description": "This is a template parameter of type `number`.",
"type": "templateParameter"
},
{
"attributeId": 100,
"minValue": 0,
"expression": [
"string1",
"string2"
],
"maxValue": 19.9,
"valueType": "string",
"name": "my property",
"description": "This is a template parameter of type `number`.",
"type": "templateParameter"
}
],
"description": "Creates a discount when a coupon is valid",
"id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
"title": "Give discount via coupon",
"parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23"
}
],
"id": 6,
"strikethroughRules": [
{
"condition": [
"and",
[
"couponValid"
]
],
"effects": [
"catch",
[
"noop"
],
[
"setDiscount",
"10% off",
[
"*",
[
".",
"Session",
"Total"
],
[
"/",
10,
100
]
]
]
],
"bindings": [
{
"attributeId": 100,
"minValue": 0,
"expression": [
"string1",
"string2"
],
"maxValue": 19.9,
"valueType": "string",
"name": "my property",
"description": "This is a template parameter of type `number`.",
"type": "templateParameter"
},
{
"attributeId": 100,
"minValue": 0,
"expression": [
"string1",
"string2"
],
"maxValue": 19.9,
"valueType": "string",
"name": "my property",
"description": "This is a template parameter of type `number`.",
"type": "templateParameter"
}
],
"description": "Creates a discount when a coupon is valid",
"id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
"title": "Give discount via coupon",
"parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23"
},
{
"condition": [
"and",
[
"couponValid"
]
],
"effects": [
"catch",
[
"noop"
],
[
"setDiscount",
"10% off",
[
"*",
[
".",
"Session",
"Total"
],
[
"/",
10,
100
]
]
]
],
"bindings": [
{
"attributeId": 100,
"minValue": 0,
"expression": [
"string1",
"string2"
],
"maxValue": 19.9,
"valueType": "string",
"name": "my property",
"description": "This is a template parameter of type `number`.",
"type": "templateParameter"
},
{
"attributeId": 100,
"minValue": 0,
"expression": [
"string1",
"string2"
],
"maxValue": 19.9,
"valueType": "string",
"name": "my property",
"description": "This is a template parameter of type `number`.",
"type": "templateParameter"
}
],
"description": "Creates a discount when a coupon is valid",
"id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
"title": "Give discount via coupon",
"parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23"
}
],
"templateId": 3,
"userId": 388
}
]
}
Need more? See the Talon.One guide for connection setup and behaviour shared by every action.
Was this page helpful?