> ## Documentation Index
> Fetch the complete documentation index at: https://integrations.docs.commenda.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> A Journal is a running record of a company's financial transactions used to record the debits and credits of each transaction.

**The Journal Entries Data Model** represents a running record of a company's financial transactions used to record the debits and credits of each transaction. This unified model simplifies the management and retrieval of journal entry information across various accounting platforms.

* **Unified journal entry properties**: Essential journal entry details, such as account ID, amount, currency, description, and posted date, are standardized across different accounting platforms
* **Journal entry lines**: The `journal_lines` property includes an array of related journal lines, providing a comprehensive view of the journal entry's constituent transactions

## Attributes

### Journal Entries Attributes

| Property                  | Type    | Description                                                                 |
| ------------------------- | ------- | --------------------------------------------------------------------------- |
| `rootfi_id`               | integer | Unique identifier assigned by Commenda for this journal entry               |
| `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_integration_type` | enum    |                                                                             |
| `platform_id`             | string  | Unique identifier for this journal entry in the source accounting platform  |
| `account_id`              | string  | The account ID of the journal entry                                         |
| `amount`                  | double  | The total amount of the journal entry                                       |
| `currency_id`             | enum    | ISO 4217 currency code                                                      |
| `currency_rate`           | double  | The currency rate of the journal entry                                      |
| `journal_entry_type`      | string  | The type of the journal entry                                               |
| `description`             | string  | The description of the journal entry                                        |
| `posted_date`             | string  | The posted date of the journal entry                                        |
| `document_number`         | string  | The document number of the journal entry                                    |
| `business_unit_id`        | string  | The business unit ID of the journal entry                                   |
| `updated_at`              | string  | The date and time the journal entry was last updated                        |

## Expandable Attributes

Use the `expand` query parameter to include related objects:

* `expand=journal_lines` — includes the related Journal Lines object(s).
* `expand=documents` — includes the related Documents object(s).

## Properties Supported

Fields accepted when creating or updating a record:

| Property             | Type   | Description                                                                |
| -------------------- | ------ | -------------------------------------------------------------------------- |
| `platform_id`        | string | Unique identifier for this journal entry in the source accounting platform |
| `account_id`         | string | The account ID of the journal entry                                        |
| `amount`             | double | The total amount of the journal entry                                      |
| `currency_id`        | enum   | ISO 4217 currency code                                                     |
| `currency_rate`      | double | The currency rate of the journal entry                                     |
| `journal_entry_type` | string | The type of the journal entry                                              |
| `description`        | string | The description of the journal entry                                       |
| `posted_date`        | string | The posted date of the journal entry                                       |
| `document_number`    | string | The document number of the journal entry                                   |
| `business_unit_id`   | string | The business unit ID of the journal entry                                  |
| `updated_at`         | string | The date and time the journal entry was last updated                       |
