Изменить подключение или его состояние
Changed onПустой credential не стирает сохранённый секрет; явный null у company отвязывает юрлицо. Статус disconnected отключает подключение, сохраняя историю.
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or API key in header X-Api-Key
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
Path parameters
Headers
Slug выбранного кабинета; кабинет не является юрлицом
Request body
ГГГГ-ММ-ДД: дата учёта новых счетов; пусто — ручная привязка. Существующие карточки не меняются
Непустой новый секрет; пустая строка сохраняет прежний
Платежи через подключение: false — разрешены (если банк принимает их по API), true — только выписки
Response
Обновлённое подключение без секрета
ГГГГ-ММ-ДД: дата учёта новых счетов; пусто — ручная привязка. Существующие карточки не меняются
Только признак; сохранённый секрет никогда не возвращается
Человек выключил платежи через подключение — только выписки
Банк подключения принимает платёжные поручения по API
До какого момента действует ключ приложения банка (client_secret); Акеда меняет его сама за неделю до срока. Пусто — срок неизвестен или у банка такого ключа нет
Единый статус подключения банка (ERP-2404): одно значение для списка банков, выписки и «Юрлиц и счетов».
The provider's technical reply, verbatim — material for an investigation, not a message for the cabinet screen: it may carry machine keys such as "invalid_client". The portal operator reads it in full on the bank connectors page, while the cabinet card renders last_error_code instead. Empty when the failure was ours: an internal cause never reaches this field, it is logged and named by last_error_code instead.
Machine code of the last failure, translated by the client. Present because the text is stored: it is written in whatever locale the background sync happened to run in, and only a finite code can be rendered in the reader's language.
True only for an abandoned connection attempt: no accounts returned by the bank and no sync run at all. Everything else is the origin trail of the imported operations and is never deleted — both links cascade — so such a connection is disconnected instead.
Changes
- info
added the optional property
healthto the response with the status
- info
- info
added the new optional request property
auto_accounts_since - info
added the optional property
auto_accounts_sinceto the response with the status
- info