- Overview
- Reference
- API Structure
- Public API
- Introduction
- Loyalty Club
- Member
- Offers
- Rewards
- Games
- CMS Content
- Management API
- Introduction
- Core
- Applications
- Privacy Policy
- Cookie Policy
- Terms
- Domains
- Domain Email Configs
- Domain Web Configs
- TLS Certificates
- Links
- Fonts
- Subunits
- Subunits Scopes
- SMS Sender Identities
- Contacts
- Translations
- Promotions Policy
- Tracker
- Social Logins
- Billing
- Member Authentication Configuration
- Members
- Listing Members
- Member Profile
- Imports
- Groups
- Programs
- Benefits
- Cars
- Webhooks
- Misc
- Receipts
- Stores
- Offers
- Rewards
- Triggerer
- 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
- Introduction
- Settings
- ABM Links
- Members
- Issues
- Articles
- Articles Categories
- Documents
- Resource Types
- Resources
- Revenue Reporting
- Alerts
- Alert Templates
- Footfall Reporting
- 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
Document model#
type: "document"
and Document's ID as identifier
) attached to it.confirmable
, recipients may need to confirm it. In such case, a deadline_at
must be specified.Also, it is possible to configure automated reminder messages that
are sent to recipients which didn't confirm the document.
Example#
{
"id": 15,
"confirmable": true,
"title": "Fire instructions",
"description": "Describes how to behave in case of fire",
"deadline_at": "2020-12-15T15:43:32.000Z",
"message_channel": "sms",
"first_reminder": {
"days_before_deadline": 5,
"scheduled_at": "2020-12-10T08:00:00.000Z",
"sent_at": null
},
"second_reminder": {
"days_before_deadline": 2,
"scheduled_at": "2020-12-13T08:00:00.000Z",
"sent_at": null
},
"created_by": { "entity_type": "token", "entity_id": 491 },
"created_at": "2020-11-30T17:12:46.435Z",
"updated_at": "2020-11-30T17:12:46.435Z",
"recipients_count": 2,
"recipients_confirmation_status": "some",
"public_access": true
}
Definition#
Key | Type | Optional | Description |
---|---|---|---|
id | integer | no | |
confirmable | boolean | no | Is document meant to be confirmed by recipients? |
title | string | no | |
description | string | no | |
deadline_at | datetime | when not confirmable | Time until document is meant to be confirmed by recipients - only for confirmable documents |
message_channel | enum: ['sms', 'email', 'push'] | no | Channel that the document (and reminders) should be sent with |
first_reminder | DocumentReminder | yes | |
second_reminder | DocumentReminder | yes | Can only be specified after the first reminder |
created_by | API entity | no | Author of document |
created_at | datetime | no | Time of creation |
updated_at | datetime | no | Time of last update |
recipients_count | integer | no | Number of recipients |
recipients_confirmation_status | enum: ['all', 'some', 'none'] | no | Describes how many recipients have confirmed the document |
public_access | boolean | no | Document with public access |
DocumentReminder model#
Example#
{
"days_before_deadline": 2,
"scheduled_at": "2020-12-13T08:00:00.000Z",
"sent_at": "2020-12-13T08:00:01.540Z"
}
Definition#
Key | Type | Optional | Description |
---|---|---|---|
days_before_deadline | integer | no | When the reminder should be sent - number of days before the specified deadline |
scheduled_at | datetime | no | Actual calculated time for reminder sending - at 09:00 in the timezone specific for the Loyalty Club |
sent_at | datetime | yes | When the reminder has been sent |
DocumentRecipient model#
Example#
{
"id": 44,
"member_id": 52,
"last_seen_at": "2020-11-30T17:21:42.350Z",
"confirmed_at": "2020-11-30T17:21:50.420Z",
"created_at": "2020-11-30T16:46:28.200Z",
"updated_at": "2020-11-30T16:46:28.200Z"
}
Definition#
Key | Type | Optional | Description |
---|---|---|---|
id | integer | no | |
member_id | integer | no | ID of MPC member |
last_seen_at | datetime | yes | Last time when the recipient retrieved the Document record |
confirmed_at | datetime | yes | Time of confirmation |
created_at | datetime | no | Time of creation |
updated_at | datetime | no | Time of last update |
Modified at 2024-05-06 15:15:29