Placewise API
Get startedExplore
Get startedExplore
Performance Cloud 🗗
Placewise 🗗
ExplorePublic APIManagement APIUsers APIOperations API
Messaging APIReporting APIML APIData API
ExplorePublic APIManagement APIUsers APIOperations API
Messaging APIReporting APIML APIData API
  1. Documents
  • Introduction
  • Manager API
    • Introduction
    • Settings
      • Introduction
      • Show Operations Settings
      • Update Settings
    • ABM Links
      • List ABM Links
      • Show Unassigned ABM Links Count
      • Import ABM Links
    • Members
      • Show Contact
      • Delete Contact
      • Update Contact
    • Issues
      • Introduction
      • Reopen Issue
      • List Issue Types
      • List Issues
      • Show Issue
      • Accept Issue
      • Resolve Issue
    • Articles
      • Introduction
      • List Articles
      • Show Article
      • Create Article
      • Update Article
      • Destroy Article
    • Articles Categories
      • Introduction
      • List Categories
      • Show Category
      • Create Category
      • Update Category
      • Destroy Category
      • List Categories with Articles
    • Documents
      • Introduction
      • List Documents
        GET
      • Show Document
        GET
      • List Document Recipients
        GET
      • Create Document
        POST
      • Update Document
        PUT
      • Add Recipients to the Document
        POST
      • Destroy Document
        DELETE
    • Resource Types
      • Introduction
      • Show Resource Type Schema
      • Update Resource Type Schema
    • Resources
      • Introduction
      • Delete Resource
      • List Resources
      • Show Resource
      • Accept Resource
      • Reject Resource
      • Create a Resource Reminder
    • Revenue Reporting
      • Introduction
      • List Store Tax Categories
      • Bulk Update Store Tax Categories
      • List Aggregated Reports
      • List Aggregated Reports As Csv
      • Show Policy
      • Update Policy
      • List Tax Categories
      • Bulk Update Tax Categories
      • Download revenue reports import template
      • Import revenue reports from file
    • Alerts
      • Introduction
      • Recall Alert
      • Deactivate Alert
      • List Alerts
      • Show Alert
      • List Alert Recipients
      • Create Alert
      • Accept Alert
      • Reject Alert
    • Alert Templates
      • Introduction
      • List Alert Templates
      • Show Alert Template
      • Create Alert Template
      • Update Alert Template
      • Destroy Alert Template
    • Footfall Reporting
      • List Footfall Reports
      • Bulk Update Reports
  • Tenant API
    • Introduction
    • Documents
      • Introduction
      • List Documents
      • Show Document
      • Confirm Document
    • Resource Types
      • Show Resource Type Schema
    • Resources
      • Introduction
      • List Resources
      • List Deleted Resources
      • Show Resource
      • Create Resource
      • Update Resource
      • Destroy Resource
      • Resubmit Resource
      • Restore Resource
    • Alerts
      • Introduction
      • List Alert Types
      • List Alerts
      • Show Alert
      • Create Alert
      • Report to Alert
    • Alert Templates
      • List Alert Templates
    • Push App Tokens
      • Introduction
      • Add App Tokens
    • Revenue Reporting
      • List Reporting Periods
      • List Reporting Period Reports
      • Bulk Update Reports
      • List Tax Categories
      • List Store Tax Categories
      • Bulk Update
    • ABM Links
      • Assign ABM Link
      • Send ABM Link
    • Issues
      • Introduction
      • List Issues
      • Show Issue
      • Create Issue
      • Update Issues
      • Destroy Issue
    • Articles
      • Introduction
      • List Articles
      • Show Article
      • List Categories with Articles
  1. Documents

Introduction

Document model#

The document is an entity that has some files (with type: "document" and Document's ID as identifier) attached to it.
Upon creation, a notification containing a link to the document is sent via specified channel to given recipients (members of Tenant community).
When document is 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#

KeyTypeOptionalDescription
idintegerno
confirmablebooleannoIs document meant to be confirmed by recipients?
titlestringno
descriptionstringno
deadline_atdatetimewhen not confirmableTime until document is meant to be confirmed by recipients - only for confirmable documents
message_channelenum: ['sms', 'email', 'push']noChannel that the document (and reminders) should be sent with
first_reminderDocumentReminderyes
second_reminderDocumentReminderyesCan only be specified after the first reminder
created_byAPI entitynoAuthor of document
created_atdatetimenoTime of creation
updated_atdatetimenoTime of last update
recipients_countintegernoNumber of recipients
recipients_confirmation_statusenum: ['all', 'some', 'none']noDescribes how many recipients have confirmed the document
public_accessbooleannoDocument 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#

KeyTypeOptionalDescription
days_before_deadlineintegernoWhen the reminder should be sent - number of days before the specified deadline
scheduled_atdatetimenoActual calculated time for reminder sending - at 09:00 in the timezone specific for the Loyalty Club
sent_atdatetimeyesWhen 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#

KeyTypeOptionalDescription
idintegerno
member_idintegernoID of MPC member
last_seen_atdatetimeyesLast time when the recipient retrieved the Document record
confirmed_atdatetimeyesTime of confirmation
created_atdatetimenoTime of creation
updated_atdatetimenoTime of last update
Previous
List Categories with Articles
Next
List Documents
Built with