- Unified document properties: Essential document details, such as file name, file type, file size, and platform ID, are standardized across different accounting platforms
- Document type association: Documents can be linked to specific document types (e.g., bills, invoices, expenses) using the
document_type_idanddocument_typeproperties, facilitating easy retrieval and organisation of documents - File metadata: The model includes file type (MIME Type) and file size properties, enabling developers to handle documents appropriately and ensure compatibility with their applications
- Document upload status: When you request for a document to be downloaded, RootFi will download the document then cache the document on to its servers so future calls to download the document will be faster. The
document_uploadedproperty indicates whether RootFi has uploaded the document to its servers
Downloading the DocumentAfter initially syncing the documents data
document_uploaded will be false for all the documents. To download the document you must call the Download Documents API. This API will download the document and return a temporary download_url. Subsequent calls to download the document will be faster as the document will be cached on RootFi’s servers.Attributes
Document Attributes
| Property | Type | Description |
|---|---|---|
| rootfi_id | integer | Unique identifier assigned by Commenda for this document |
| rootfi_created_at | string | Timestamp when this record was created in Commenda’s system (ISO 8601) |
| rootfi_updated_at | string | Timestamp when this record was last updated in Commenda’s system (ISO 8601) |
| rootfi_company_id | integer | Company identifier this document belongs to within Commenda |
| platform_id | string | Unique identifier for this document in the source accounting platform |
| platform_unique_id | string | Alternative unique identifier from the platform (some platforms provide multiple IDs) |
| file_name | string | The file name of the document |
| file_type | string | The file type of the document (MIME Type) |
| file_size | double | The file size of the document in bytes |
| document_type_id | string | The document type ID of the document |
| document_type | enum | The document type of the document |
| document_uploaded | boolean | Whether RootFi has uploaded the document to its servers |
| updated_at | string | The date and time the document was last updated |
Document Type Enum Values
| Value | Description |
|---|---|
BILLS | Document is associated with a bill |
INVOICES | Document is associated with an invoice |
EXPENSES | Document is associated with an expense |
BILL_CREDIT_NOTES | Document is associated with a bill credit note |
INVOICE_CREDIT_NOTES | Document is associated with an invoice credit note |
PURCHASE_ORDERS | Document is associated with a purchase order |
SALES_ORDERS | Document is associated with a sales order |
JOURNAL_ENTRIES | Document is associated with a journal entry |
Properties Supported
| Property | Type | Description |
|---|---|---|
| platform_id | string | The Platform’s ID for the document |
| file_name | string | The file name of the document |
| file_type | string | The file type of the document (MIME Type) |
| file_size | double | The file size of the document in bytes |
| document_type_id | string | The document type ID of the document |
| document_type | enum | The document type of the document |
| document_uploaded | boolean | Whether RootFi has uploaded the document to its servers |
| updated_at | string | The date and time the document was last updated |