---
title: "Get journal entries (Multiple Analytic Plans)"
method: GET
path: "/consumers/{consumer_id}/accounting/journal/entries/multi-analytic-plans"
tags: ["Accounting", "Journal entries"]
---

# Get journal entries (Multiple Analytic Plans)

`GET /consumers/{consumer_id}/accounting/journal/entries/multi-analytic-plans`

Returns a list of journal entries with invoice items including multiple analytic plan.Optionally, you can retrieve journal entries linked to a specific client/supplier using the partner_id parameter. When retrieving entries linked to a specific client/supplier, some journal items of an entry (e.g. a miscellaneous operation) could be excluding resulting in an unbalanced journal entry.

## Path parameters

- `consumer_id` string, uuid, required

## Query parameters

- `page` integer
- `size` integer
- `folder_id` string, nullable
- `unposted_allowed` 'true' | 'false', required
- `journal_id` string, nullable
- `date_from` string, date, nullable
- `date_to` string, date, nullable
- `updated_after` string, date-time, nullable
- `partner_id` string, nullable

## Response `200`

Successful Response

- ChiftPageJournalEntryMultiAnalyticPlan
  - `items` JournalEntryMultiAnalyticPlan[], required
    - `reference` string, nullable — Optional reference field used to store an external or contextual identifier related to the entry. For example, it can be used to store a reference number, the invoice number issued by the suppllier or any other relevant information.
    - `due_date` string, date, nullable — If the journal entry relates to an invoice, this is the due date for payment or settlement (format: YYYY-MM-DD).
    - `journal_id` string, required — Id of the journal instance in the accounting system in which the journal entry is recorded.
    - `name` string, nullable
    - `journal_name` string, nullable — Name of the journal in which the journal entry is recorded.
    - `date` string, date, nullable — Accounting date of the journal entry. It is automatically set to '1970-01-01' if the value is not available/empty in the accounting system.
    - `posted` boolean, nullable — Indicates if the journal entry has been posted (finalized) in the accounting system.
    - `id` string, required — Unique id of the journal entry instance in the accounting system.
    - `due_dates` JournalItemDueDatesOut[], nullable — List of all due dates of a journal entry.
      - `due_date` string, date, required — Due date of the item.
      - `payment_method` string, nullable — Payment method used to pay the entry on that due date.
      - `payment_method_id` string, nullable — Technical ID of the payment method used to pay the entry on that due date.
      - `debit` number, nullable — Debit of the item on this due date.
      - `credit` number, nullable — Credit of the item on this due date.
    - `attachments_info` ItemAttachmentInfoOut
      - `status` 'unknown' | 'yes' | 'yes_to_request' | 'no', required
      - `attachments` ItemAttachmentInfoAttachment[], nullable — List of attachments available directly for this entry. Populated only when status is 'yes'. When status is 'yes_to_request', this list is empty — use GET /accounting/attachments to fetch the file content.
        - `filename` string, nullable — The name of the attachment.
        - `url` string, nullable — Direct download URL for the attachment file. Only populated when the parent attachments_info.status is 'yes'. When status is 'yes_to_request', this field is null and the file must be retrieved via GET /accounting/attachments with the appropriate type and document_id, which returns the content as a base64-encoded string.
    - `items` JournalItemMultiAnalyticPlan[], nullable — List of journal items that make up the journal entry. Each item represents a line in the journal entry, and the sum of debits must equal the sum of credits to ensure the entry is balanced.
      - `account_number` string, required — Depending on account_type, if the account_type is 'general_account', this is the general ledger account number used to book the journal item against. If the account_type is 'customer_account', 'supplier_account' or 'employee_account', this is the thirdparty_id (id of the customer, supplier or employee in the accounting system).
      - `partner_id` string, nullable — Id of the thirdparty (customer, supplier or employee) in the accounting system if the journal item relates to a thirdparty (e.g., an invoice).
      - `description` string, nullable — Text description for this journal item. This is typically used to provide additional context or information.
      - `debit` number, required — Amount to debit on the account. Must be 0 if credit field is not 0
      - `credit` number, required — Amount to credit on the account. Must be 0 if debit field is not 0
      - `currency` string, required — Currency code (e.g., USD, EUR) used for the journal item amounts.
      - `currency_exchange_rate` number, nullable — Exchange rate applicable at the date of the journal item. Required when currency is different from the folder's default currency.
      - `id` string, required — Unique id of the journal item instance in the accounting system.
      - `partner_name` string, nullable — Name of the thirdparty (customer, supplier or employee) linked to the journal item if journal item relates to a thirdparty (e.g., an invoice).
      - `account_name` string, required — Name or label of the ledger account used to book the journal item against.
      - `matching_numbers` string[], nullable — List of matching numbers used to link this journal item to other entries in the accounting system. This is used for reconciliation/lettering purposes.
      - `analytic_distribution` AnalyticDistribution[], nullable — List of analytic distributions for the journal item. Each distribution specifies an analytic plan and the allocation of the journal entry item's amount across analytic accounts using percentages.
        - `analytic_plan` string, required — Id of the analytic plan to which the distribution applies.
        - `analytic_accounts` AnalyticDistributionDetail[], required — List of analytic accounts and their respective percentages for the distribution.
          - `analytic_account` string, required
          - `percentage` number, required — Percentage of the untaxed amount attributed to this analytic account. Only whole numbers (no decimals) are allowed. The total across the analytic distribution (all accounts in a given analytic plan) must equal 100%.
  - `total` integer, required
  - `page` integer, required
  - `size` integer, required

## Other responses

- `400` — Bad Request
- `422` — Validation Error

---

[API](https://skmtc.net/chift/apis/chift-api.md) · [All operations](https://skmtc.net/chift/apis/chift-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chift/chift-api/versions/b5f1214a482a/schema)
