Finance exchange

Подключить базу 1С юрлица

Заводит подключение базы 1С:Бухгалтерии юрлица. Пароль пользователя 1С вводит человек на экране подключения: через MCP пароль не передаётся, без него Акеда к базе не обращается. С паролем доступ проверяется сразу.

post/api/v1/finance/exchange/onec/connections

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/finance/exchange/onec/connections
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)
    • HTTP bearer

Headers

X-Tenantstring required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

company_idstring uuid required
base_urlstring required

Адрес публикации базы 1С: https://сервер/ИмяБазы

usernamestring required
passwordstring password

Пароль пользователя 1С; вводится только на экране подключения, через MCP не передаётся

format_versionstring
object_settingsFinanceOneCObjectSettings

Настройки видов данных сверх галочки: ключ — вид из objects

documents_sincestring date
send_every_minutesinteger
receive_daily_atstring
errors_owner_user_idinteger
receive_enabledboolean

Включить приём из 1С по расписанию; не передан — оставить как есть, у нового подключения — выключен

Response

Созданное подключение без пароля

idstring uuid required
company_idstring uuid required
company_namestring required
base_urlstring required

Адрес публикации базы 1С без хвоста /ws

usernamestring required
has_passwordboolean required
format_versionstring required

Версия EnterpriseData; пусто — старшая, которую назовёт база

node_codestring uuid required
node_prefixstring required
base_node_codestring required
base_namestring required
base_config_versionstring required
setup_step'access' | 'node' | 'wizard' | 'ready' required

access — доступ не проверен; node — узла Акеды в базе нет; wizard — бухгалтер не прошёл мастер в 1С; ready — обмен идёт

sent_nointeger required
received_nointeger required
object_settingsFinanceOneCObjectSettings

Настройки видов данных сверх галочки: ключ — вид из objects

documents_sincestring date
send_every_minutesinteger required
receive_daily_atstring required
errors_owner_user_idinteger
last_session_atstring date-time
last_received_atstring date-time

Последний приём из 1С

receive_enabledboolean

Приём из 1С по расписанию включён: он пишет в учёт, поэтому по умолчанию выключен

last_errorstring
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 2 revisions of this API.