provider'modulbank' | 'tbank' | 'tochka' | 'alfa' | 'sber' required
provider_namestring required
display_namestring required
company_namestring required
companystring uuid nullable required
company_directory_namestring required
company_innstring required
status'connected' | 'paused' | 'error' | 'reauth_required' | 'awaiting_consent' | 'disconnected' required
status_namestring required
auth_kind'token' | 'client_credentials' | 'oauth' | 'oauth_mtls' required
has_credentialsboolean required
Только признак; сохранённый секрет никогда не возвращается
external_customer_idstring required
granted_by_user_idinteger nullable required
granted_by_namestring required
granted_atstring date-time nullable required
import_depth_daysinteger required
overlap_daysinteger required
last_sync_atstring date-time nullable required
last_sync_statusstring required
last_errorstring required
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.
last_error_code'' | 'finance.connector.internal' | 'finance.connector.provider_unauthorized' | 'finance.connector.provider_rate_limited' | 'finance.connector.provider_declined' | 'finance.connector.consent_required' required
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.
accounts_totalinteger required
accounts_linkedinteger required
can_deleteboolean required
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.
created_atstring date-time required
updated_atstring date-time required