Download OpenAPI specification:Download
Use Application notifications and loyalty notifications to notify the system of your choice of certain changes that happened in Talon.One.
Note: Required fields are not omitted if they are empty (have null
value).
Represents the notifications about campaign-related changes.
Note: The value of the NotificationType
property indicates the campaign change:
CampaignNotification
signifies one of the following events:
CampaignEvaluationTreeChanged
signifies Campaign evaluation tree changed.The notification indicating a campaign was created.
NotificationType | string The type of the notification | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TotalResultSize | integer The total size of the result set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects A list of campaign notification data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "NotificationType": "CampaignNotification",
- "TotalResultSize": 0,
- "Data": [
- {
- "Event": "campaign_state_changed",
- "campaign": {
- "id": 4,
- "created": "2020-06-10T09:05:27.993483Z",
- "applicationId": 322,
- "userId": 388,
- "name": "Summer promotions",
- "description": "Campaign for all summer 2021 promotions",
- "startTime": "2021-07-20T22:00:00Z",
- "endTime": "2021-09-22T22:00:00Z",
- "attributes": { },
- "state": "enabled",
- "activeRulesetId": 6,
- "tags": [
- "summer"
], - "features": [
- "coupons",
- "referrals"
], - "couponSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "referralSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "limits": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "period": "yearly",
- "entities": [
- "Coupon"
]
}
], - "campaignGroups": [
- 1,
- 3
], - "type": "advanced",
- "linkedStoreIds": [
- 1,
- 2,
- 3
], - "budgets": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "counter": 42
}
], - "couponRedemptionCount": 163,
- "referralRedemptionCount": 3,
- "discountCount": 288,
- "discountEffectCount": 343,
- "couponCreationCount": 16,
- "customEffectCount": 0,
- "referralCreationCount": 8,
- "addFreeItemEffectCount": 0,
- "awardedGiveawaysCount": 9,
- "createdLoyaltyPointsCount": 9,
- "createdLoyaltyPointsEffectCount": 2,
- "redeemedLoyaltyPointsCount": 8,
- "redeemedLoyaltyPointsEffectCount": 9,
- "callApiEffectCount": 0,
- "reservecouponEffectCount": 9,
- "lastActivity": "2022-11-10T23:00:00Z",
- "updated": "2022-10-97T35:00:00Z",
- "createdBy": "John Doe",
- "updatedBy": "Jane Doe",
- "templateId": 3,
- "frontendState": "running",
- "storesImported": true,
- "valueMapsIds": [
- 100,
- 215
], - "revisionFrontendState": "revised",
- "activeRevisionId": 6,
- "activeRevisionVersionId": 6,
- "version": 6,
- "currentRevisionId": 6,
- "currentRevisionVersionId": 6,
- "stageRevision": false
}, - "ruleset": {
- "id": 6,
- "created": "2020-06-10T09:05:27.993483Z",
- "userId": 388,
- "rules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "strikethroughRules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "bindings": [ ],
- "rbVersion": "v2",
- "activate": true,
- "campaignId": 320,
- "templateId": 3,
- "activatedAt": "2019-08-24T14:15:22Z"
}, - "evaluationPosition": {
- "groupId": 2,
- "groupName": "Summer campaigns",
- "position": 2
}
}
]
}
The notification indicating the state of a campaign changed.
NotificationType | string The type of the notification | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TotalResultSize | integer The total size of the result set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects A list of campaign notification data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "NotificationType": "CampaignNotification",
- "TotalResultSize": 0,
- "Data": [
- {
- "Event": "campaign_state_changed",
- "campaign": {
- "id": 4,
- "created": "2020-06-10T09:05:27.993483Z",
- "applicationId": 322,
- "userId": 388,
- "name": "Summer promotions",
- "description": "Campaign for all summer 2021 promotions",
- "startTime": "2021-07-20T22:00:00Z",
- "endTime": "2021-09-22T22:00:00Z",
- "attributes": { },
- "state": "enabled",
- "activeRulesetId": 6,
- "tags": [
- "summer"
], - "features": [
- "coupons",
- "referrals"
], - "couponSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "referralSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "limits": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "period": "yearly",
- "entities": [
- "Coupon"
]
}
], - "campaignGroups": [
- 1,
- 3
], - "type": "advanced",
- "linkedStoreIds": [
- 1,
- 2,
- 3
], - "budgets": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "counter": 42
}
], - "couponRedemptionCount": 163,
- "referralRedemptionCount": 3,
- "discountCount": 288,
- "discountEffectCount": 343,
- "couponCreationCount": 16,
- "customEffectCount": 0,
- "referralCreationCount": 8,
- "addFreeItemEffectCount": 0,
- "awardedGiveawaysCount": 9,
- "createdLoyaltyPointsCount": 9,
- "createdLoyaltyPointsEffectCount": 2,
- "redeemedLoyaltyPointsCount": 8,
- "redeemedLoyaltyPointsEffectCount": 9,
- "callApiEffectCount": 0,
- "reservecouponEffectCount": 9,
- "lastActivity": "2022-11-10T23:00:00Z",
- "updated": "2022-10-97T35:00:00Z",
- "createdBy": "John Doe",
- "updatedBy": "Jane Doe",
- "templateId": 3,
- "frontendState": "running",
- "storesImported": true,
- "valueMapsIds": [
- 100,
- 215
], - "revisionFrontendState": "revised",
- "activeRevisionId": 6,
- "activeRevisionVersionId": 6,
- "version": 6,
- "currentRevisionId": 6,
- "currentRevisionVersionId": 6,
- "stageRevision": false
}, - "oldState": "disabled",
- "newState": "running",
- "ruleset": {
- "id": 6,
- "created": "2020-06-10T09:05:27.993483Z",
- "userId": 388,
- "rules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "strikethroughRules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "bindings": [ ],
- "rbVersion": "v2",
- "activate": true,
- "campaignId": 320,
- "templateId": 3,
- "activatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
The notification indicating the rules of a campaign changed.
NotificationType | string The type of the notification | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TotalResultSize | integer The total size of the result set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects A list of campaign notification data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "NotificationType": "CampaignNotification",
- "TotalResultSize": 0,
- "Data": [
- {
- "Event": "campaign_state_changed",
- "campaign": {
- "id": 4,
- "created": "2020-06-10T09:05:27.993483Z",
- "applicationId": 322,
- "userId": 388,
- "name": "Summer promotions",
- "description": "Campaign for all summer 2021 promotions",
- "startTime": "2021-07-20T22:00:00Z",
- "endTime": "2021-09-22T22:00:00Z",
- "attributes": { },
- "state": "enabled",
- "activeRulesetId": 6,
- "tags": [
- "summer"
], - "features": [
- "coupons",
- "referrals"
], - "couponSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "referralSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "limits": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "period": "yearly",
- "entities": [
- "Coupon"
]
}
], - "campaignGroups": [
- 1,
- 3
], - "type": "advanced",
- "linkedStoreIds": [
- 1,
- 2,
- 3
], - "budgets": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "counter": 42
}
], - "couponRedemptionCount": 163,
- "referralRedemptionCount": 3,
- "discountCount": 288,
- "discountEffectCount": 343,
- "couponCreationCount": 16,
- "customEffectCount": 0,
- "referralCreationCount": 8,
- "addFreeItemEffectCount": 0,
- "awardedGiveawaysCount": 9,
- "createdLoyaltyPointsCount": 9,
- "createdLoyaltyPointsEffectCount": 2,
- "redeemedLoyaltyPointsCount": 8,
- "redeemedLoyaltyPointsEffectCount": 9,
- "callApiEffectCount": 0,
- "reservecouponEffectCount": 9,
- "lastActivity": "2022-11-10T23:00:00Z",
- "updated": "2022-10-97T35:00:00Z",
- "createdBy": "John Doe",
- "updatedBy": "Jane Doe",
- "templateId": 3,
- "frontendState": "running",
- "storesImported": true,
- "valueMapsIds": [
- 100,
- 215
], - "revisionFrontendState": "revised",
- "activeRevisionId": 6,
- "activeRevisionVersionId": 6,
- "version": 6,
- "currentRevisionId": 6,
- "currentRevisionVersionId": 6,
- "stageRevision": false
}, - "oldRuleset": {
- "id": 6,
- "created": "2020-06-10T09:05:27.993483Z",
- "userId": 388,
- "rules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "strikethroughRules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "bindings": [ ],
- "rbVersion": "v2",
- "activate": true,
- "campaignId": 320,
- "templateId": 3,
- "activatedAt": "2019-08-24T14:15:22Z"
}, - "ruleset": {
- "id": 6,
- "created": "2020-06-10T09:05:27.993483Z",
- "userId": 388,
- "rules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "strikethroughRules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "bindings": [ ],
- "rbVersion": "v2",
- "activate": true,
- "campaignId": 320,
- "templateId": 3,
- "activatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
The notification indicating a campaign was edited.
NotificationType | string The type of the notification | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TotalResultSize | integer The total size of the result set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects A list of campaign notification data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "NotificationType": "CampaignNotification",
- "TotalResultSize": 0,
- "Data": [
- {
- "Event": "campaign_state_changed",
- "campaign": {
- "id": 4,
- "created": "2020-06-10T09:05:27.993483Z",
- "applicationId": 322,
- "userId": 388,
- "name": "Summer promotions",
- "description": "Campaign for all summer 2021 promotions",
- "startTime": "2021-07-20T22:00:00Z",
- "endTime": "2021-09-22T22:00:00Z",
- "attributes": { },
- "state": "enabled",
- "activeRulesetId": 6,
- "tags": [
- "summer"
], - "features": [
- "coupons",
- "referrals"
], - "couponSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "referralSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "limits": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "period": "yearly",
- "entities": [
- "Coupon"
]
}
], - "campaignGroups": [
- 1,
- 3
], - "type": "advanced",
- "linkedStoreIds": [
- 1,
- 2,
- 3
], - "budgets": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "counter": 42
}
], - "couponRedemptionCount": 163,
- "referralRedemptionCount": 3,
- "discountCount": 288,
- "discountEffectCount": 343,
- "couponCreationCount": 16,
- "customEffectCount": 0,
- "referralCreationCount": 8,
- "addFreeItemEffectCount": 0,
- "awardedGiveawaysCount": 9,
- "createdLoyaltyPointsCount": 9,
- "createdLoyaltyPointsEffectCount": 2,
- "redeemedLoyaltyPointsCount": 8,
- "redeemedLoyaltyPointsEffectCount": 9,
- "callApiEffectCount": 0,
- "reservecouponEffectCount": 9,
- "lastActivity": "2022-11-10T23:00:00Z",
- "updated": "2022-10-97T35:00:00Z",
- "createdBy": "John Doe",
- "updatedBy": "Jane Doe",
- "templateId": 3,
- "frontendState": "running",
- "storesImported": true,
- "valueMapsIds": [
- 100,
- 215
], - "revisionFrontendState": "revised",
- "activeRevisionId": 6,
- "activeRevisionVersionId": 6,
- "version": 6,
- "currentRevisionId": 6,
- "currentRevisionVersionId": 6,
- "stageRevision": false
}, - "oldCampaign": {
- "id": 4,
- "created": "2020-06-10T09:05:27.993483Z",
- "applicationId": 322,
- "userId": 388,
- "name": "Summer promotions",
- "description": "Campaign for all summer 2021 promotions",
- "startTime": "2021-07-20T22:00:00Z",
- "endTime": "2021-09-22T22:00:00Z",
- "attributes": { },
- "state": "enabled",
- "activeRulesetId": 6,
- "tags": [
- "summer"
], - "features": [
- "coupons",
- "referrals"
], - "couponSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "referralSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "limits": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "period": "yearly",
- "entities": [
- "Coupon"
]
}
], - "campaignGroups": [
- 1,
- 3
], - "type": "advanced",
- "linkedStoreIds": [
- 1,
- 2,
- 3
], - "budgets": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "counter": 42
}
], - "couponRedemptionCount": 163,
- "referralRedemptionCount": 3,
- "discountCount": 288,
- "discountEffectCount": 343,
- "couponCreationCount": 16,
- "customEffectCount": 0,
- "referralCreationCount": 8,
- "addFreeItemEffectCount": 0,
- "awardedGiveawaysCount": 9,
- "createdLoyaltyPointsCount": 9,
- "createdLoyaltyPointsEffectCount": 2,
- "redeemedLoyaltyPointsCount": 8,
- "redeemedLoyaltyPointsEffectCount": 9,
- "callApiEffectCount": 0,
- "reservecouponEffectCount": 9,
- "lastActivity": "2022-11-10T23:00:00Z",
- "updated": "2022-10-97T35:00:00Z",
- "createdBy": "John Doe",
- "updatedBy": "Jane Doe",
- "templateId": 3,
- "frontendState": "running",
- "storesImported": true,
- "valueMapsIds": [
- 100,
- 215
], - "revisionFrontendState": "revised",
- "activeRevisionId": 6,
- "activeRevisionVersionId": 6,
- "version": 6,
- "currentRevisionId": 6,
- "currentRevisionVersionId": 6,
- "stageRevision": false
}, - "ruleset": {
- "id": 6,
- "created": "2020-06-10T09:05:27.993483Z",
- "userId": 388,
- "rules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "strikethroughRules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "bindings": [ ],
- "rbVersion": "v2",
- "activate": true,
- "campaignId": 320,
- "templateId": 3,
- "activatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
The notification indicating the collection was edited.
NotificationType | string The type of the notification | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TotalResultSize | integer The total size of the result set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects A list of campaign notification data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "NotificationType": "CampaignNotification",
- "TotalResultSize": 0,
- "Data": [
- {
- "Event": "campaign_state_changed",
- "campaign": {
- "id": 4,
- "created": "2020-06-10T09:05:27.993483Z",
- "applicationId": 322,
- "userId": 388,
- "name": "Summer promotions",
- "description": "Campaign for all summer 2021 promotions",
- "startTime": "2021-07-20T22:00:00Z",
- "endTime": "2021-09-22T22:00:00Z",
- "attributes": { },
- "state": "enabled",
- "activeRulesetId": 6,
- "tags": [
- "summer"
], - "features": [
- "coupons",
- "referrals"
], - "couponSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "referralSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "limits": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "period": "yearly",
- "entities": [
- "Coupon"
]
}
], - "campaignGroups": [
- 1,
- 3
], - "type": "advanced",
- "linkedStoreIds": [
- 1,
- 2,
- 3
], - "budgets": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "counter": 42
}
], - "couponRedemptionCount": 163,
- "referralRedemptionCount": 3,
- "discountCount": 288,
- "discountEffectCount": 343,
- "couponCreationCount": 16,
- "customEffectCount": 0,
- "referralCreationCount": 8,
- "addFreeItemEffectCount": 0,
- "awardedGiveawaysCount": 9,
- "createdLoyaltyPointsCount": 9,
- "createdLoyaltyPointsEffectCount": 2,
- "redeemedLoyaltyPointsCount": 8,
- "redeemedLoyaltyPointsEffectCount": 9,
- "callApiEffectCount": 0,
- "reservecouponEffectCount": 9,
- "lastActivity": "2022-11-10T23:00:00Z",
- "updated": "2022-10-97T35:00:00Z",
- "createdBy": "John Doe",
- "updatedBy": "Jane Doe",
- "templateId": 3,
- "frontendState": "running",
- "storesImported": true,
- "valueMapsIds": [
- 100,
- 215
], - "revisionFrontendState": "revised",
- "activeRevisionId": 6,
- "activeRevisionVersionId": 6,
- "version": 6,
- "currentRevisionId": 6,
- "currentRevisionVersionId": 6,
- "stageRevision": false
}, - "ruleset": {
- "id": 6,
- "created": "2020-06-10T09:05:27.993483Z",
- "userId": 388,
- "rules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "strikethroughRules": [
- {
- "id": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "parentId": "7fa800a8-ac8d-4792-85dc-c4650dcc8f23",
- "title": "Give discount via coupon",
- "description": "Creates a discount when a coupon is valid",
- "bindings": [
- {
- "name": "my property",
- "type": "templateParameter",
- "expression": [
- "string1",
- "string2"
], - "valueType": "string",
- "minValue": 0,
- "maxValue": 19.9,
- "attributeId": 100,
- "description": "This is a template parameter of type `number`."
}
], - "condition": [
- "and",
- [
- "couponValid"
]
], - "effects": [
- "catch",
- [
- "noop"
], - [
- "setDiscount",
- "10% off",
- [
- "*",
- [
- ".",
- "Session",
- "Total"
], - [
- "/",
- 10,
- 100
]
]
]
]
}
], - "bindings": [ ],
- "rbVersion": "v2",
- "activate": true,
- "campaignId": 320,
- "templateId": 3,
- "activatedAt": "2019-08-24T14:15:22Z"
}, - "collection": {
- "id": 6,
- "created": "2020-06-10T09:05:27.993483Z",
- "accountId": 3886,
- "modified": "2021-09-12T10:12:42Z",
- "description": "My collection of SKUs",
- "subscribedApplicationsIds": [
- 1,
- 2,
- 3
], - "name": "My collection",
- "modifiedBy": 48,
- "createdBy": 134,
- "applicationId": 1,
- "campaignId": 7
}
}
]
}
The notification indicating a campaign was deleted.
NotificationType | string The type of the notification | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TotalResultSize | integer The total size of the result set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects A list of campaign notification data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
{- "NotificationType": "CampaignNotification",
- "TotalResultSize": 0,
- "Data": [
- {
- "Event": "campaign_state_changed",
- "campaign": {
- "id": 4,
- "created": "2020-06-10T09:05:27.993483Z",
- "applicationId": 322,
- "userId": 388,
- "name": "Summer promotions",
- "description": "Campaign for all summer 2021 promotions",
- "startTime": "2021-07-20T22:00:00Z",
- "endTime": "2021-09-22T22:00:00Z",
- "attributes": { },
- "state": "enabled",
- "activeRulesetId": 6,
- "tags": [
- "summer"
], - "features": [
- "coupons",
- "referrals"
], - "couponSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "referralSettings": {
- "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"
], - "couponPattern": "SUMMER-####-####"
}, - "limits": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "period": "yearly",
- "entities": [
- "Coupon"
]
}
], - "campaignGroups": [
- 1,
- 3
], - "type": "advanced",
- "linkedStoreIds": [
- 1,
- 2,
- 3
], - "budgets": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "counter": 42
}
], - "couponRedemptionCount": 163,
- "referralRedemptionCount": 3,
- "discountCount": 288,
- "discountEffectCount": 343,
- "couponCreationCount": 16,
- "customEffectCount": 0,
- "referralCreationCount": 8,
- "addFreeItemEffectCount": 0,
- "awardedGiveawaysCount": 9,
- "createdLoyaltyPointsCount": 9,
- "createdLoyaltyPointsEffectCount": 2,
- "redeemedLoyaltyPointsCount": 8,
- "redeemedLoyaltyPointsEffectCount": 9,
- "callApiEffectCount": 0,
- "reservecouponEffectCount": 9,
- "lastActivity": "2022-11-10T23:00:00Z",
- "updated": "2022-10-97T35:00:00Z",
- "createdBy": "John Doe",
- "updatedBy": "Jane Doe",
- "templateId": 3,
- "frontendState": "running",
- "storesImported": true,
- "valueMapsIds": [
- 100,
- 215
], - "revisionFrontendState": "revised",
- "activeRevisionId": 6,
- "activeRevisionVersionId": 6,
- "version": 6,
- "currentRevisionId": 6,
- "currentRevisionVersionId": 6,
- "stageRevision": false
}, - "deletedAt": "2022-11-10T23:00:00Z"
}
]
}
The notification indicating the campaign evaluation tree of an Application changed.
The campaign evaluation tree changes, for example, when a campaign is created (including copying other campaigns) or deleted, or when a campaign evaluation group is modified. To learn more, see Managing campaign evaluation.
NotificationType | string The type of the notification | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TotalResultSize | integer The total size of the result set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of CampaignEvaluationTreeChangedNotification (object) The array of changes. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array One of
|
{- "NotificationType": "CampaignNotification",
- "TotalResultSize": 0,
- "Data": [
- {
- "event": "string",
- "applicationId": 78,
- "oldEvaluationTree": {
- "applicationId": 322,
- "id": 6,
- "version": 3,
- "set": {
- "type": "SET",
- "name": "name",
- "operator": "ALL",
- "elements": [
- {
- "type": "type"
}
], - "groupId": 0,
- "locked": true,
- "description": "string",
- "evaluationMode": "stackable",
- "evaluationScope": "cartItem"
}, - "updatedBy": "Jane Doe"
}, - "evaluationTree": {
- "applicationId": 322,
- "id": 6,
- "version": 3,
- "set": {
- "type": "SET",
- "name": "name",
- "operator": "ALL",
- "elements": [
- {
- "type": "type"
}
], - "groupId": 0,
- "locked": true,
- "description": "string",
- "evaluationMode": "stackable",
- "evaluationScope": "cartItem"
}, - "updatedBy": "Jane Doe"
}
}
]
}
Represents the notifications about coupons.
The notification indicating that one of the following coupon-related changes occurred:
Array of objects The array of coupons codes. If 1000 or fewer coupons are requested, all coupon data is sent. If 1001 or more coupons are requested, only | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
totalResultSize | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BatchID | string The ID of the batch to which the coupon belongs. Note: The Batch ID is generated when coupons are created. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TypeOfChange | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Operation | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EmployeeName | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NotificationType | string The type of the not |
{- "TypeOfChange": "campaign_manager",
- "Operation": "CouponCreated",
- "EmployeeName": "Franziska Schneider",
- "NotificationType": "CouponCreated",
- "totalResultSize": 2,
- "data": [
- {
- "id": 1,
- "created": "2023-01-31T15:19:25.18417+01:00",
- "campaignId": 1,
- "value": "73KXKKFP",
- "usageLimit": 1,
- "reservationLimit": 0,
- "usageCounter": 0,
- "attributes": { },
- "reservation": true,
- "batchId": "nqylhnni"
}, - {
- "id": 2,
- "created": "2023-01-31T15:19:25.18417+01:00",
- "campaignId": 1,
- "value": "BH3CXXLW",
- "usageLimit": 1,
- "reservationLimit": 0,
- "usageCounter": 0,
- "attributes": { },
- "reservation": true,
- "batchId": "nqylhnni"
}
]
}
The notification indicating that one of the following coupon-related changes occurred:
TypeOfChange | string The type of change that occurred. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Operation | string The operation performed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EmployeeName | string The name of the employee associated with the operation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects A list of extended coupon data. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
totalResultSize | integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NotificationType | string The type of the notification |
{- "TypeOfChange": "string",
- "Operation": "string",
- "EmployeeName": "string",
- "data": [
- {
- "id": 6,
- "created": "2020-06-10T09:05:27.993483Z",
- "campaignId": 211,
- "value": "XMAS-20-2021",
- "usageLimit": 100,
- "discountLimit": 30,
- "reservationLimit": 45,
- "startDate": "2020-01-24T14:15:22Z",
- "expiryDate": "2023-08-24T14:15:22Z",
- "limits": [
- {
- "action": "createCoupon",
- "limit": 1000,
- "period": "yearly",
- "entities": [
- "Coupon"
]
}
], - "usageCounter": 10,
- "discountCounter": 10,
- "discountRemainder": 5,
- "reservationCounter": 1,
- "attributes": { },
- "referralId": 326632952,
- "recipientIntegrationId": "URNGV8294NV",
- "importId": 4,
- "reservation": false,
- "batchId": "32535-43255",
- "isReservationMandatory": false,
- "implicitlyReserved": false,
- "ApplicationId": 0
}
], - "totalResultSize": 1,
- "NotificationType": "string"
}
The notification indicating that up to 5 million coupons were created asynchronously via the Create coupons asynchronously endpoint.
In this case, instead of individual notifications for specific coupon changes (such as creation, update, or deletion), a single notification about the completion of the batch processing of coupons with details about the batch is sent.
Tip:
To retrieve information about the generated coupons, after receiving the notification, use the Export coupons endpoint along with the batchid
, which indicates the batch to which the coupons belong.
BatchID | string The ID of the batch to which the coupon belongs. Note: The Batch ID is generated when coupons are created. |
TypeOfChange | string |
Operation | string |
EmployeeName | string |
NotificationType | string The type of the notification |
{- "TypeOfChange": "campaign_manager",
- "Operation": "AsyncCouponsCreated",
- "EmployeeName": "Franziska Schneider",
- "NotificationType": "AsyncCouponsCreated",
- "BatchID": "nqylhnni"
}
The notification indicating that coupons were updated via the Update coupons endpoint.
Tip:
To retrieve information about the generated coupons, after receiving the notification, use the Export coupons endpoint along with the batchid
, which indicates the batch to which the coupons belong.
BatchID | string |
ApplicationID | integer <int64> |
CampaignID | integer <int64> |
TypeOfChange | string |
Operation | string |
EmployeeName | string |
NotificationType | string The type of the notification |
{- "TypeOfChange": "campaign_manager",
- "Operation": "CouponsUpdated",
- "EmployeeName": "Franziska Schneider",
- "NotificationType": "CouponsUpdated",
- "BatchID": "nqylhnni",
- "ApplicationID": 5,
- "CampaignID": 3
}
The notification indicating that coupons were deleted via the Delete coupons endpoint.
Tip:
To retrieve information about the generated coupons, after receiving the notification, use the Export coupons endpoint along with the batchid
, which indicates the batch to which the coupons belong.
TypeOfChange | string |
Operation | string |
EmployeeName | string |
BatchID | string |
ApplicationID | integer <int64> |
CampaignID | integer <int64> |
TotalResultSize | integer <int64> |
NotificationType | string The type of the notification |
{- "TypeOfChange": "campaign_manager",
- "Operation": "CouponsDeleted",
- "EmployeeName": "Franziska Schneider",
- "NotificationType": "CouponsDeleted",
- "BatchID": "nqylhnni",
- "ApplicationID": 5,
- "CampaignID": 3,
- "TotalResultSize": 200
}
The notification reminding users of expiring coupons.
TotalResultSize | integer | ||||||||||||||||||||||||
Array of objects <= 1000 characters The array of expiring coupon notifications. | |||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
NotificationType | string Value: "CouponCodeExpiring" The type of notification. |
{- "TotalResultSize": 1,
- "Data": [
- {
- "CouponValue": "XMAS-20-2021",
- "CreatedDate": "2024-07-24T14:15:22Z",
- "ValidFrom": "2024-10-24T14:15:22Z",
- "ValidUntil": "2024-12-24T14:15:22Z",
- "CampaignId": 3,
- "CustomerProfileId": "URNGV8294NV",
- "UsageLimit": 100,
- "UsageCounter": 10,
- "BatchId": "32535-43255",
- "Attributes": { }
}
], - "NotificationType": "CouponCodeExpiring"
}
Represents the notifications about changes to loyalty points in card-based loyalty programs.
The notification reminding users that their active loyalty points will expire soon.
TotalResultSize | integer | ||||||||||||||
Array of objects <= 1000 characters The array of expiring points. | |||||||||||||||
Array
| |||||||||||||||
NotificationType | string Value: "LoyaltyCardPointsExpiring" The type of notification. |
{- "TotalResultSize": 1,
- "Data": [
- {
- "ExpiryDate": "2019-08-24",
- "LoyaltyProgramID": 5,
- "AmountOfExpiringPoints": 10.99,
- "SubledgerID": "sub-123",
- "CardIdentifier": "summer-loyalty-card-0543",
- "UsersPerCardLimit": 5,
- "Profiles": [
- "URNGV8294NV"
]
}
], - "NotificationType": "LoyaltyCardPointsExpiring"
}
The notification informing users when loyalty points are added or deducted.
ProfileIntegrationIDs | Array of strings The integration ID of the customer profile to whom points were added or deducted. |
LoyaltyProgramID | integer >= 1 The ID of the loyalty program. |
SubledgerID | string The ID of the subledger within the loyalty program where these points were added or deducted. |
Amount | number The amount of added or deducted loyalty points. |
Reason | string The reason for the points addition or deduction. |
TypeOfChange | string Enum: "campaign_manager" "rule_engine" "management_api" The notification source, that is, it indicates whether the points were added or deducted via one of the following routes: |
EmployeeName | string The name of the employee who added or deducted points. |
UserID | integer >= 1 The ID of the employee who added or deducted points. |
Operation | string Enum: "addition" "deduction" The action (addition or deduction) made with loyalty points. |
StartDate | string <date-time> The start date for loyalty points. |
ExpiryDate | string <date-time> The expiration date for loyalty points. |
SessionIntegrationID | string The integration ID of the session through which the points were earned or lost. |
NotificationType | string Enum: "LoyaltyCardPointsDeducted" "LoyaltyCardPointsAdded" The type of notification. |
CardIdentifier | string Loyalty card identification number. |
UsersPerCardLimit | integer The max amount of user profiles with whom a card can be shared. This can be set to |
{- "ProfileIntegrationIDs": [
- "yJSObdNNtOetCHWHPFuz",
- "test-user-4zoj1c"
], - "LoyaltyProgramID": 5,
- "SubledgerID": "sub-123",
- "Amount": 10.99,
- "Reason": "Compensation",
- "TypeOfChange": "campaign_manager",
- "EmployeeName": "Franziska Schneider",
- "UserID": 25,
- "Operation": "addition",
- "StartDate": "2023-01-24T14:15:22Z",
- "ExpiryDate": "2024-01-24T14:15:22Z",
- "SessionIntegrationID": "cc53e4fa-547f-4f5e-8333-76e05c381f67",
- "NotificationType": "LoyaltyCardPointsDeducted",
- "CardIdentifier": "123-456-789ATBC",
- "UsersPerCardLimit": 10
}
Represents the notifications about changes to loyalty points in profile-based loyalty programs.
The notification reminding users that their active loyalty points will expire soon.
TotalResultSize | integer | ||||||||||
Array of objects <= 1000 characters The array of expiring points. | |||||||||||
Array
| |||||||||||
NotificationType | string Value: "LoyaltyPointsExpiring" The type of notification. |
{- "TotalResultSize": 1,
- "Data": [
- {
- "ExpiryDate": "2019-08-24",
- "LoyaltyProgramID": 5,
- "CustomerProfileID": "URNGV8294NV",
- "AmountOfExpiringPoints": 10.99,
- "SubledgerID": "sub-123"
}
], - "NotificationType": "LoyaltyPointsExpiring"
}
The notification informing users when loyalty points are added or deducted.
ProfileIntegrationID | string The integration ID of the customer profile to whom points were added or deducted. |
LoyaltyProgramID | integer >= 1 The ID of the loyalty program. |
SubledgerID | string The ID of the subledger within the loyalty program where these points were added. |
Amount | number The amount of added or deducted loyalty points. |
Reason | string The reason for the points addition or deduction. |
TypeOfChange | string Enum: "campaign_manager" "rule_engine" "management_api" The notification source, that is, it indicates whether the points were added or deducted via one of the following routes: |
EmployeeName | string The name of the employee who added or deducted points. |
UserID | integer >= 1 The ID of the employee who added or deducted points. |
Operation | string Enum: "addition" "deduction" The action (addition or deduction) made with loyalty points. |
StartDate | string <date-time> The start date for loyalty points. |
ExpiryDate | string <date-time> The expiration date for loyalty points. |
SessionIntegrationID | string The integration ID of the session through which the points were earned or lost. |
NotificationType | string Enum: "LoyaltyPointsDeducted" "LoyaltyPointsAdded" The type of notification. |
{- "ProfileIntegrationID": "URNGV8294NV",
- "LoyaltyProgramID": 5,
- "SubledgerID": "sub-123",
- "Amount": 10.99,
- "Reason": "Compensation",
- "TypeOfChange": "campaign_manager",
- "EmployeeName": "Franziska Schneider",
- "UserID": 25,
- "Operation": "addition",
- "StartDate": "2023-01-24T14:15:22Z",
- "ExpiryDate": "2024-01-24T14:15:22Z",
- "SessionIntegrationID": "cc53e4fa-547f-4f5e-8333-76e05c381f67",
- "NotificationType": "LoyaltyPointsDeducted"
}
The notification informing users that their pending points will become active soon.
TotalResultSize | integer | ||||||||||||||
Array of objects <= 1000 characters The array of pending points. | |||||||||||||||
Array
| |||||||||||||||
NotificationType | string Value: "LoyaltyPointsPendingToActive" The type of notification. |
{- "TotalResultSize": 1,
- "Data": [
- {
- "LoyaltyProgramID": 5,
- "SubledgerID": "SL001",
- "CustomerProfileID": "URNGV8294NV",
- "Points": 10.99,
- "ActiveOn": "2023-08-20T12:22:00+02:00",
- "ExpireOn": "2023-09-01T12:23:00+02:00",
- "SessionIntegrationID": "cc53e4fa-547f-4f5e-8333-76e05c381f67"
}
], - "NotificationType": "LoyaltyPointsPendingToActive"
}
The notification informing users when a loyalty tier upgrade occurs.
TotalResultSize | integer | ||||||||||||||||||||
Array of objects <= 1000 characters The array of tier upgrade notifications. | |||||||||||||||||||||
Array
| |||||||||||||||||||||
NotificationType | string Value: "TierUpgrade" The type of notification. |
{- "TotalResultSize": 1,
- "Data": [
- {
- "CustomerProfileID": "URNGV8294NV",
- "LoyaltyProgramID": 5,
- "SubledgerID": "SL001",
- "CurrentTier": "Silver",
- "CurrentPoints": 120.55,
- "OldTier": "Bronze",
- "PointsRequiredToTheNextTier": 23.51,
- "NextTier": "Gold",
- "TierExpirationDate": "2023-12-01T12:23:00+02:00",
- "TimestampOfTierChange": "2023-10-26T12:23:00+02:00"
}
], - "NotificationType": "TierUpgrade"
}
The notification informing users when a loyalty tier downgrade occurs.
TotalResultSize | integer | ||||||||||||||||
Array of objects <= 1000 characters The array of tier downgrade notifications. | |||||||||||||||||
Array
| |||||||||||||||||
NotificationType | string Value: "TierDowngrade" The type of notification. |
{- "TotalResultSize": 1,
- "Data": [
- {
- "CustomerProfileID": "URNGV8294NV",
- "LoyaltyProgramID": 5,
- "SubledgerID": "SL001",
- "CurrentTier": "Silver",
- "CurrentPoints": 120.55,
- "OldTier": "Gold",
- "TierExpirationDate": "2023-12-01T12:23:00+02:00",
- "TimestampOfTierChange": "2023-10-26T12:23:00+02:00"
}
], - "NotificationType": "TierDowngrade"
}
The notification reminding users of an upcoming loyalty tier downgrade.
TotalResultSize | integer | ||||||||||||||||
Array of objects <= 1000 characters The array of upcoming tier downgrade notifications. | |||||||||||||||||
Array
| |||||||||||||||||
NotificationType | string Value: "TierWillDowngrade" The type of notification. |
{- "TotalResultSize": 1,
- "Data": [
- {
- "CustomerProfileID": "URNGV8294NV",
- "LoyaltyProgramID": 5,
- "SubledgerID": "SL001",
- "CurrentTier": "Silver",
- "CurrentPoints": 120.55,
- "PointsRequiredToRemain": 23.51,
- "NextTier": "Bronze",
- "TierExpirationDate": "2023-12-01T12:23:00+02:00"
}
], - "NotificationType": "TierWillDowngrade"
}
Represents the notifications about strikethrough pricing updates.
The notification listing the changes in the pricing of your cart item catalog.
version | string Value: "v2" The version of the strikethrough pricing notification. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
validFrom | string <date-time> Timestamp at which the strikethrough pricing update becomes valid. Set for scheduled strikethrough pricing updates (version: v2) only. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
applicationId | integer The ID of the Application to which the catalog items labels belongs. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
currentBatch | integer The batch number of the notification. Notifications might be sent in different batches. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
totalBatches | integer The total number of batches for the notification. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Information about the event that triggered the strikethrough labeling. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NotificationType | string The type of the notification |
{- "applicationId": 322,
- "currentBatch": 1,
- "totalBatches": 10,
- "trigger": {
- "id": 1,
- "type": "CATALOG_SYNC",
- "triggeredAt": "2020-06-10T09:05:27.993483Z",
- "totalAffectedItems": 1500,
- "payload": {
- "catalogId": 2,
- "catalogVersion": 10
}
}, - "changedItems": [
- {
- "id": 1,
- "catalogId"": 10,
- "sku": "SKU1241028",
- "version": 6,
- "price": 99.99,
- "evaluatedAt": "2020-06-10T09:05:27.993483Z",
- "effects": [
- {
- "campaignId": 3,
- "rulesetId": 11,
- "ruleIndex": 2,
- "ruleName": "Add 2 points",
- "type": "setDiscountPerItem",
- "props": {
- "name": "1EuroOff",
- "value": 1
}
}
]
}
], - "NotificationType": "StrikethroughPrice"
}