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

# Single and multiple analytic plans

## Plan models

Accounting software organizes [analytic plans](/unified-apis/accounting/concepts/analytical-accounting/analytic-plan) in 2 ways:

* **Fixed plans**: a fixed number of plans with predefined meanings.
* **Dynamic plans**: the end-user creates and manages plans freely.

The API supports both models seamlessly.

## Single plan mode

Only one plan is used. It is configured in the connector's platform settings.

* You do not specify the plan in the API.
* Each line has one [analytic account](/unified-apis/accounting/concepts/analytical-accounting/analytic-account), in `analytic_account`. No distribution or percentage is possible.
* Use the endpoints without "(Multiple Analytic Plans)" in their name.

## Multiple plans mode

Several plans are used (e.g. Project, Department, Region).

* For each line, define the plans and their analytic accounts in `analytic_distribution`.
* Each analytic account has a `percentage` of the untaxed amount of the line. Percentages are whole numbers. In each plan, they must total 100.
* Use the endpoints with "(Multiple Analytic Plans)" in their name.
* Get the plan identifiers with [Get analytic plans](/api-reference/endpoints/accounting/get-analytic-plans) and the analytic account identifiers with [Get analytic accounts (multiple analytic plans)](/api-reference/endpoints/accounting/get-analytic-accounts-multiple-analytic-plans).

The mode depends on the connector setup.

## Where analytic accounts apply

Analytic accounts apply to the lines of [invoices](/unified-apis/accounting/concepts/invoice) and [journal entries](/unified-apis/accounting/concepts/journal-entry). [Financial entries](/unified-apis/accounting/concepts/financial-entry) have no analytic accounts.

## Example: purchase invoice with 2 plans

A supplier invoice has one line of 1,000 (untaxed) on the general ledger account `610000`. The cost is split across 2 plans:

* **Project**: 70% to `project_alpha`, 30% to `project_beta`
* **Department**: 40% to `sales`, 35% to `marketing`, 25% to `engineering`

Request body for [Create sale/purchase entry (multiple plans)](/api-reference/endpoints/accounting/create-salepurchase-entry-multiple-plans):

```json theme={null}
{
  "invoice_type": "supplier_invoice",
  "invoice_date": "2026-10-01",
  "due_date": "2026-10-31",
  "partner_id": "<supplier-id>",
  "currency": "EUR",
  "untaxed_amount": 1000,
  "tax_amount": 210,
  "total": 1210,
  "lines": [
    {
      "description": "Consulting services",
      "unit_price": 1000,
      "quantity": 1,
      "untaxed_amount": 1000,
      "tax_rate": 21,
      "tax_amount": 210,
      "total": 1210,
      "account_number": "610000",
      "tax_code": "<tax-code-id>",
      "analytic_distribution": [
        {
          "analytic_plan": "project",
          "analytic_accounts": [
            { "analytic_account": "project_alpha", "percentage": 70 },
            { "analytic_account": "project_beta", "percentage": 30 }
          ]
        },
        {
          "analytic_plan": "department",
          "analytic_accounts": [
            { "analytic_account": "sales", "percentage": 40 },
            { "analytic_account": "marketing", "percentage": 35 },
            { "analytic_account": "engineering", "percentage": 25 }
          ]
        }
      ]
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.