- Overview
- Reference
- API Structure
- Public API
- Introduction
- Loyalty Club
- Member
- Offers
- Rewards
- Games
- CMS Content
- Management API
- Introduction
- Core
- Applications
- Branding
- Privacy Policy
- Cookie Policy
- Terms
- Domains
- Domain Email Configs
- Domain Web Configs
- TLS Certificates
- Links
- Fonts
- Subunits
- Subunits Scopes
- Contacts
- Translations
- Promotions Policy
- Tracker
- Social Logins
- Billing
- SMS Sender Identities
- Member Authentication Configuration
- Members
- Listing Members
- Member Profile
- Imports
- Groups
- Programs
- Benefits
- Cars
- Webhooks
- Misc
- Receipts
- Messages
- Stores
- Offers
- Rewards
- Triggerer
- Rules
- Event Types Schema
- Point Multipliers
- CMS
- Introduction
- Pages
- Components
- Website
- Website Domains
- Venue Info
- Landing Pages
- Landing Page Templates
- Articles
- Events
- Events Groups
- Job Postings
- Press Releases
- Tags
- Service Messages
- Content Prototypes
- ContentPrototype Model
- List Content Prototypes
- Show Content Prototype
- Create Content Prototype
- Update Content Prototype
- Destroy Content Prototype
- List Organization Content Prototypes
- Show Organization Content Prototype
- Create Organization Content Prototype
- Update Organization Content Prototype
- Destroy Organization Content Prototype
- Mixed Content
- Attachments
- Events
- Games
- Scraper
- Files
- Receipts
- Users API
- Operations API
- Introduction
- Manager API
- Tenant API
- Messaging API
- Data API
- ML API
- Introduction
- Predict Sending KPI v1
- Explain Sending KPI Prediction v1
- Predict Sending KPI In Date Range v1
- Predict Sending Popularity v2
- Predict Sending Text Popularity v2
- Predict Sending Time Series Popularity v2
- Explain Sending Popularity Prediction v2
- Explain Sending Text Popularity Prediction v2
- Explain Sending Time Series Popularity Prediction v2
- Recommend sending time v2
- Detect Receipt Fraud
- Generate Image
- Generate Text
- Generate Sending Text
- (Draft) Reporting API
- Other
Introduction
Rule model#
Example#
{
"id": 5,
"event_type": "app_opened",
"name": {
"value": "Use coupon \"Valentines\"",
"translations": {
"pl": "Użycie kuponu \"Walentynki\""
}
},
"frequency": {
"rate": 0,
"limit": 1,
"minimum": 0,
"timespan": "day"
},
"limit": 5000,
"minimum": 0,
"rate": null,
"hook_type": "rewards_api",
"hook_delayed_by_seconds": 5,
"options": {
"rewards_api": {
"grant_points": 3
}
},
"data_conditions": null,
"audience_id": 42,
"excluded_sources": ["webforms", "some-external-product"],
"paused": false,
"created_at": "2019-02-26T13:22:43.495Z",
"updated_at": "2019-02-28T15:29:24.156Z",
"deleted_at": null
}
Definition#
Key | Description | Type |
---|---|---|
id | Rule ID | integer |
event_type | Event type | string |
name | Object with rule name including it's translations | JSON Object |
frequency | Object describing rule trigger frequency | JSON Object |
limit | Maximum actions per member | integer |
minimum | Minimum number of such events before actual action per member | integer |
rate | Execute action each X event per member | integer |
hook_type | hook type | string |
hook_delayed_by_seconds | Delay in seconds after which hook will be triggered | integer |
data_conditions | Data conditions object see rule schema | JSON Object |
audience_id | Audience identifier | integer |
excluded_sources | List of API sources/products that should not trigger the action | Array |
paused | Indicates if rule execution is paused | Bool |
created_at | Tine of rule creation | Date |
updated_at | Time of last rule update | Date |
deleted_at | Time of rule deletion | Date |