---
title: "Получить план-факт бюджета"
method: GET
path: "/api/v1/finance/budgets/plan-fact"
tags: ["Finance reports"]
---

# Получить план-факт бюджета

`GET /api/v1/finance/budgets/plan-fact`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/finance/budgets/plan-fact`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - OAuth 2
    - Authorization code: `https://erp.akeda.ru/oauth2/authorize`
    - Token URL: `https://erp.akeda.ru/oauth2/token` scopes: `akeda:delegate`
  - HTTP bearer

План-факт периода бюджета вида, чей период содержит месяц: план утверждённой версии основного сценария, факт — из регистра ДДС тем же пересчётом в валюту учёта, что отчёт ДДС. Строки — месяц × статья × подразделение: план, факт — чистый поток статьи в её направлении (валовые поступления и выплаты — в fact_in и fact_out), отклонение «факт − план» и его процент от плана. Строки только с фактом тоже показываются. Факт БДР (pnl) — из главной книги, как отчёт ОПиУ. Утверждённого бюджета нет — план пустой, факт за календарный год.

## Query parameters

- `company_id` string, uuid, required
- `kind` 'cashflow' | 'pnl'
- `month` string, required
- `allocated` boolean

## Headers

- `X-Tenant` string, required

## Response `200`

План-факт бюджета

- FinanceBudgetPlanFact
  - `kind` 'cashflow' | 'pnl', required
  - `company_id` string, uuid, required
  - `period_from` string, required
  - `period_to` string, required
  - `approved_number` integer, required
  - `currency` string, required
  - `allocated` boolean: Строки после распределения сервисных ЦФО
  - `rows` FinanceBudgetPlanFactRow[], required
    - `month` string, required
    - `item_id` string, uuid, required
    - `item_name` string
    - `department_id` string, uuid
    - `department_name` string
    - `plan` string, required
    - `fact` string, required: Чистый поток статьи за месяц в её направлении: у статьи расходов — выплаты минус поступления, у доходов и статей без направления (депозиты) — поступления минус выплаты
    - `fact_in` string: Валовые поступления по статье за месяц
    - `fact_out` string: Валовые выплаты по статье за месяц
    - `deviation` string, required
    - `deviation_pct` string
    - `fx_deviation` string: Часть отклонения от разницы фактического курса платежей с плановым; пусто — валютных движений с плановым курсом нет
    - `needs_note` boolean
    - `note` string

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права
- `404`: Запись не найдена или не видима текущему пользователю
- `409`: Конфликт версии, идемпотентности или бизнес-состояния
- `503`: Внешний банк, справочник или контур подключений временно недоступен

## Changes

- **2026-11-07** `d2477ecdac9e`: 2 info
  - added the new optional `query` request parameter `allocated`
  - added the optional property `allocated` to the response with the `200` status
- **2026-11-05** `96e7cfc32b6b`: 1 info
  - added the optional property `rows/items/fx_deviation` to the response with the `200` status
- **2026-10-30** `43b97103ee8b`: 2 info
  - added the optional property `rows/items/fact_in` to the response with the `200` status
  - added the optional property `rows/items/fact_out` to the response with the `200` status
- **2026-10-27** `51ce6ace67a5`: 2 info
  - added the optional property `rows/items/needs_note` to the response with the `200` status
  - added the optional property `rows/items/note` to the response with the `200` status
- **2026-10-26** `109285d94ff3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/finance/budgets/plan-fact/get.md)

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) - [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/084f7bbc939c?raw)
