Get campaign by ID
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Update campaign by ID. Works as upsert
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
| id required | string [ 0 .. 64 ] characters [a-zA-Z0-9_-]+ |
| type required | string Enum: "STANDARD" "BIRTHDAY" |
| name required | string [ 3 .. 128 ] characters Name of a campaign |
| activeFrom | string <date-time> |
| activeTo | string <date-time> |
required | Array of objects (Constraint) [ 1 .. 16 ] items Constraints are rules that specify which accounts fall info the campaign. |
required | Array of AccountStateDefinition (object) or CouponStateDefinition (object) or MessageStateDefinition (object) or OrderStateDefinition (object) or WalletStateDefinition (object) [ 1 .. 10 ] items States define flow of campaign |
| dynamic | boolean Flag that determine if campaign can be dynamically joined upon account change or only initially assigned accounts take part in campaign. |
Array of CouponExpirationCampaignNotification (object) or DynamicJoinCampaignNotification (object) or SpecificTimeCampaignNotification (object) [ 0 .. 3 ] items Define push notification templates |
{- "id": "string",
- "type": "STANDARD",
- "name": "string",
- "activeFrom": "2019-08-24T14:15:22Z",
- "activeTo": "2019-08-24T14:15:22Z",
- "constraints": [
- {
- "field": "string",
- "op": "EQ",
- "value": [
- "string"
]
}
], - "states": [
- {
- "id": "string",
- "transitionTo": "string",
- "stats": 0,
- "type": "string",
- "constraints": [
- {
- "field": "string",
- "op": "EQ",
- "value": [
- "string"
]
}
]
}
], - "dynamic": true,
- "notifications": [
- {
- "title": "string",
- "message": "string",
- "image": "string",
- "payload": {
- "property1": "string",
- "property2": "string"
}, - "type": "string",
- "dayPart": "MORNING",
- "daysToExpire": 0
}
]
}Delete campaign by ID. Be careful as this is irreversible operation.
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Register push for campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string [ 1 .. 64 ] characters [a-zA-Z0-9_-]+ |
| x-tenant | string |
| pushId required | string[a-zA-Z0-9_-]{1,32} |
| title | string |
{- "pushId": "string",
- "title": "string"
}Get paginated list of campaigns. This endpoint is compatible with React AdminOnRest framework to provide DataSource.
ROLE_SUROLE_LOYALTY) required | object (CampaignFilter) |
Create campaign. Works as upsert
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
| id required | string [ 0 .. 64 ] characters [a-zA-Z0-9_-]+ |
| type required | string Enum: "STANDARD" "BIRTHDAY" |
| name required | string [ 3 .. 128 ] characters Name of a campaign |
| activeFrom | string <date-time> |
| activeTo | string <date-time> |
required | Array of objects (Constraint) [ 1 .. 16 ] items Constraints are rules that specify which accounts fall info the campaign. |
required | Array of AccountStateDefinition (object) or CouponStateDefinition (object) or MessageStateDefinition (object) or OrderStateDefinition (object) or WalletStateDefinition (object) [ 1 .. 10 ] items States define flow of campaign |
| dynamic | boolean Flag that determine if campaign can be dynamically joined upon account change or only initially assigned accounts take part in campaign. |
Array of CouponExpirationCampaignNotification (object) or DynamicJoinCampaignNotification (object) or SpecificTimeCampaignNotification (object) [ 0 .. 3 ] items Define push notification templates |
{- "id": "string",
- "type": "STANDARD",
- "name": "string",
- "activeFrom": "2019-08-24T14:15:22Z",
- "activeTo": "2019-08-24T14:15:22Z",
- "constraints": [
- {
- "field": "string",
- "op": "EQ",
- "value": [
- "string"
]
}
], - "states": [
- {
- "id": "string",
- "transitionTo": "string",
- "stats": 0,
- "type": "string",
- "constraints": [
- {
- "field": "string",
- "op": "EQ",
- "value": [
- "string"
]
}
]
}
], - "dynamic": true,
- "notifications": [
- {
- "title": "string",
- "message": "string",
- "image": "string",
- "payload": {
- "property1": "string",
- "property2": "string"
}, - "type": "string",
- "dayPart": "MORNING",
- "daysToExpire": 0
}
]
}Register push for campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string [ 1 .. 64 ] characters [a-zA-Z0-9_-]+ |
| x-tenant | string |
"string"Preview matching accounts for campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Initialize campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Initialize campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Get global stats for campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_STATS) | name required | string[a-zA-Z0-9_-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Get stats for campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_STATS) | name required | string[a-zA-Z0-9_-]+ |
| from | string <date> |
| to | string <date> |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Export contact information for accounts matching criteria. Export ignores paging in request and always returns all data.
ROLE_SU) required | object (AccountFilter) |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Set my profile
| firstName | string [ 0 .. 128 ] characters |
| lastName | string [ 0 .. 128 ] characters |
| birthdate | string <date> |
| sex | string Enum: "MALE" "FEMALE" "OTHER" |
{- "firstName": "string",
- "lastName": "string",
- "birthdate": "2019-08-24",
- "sex": "MALE"
}Set my properties and tags
object | |
| addTags | Array of strings [ 0 .. 16 ] items |
| removeTags | Array of strings [ 0 .. 16 ] items |
{- "properties": {
- "property1": "string",
- "property2": "string"
}, - "addTags": [
- "string"
], - "removeTags": [
- "string"
]
}Verify if campaign coupon can be used for any account
ROLE_SUROLE_LOYALTYROLE_LOYALTY_COUPON) | coupon required | string[a-zA-Z0-9_-]+ |
| account required | string [ 3 .. 64 ] characters [a-zA-Z0-9._-]+ |
| lock | boolean Default: false |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Unlock coupon manually for any account
ROLE_SUROLE_LOYALTYROLE_LOYALTY_COUPON) | coupon required | string[a-zA-Z0-9_-]+ |
| account required | string [ 3 .. 64 ] characters [a-zA-Z0-9._-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Export accounts matching criteria. Export ignores paging in request and always returns all data.
ROLE_SUROLE_LOYALTY) required | object (AccountFilter) |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Export contact information for accounts matching criteria. Export ignores paging in request and always returns all data.
ROLE_SU) required | object (AccountFilter) |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Get paginated list of accounts. This endpoint is compatible with React AdminOnRest framework to provide DataSource.
ROLE_SUROLE_LOYALTY) required | object (AccountFilter) |
Get account
ROLE_SUROLE_LOYALTY) | account required | string [ 3 .. 64 ] characters [a-zA-Z0-9._-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Get account by card id
ROLE_SUROLE_LOYALTY) | x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Post new event(s)
ROLE_SUROLE_LOYALTYROLE_LOYALTY_EVENT) | x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
[- {
- "account": "string",
- "card": "string",
- "consents": {
- "scope": "ACCOUNT",
- "transaction": "string",
- "consents": {
- "property1": "2019-08-24T14:15:22Z",
- "property2": "2019-08-24T14:15:22Z"
}
}, - "ts": "2019-08-24T14:15:22Z",
- "type": "INVITED_BY",
- "id": "string",
- "doNotProcessSymmetry": true
}
]Get stats for segments
ROLE_SUROLE_LOYALTYROLE_LOYALTY_STATS) | from | string <date> |
| to | string <date> |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Get global stats for campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_STATS) | name required | string[a-zA-Z0-9_-]+ |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Get stats for campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_STATS) | name required | string[a-zA-Z0-9_-]+ |
| from | string <date> |
| to | string <date> |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Get stats for segments
ROLE_SUROLE_LOYALTYROLE_LOYALTY_STATS) | from | string <date> |
| to | string <date> |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Export accounts matching criteria. Export ignores paging in request and always returns all data.
ROLE_SUROLE_LOYALTY) required | object (AccountFilter) |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Export contact information for accounts matching criteria. Export ignores paging in request and always returns all data.
ROLE_SU) required | object (AccountFilter) |
| x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9_-]+ |
Get count of accounts. This endpoint is compatible with React AdminOnRest framework to provide DataSource.
ROLE_SUROLE_LOYALTY) required | object (AccountFilter) |