---
title: "Решить документы реестра группой"
method: POST
path: "/api/v1/finance/accounting-registry/decide"
tags: ["Finance exchange"]
---

# Решить документы реестра группой

`POST /api/v1/finance/accounting-registry/decide`

## Request

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

Групповое решение по строкам очереди бухгалтера: взять в учёт, отклонить с общей причиной, отметить «Не требует бухучёта». preview ничего не пишет и отвечает, сколько строк будет взято, их id и почему не взяты остальные; с all предпросмотр берёт строки filter. Само решение принимает только ids (до 1000). Каждая строка проходит те же проверки, что одиночная команда; отказы — в skipped с кодом причины.

## Headers

- `X-Tenant` string, required

## Request body

- object
  - `action` 'take' | 'reject' | 'not_required', required
  - `reason` string
  - `ids` UUID[]
  - `all` boolean
  - `preview` boolean
  - `filter` object
    - `business` string
    - `company_id` string
    - `status` string
    - `group` string
    - `document_kind` string
    - `number` string
    - `contact` string
    - `date_from` string
    - `date_to` string

## Response `200`

Итог группового решения

- FinanceAccountingBulkReport
  - `preview` boolean, required
  - `total` integer, required
  - `done` integer, required
  - `ids` UUID[], required
  - `skipped` object[], required
    - `entry_id` string, uuid, required
    - `document_number` string, required
    - `reason` 'already_decided' | 'mode_in_onec' | 'mode_off' | 'moved_by_ukd' | 'claim_not_sent' | 'choice_unusable' | 'not_found' | 'currency_not_sent' | 'warehouses_not_mapped' | 'basis_cancelled' | 'products_unmatched' | 'failed', required
    - `detail` string

## Other responses

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

## Changes

- **2026-12-04** `4741b4c1c2b7`: 1 warning
  - added the new `products_unmatched` enum value to the `skipped/items/reason` response property for the response status `200`
- **2026-12-04** `f0d7ee594cec`: 2 warning
  - added the new `basis_cancelled` enum value to the `skipped/items/reason` response property for the response status `200`
  - added the new `warehouses_not_mapped` enum value to the `skipped/items/reason` response property for the response status `200`
- **2026-12-03** `a20d1452964e`: 1 warning
  - added the new `currency_not_sent` enum value to the `skipped/items/reason` response property for the response status `200`
- **2026-12-03** `984cd4e05f0a`: 1 info
  - endpoint added

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