---
title: "Взять документ реестра в учёт"
method: POST
path: "/api/v1/finance/accounting-registry/{id}/take"
tags: ["Finance exchange"]
---

# Взять документ реестра в учёт

`POST /api/v1/finance/accounting-registry/{id}/take`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/finance/accounting-registry/{id}/take`
- 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

Решение бухгалтера по новой строке реестра: статус sent с awaiting_send = true — «взят в учёт, ждёт отправки». Документ уходит в 1С ближайшим проходом отправщика или сразу командой «Отправить в 1С» (financeSendAccountingRegistryEntries); после отправки awaiting_send = false и появляется onec_ref. Работает только у базы в режиме «Бухгалтер в Акеде»; в режиме «Бухгалтер в 1С» и без режима — отказ 409.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Tenant` string, required

## Response `200`

Строка реестра после решения

- FinanceAccountingEntry
  - `id` string, uuid, required
  - `company_id` string, uuid, required
  - `company_name` string, required
  - `connection_id` string, uuid, required
  - `accounting_mode` '' | 'in_onec' | 'in_akeda', required: Где работает бухгалтер: пусто — как раньше, ничего не меняется; in_onec — «Бухгалтер в 1С»; in_akeda — «Бухгалтер в Акеде»
  - `document_id` string, uuid, required
  - `document_kind` string, required: Ключ вида документа ядра
  - `document_number` string, required
  - `document_date` string, date, required
  - `contact_inn` string, required
  - `contact_name` string, required
  - `amount` string, required: Сумма документа на момент постановки в реестр
  - `status` 'new' | 'sent' | 'accepted' | 'rejected' | 'not_required', required: new — новый, sent — отправлен, accepted — принят в учёт, rejected — отклонён, not_required — не требует бухучёта
  - `onec_number` string, required: Номер документа в 1С; ставит чтение статуса из 1С
  - `onec_ref` string, required: Ссылка документа в 1С; ставит отправка документа
  - `reject_reason` string, required: Причина отклонения — кнопкой реестра или комментарий бухгалтера в 1С
  - `decided_by` integer: Кто принял решение
  - `decided_by_name` string, required
  - `decided_at` string, date-time
  - `changed_after_accept` boolean, required: Документ изменён или отменён в Акеде после принятия в учёт; в 1С ничего не ушло
  - `onec_amount_mismatch` string, required: Сумма документа в 1С, когда она отличается от суммы Акеды; пусто — совпадает или не сверялась. Только пометка, в учёт не пишется
  - `file_exported_at` string, date-time: Когда строку последний раз выгрузили файлом формата ФНС (запасной канал «Загрузка из файла» в 1С). Статус строки выгрузка не меняет
  - `file_exported_by` integer: Кто выгрузил строку файлом
  - `file_exported_by_name` string, required
  - `awaiting_send` boolean: Взят в учёт, ждёт отправки: статус sent, а документ в 1С ещё не ушёл (ссылки 1С нет). «Отправлен» — только после фактической отправки
  - `send_error` string: Отказ 1С по документу строки, ждущей отправки: текст 1С или код отметки журнала обмена (finance.onec.*). Пусто — отказа нет
  - `send_attempts` integer: Сколько раз документ отправляли в 1С; без отказа 0
  - `send_next_at` string, date-time: Когда обмен повторит отправку сам; только у взятого в учёт с отказом 1С
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

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

## Changes

- **2026-12-04** `f0d7ee594cec`: 2 info
  - added the optional property `send_attempts` to the response with the `200` status
  - added the optional property `send_next_at` to the response with the `200` status
- **2026-11-09** `eabb03b611b3`: 2 info
  - added the optional property `awaiting_send` to the response with the `200` status
  - added the optional property `send_error` to the response with the `200` status
- **2026-11-08** `05a92b0d4409`: 4 info
  - added the optional property `file_exported_at` to the response with the `200` status
  - added the optional property `file_exported_by` to the response with the `200` status
  - added the required property `file_exported_by_name` to the response with the `200` status
  - added the required property `onec_amount_mismatch` to the response with the `200` status
- **2026-11-07** `d2477ecdac9e`: 1 info
  - added the required property `changed_after_accept` to the response with the `200` status
- **2026-11-06** `3ba1ee6fc904`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/finance/accounting-registry/:id/take/post.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)
