Get campaign by ID
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string |
Update campaign by ID. Works as upsert
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string |
| 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 objects (CampaignStateDefinition) [ 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 objects (AbstractCampaignNotification) [ 0 .. 3 ] items Define push notification templates |
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 |
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 |
| 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 objects (CampaignStateDefinition) [ 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 objects (AbstractCampaignNotification) [ 0 .. 3 ] items Define push notification templates |
Initialize campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string |
Initialize campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string |
Preview matching accounts for campaign
ROLE_SUROLE_LOYALTYROLE_LOYALTY_CAMPAIGN) | campaign required | string[a-zA-Z0-9_-]+ |
| x-tenant | string |
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 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 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._-]+ |
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._-]+ |
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) | 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 count of accounts. This endpoint is compatible with React AdminOnRest framework to provide DataSource.
ROLE_SUROLE_LOYALTY) required | object (AccountFilter) |
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._-]+ |
Post new event(s)
ROLE_SUROLE_LOYALTYROLE_LOYALTY_EVENT) | x-tenant | string [ 3 .. 64 ] characters [a-zA-Z0-9._-]+ |
| account | string [ 3 .. 64 ] characters [a-zA-Z0-9._-]+ |
| card | string [ 3 .. 64 ] characters [a-zA-Z0-9._-]+ |
object (Consents) | |
| ts | string <date-time> |
| type required | string AddRelationEvent AddRelationEvent CountersUpdateEvent OrderEvent TagEvent UserConsentsEvent UserLoginEvent UserUpsertEvent WalletUsageEvent |
| id required | string[a-zA-Z0-9_.-]+ |
| doNotProcessSymmetry | boolean |