---
title: "Показать декларации 1С к загрузке"
method: GET
path: "/api/v1/finance/exchange/onec/connections/{id}/customs-declarations"
tags: ["Finance exchange"]
---

# Показать декларации 1С к загрузке

`GET /api/v1/finance/exchange/onec/connections/{id}/customs-declarations`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/finance/exchange/onec/connections/{id}/customs-declarations`
- 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

Предпросмотр загрузки из 1С деклараций импорта и экспорта и полученных заявлений о ввозе: что добавится, обновится, не изменится или не загрузится и почему. Одинаковый номер не двоится. Только чтение 1С, ничего не пишется.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Tenant` string, required

## Response `200`

Предпросмотр загрузки

- FinanceCustomsPreview
  - `results` FinanceCustomsPlanRow[], required
    - `ref` string, required: Ссылка документа 1С
    - `version` string, required: Версия документа 1С
    - `onec_number` string, required: Номер документа 1С
    - `customs_number` string, required: Регистрационный номер декларации
    - `declared_on` string, required: Дата декларации
    - `entered_on` string, required: Дата документа 1С
    - `live` boolean, required: Действует; false — отменена в 1С
    - `line_count` integer, required: Число товаров
    - `direction` 'import' | 'export', required: Направление
    - `kind` 'customs' | 'application', required: Вид: customs — декларация на товары, application — заявление о ввозе
    - `action` 'new' | 'update' | 'same' | 'skip', required
    - `reason` 'number' | 'duplicate' | 'cancelled' | 'replaced' | 'direction' | 'contact': Почему не загружается
  - `total` integer, required: Сколько строк в ответе: список отдаётся целиком, без страниц

## Other responses

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

## Changes

- **2026-12-04** `4741b4c1c2b7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/finance/exchange/onec/connections/:id/customs-declarations/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)
