Skip to main content
PUT
Write the institution's connector credentials

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

institutionId
string
obrigatório

The institution's unique identifier (UUID).

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

Corpo

application/json
credentials
object
obrigatório

The connector's credentials under their snake_case allowlisted names (ledger_client_id, ledger_client_secret, crm_client_id, crm_client_secret). Sealed under a fresh data key before the row is written and never echoed. Rotating does NOT revoke the previous credential upstream.

Exemplo:

Resposta

OK

connectorType
string
obrigatório

The outbound connector type for this institution.

Exemplo:

"midaz"

createdAt
string
obrigatório

RFC 3339 creation timestamp (UTC).

Exemplo:

"2024-01-15T10:30:00Z"

enabled
boolean
obrigatório

Whether the connector configuration is active.

Exemplo:

true

institutionCode
string
obrigatório

The institution's BACEN CNPJ (8 digits) for return-file headers and file header validation.

Exemplo:

"12345678"

institutionId
string
obrigatório

The institution's unique identifier (UUID).

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

updatedAt
string
obrigatório

RFC 3339 last-update timestamp (UTC).

Exemplo:

"2024-01-15T12:00:00Z"

accountFormat
string

The regular expression the institution declared for the account number of a court-indicated target; omitted when none is declared.

Exemplo:

"^[0-9]{1,12}$"

branchFormat
string

The regular expression the institution declared for the branch (agência) number of a court-indicated target; omitted when none is declared.

Exemplo:

"^[0-9]{4}$"

connectorMetadata
any

Connector-specific configuration bag. The non-secret connector-owned keys (baseUrl, authAddress, crmBaseUrl, crmMode, organizations[], blockableBalances, blockableAccountTypes, salaryAccountTypes) are preserved verbatim; secret-bearing keys — the whole credentials subtree included — are removed and never echoed. blockableBalances carries the LEDGER's balance-key values — for Midaz, balanceKey (default/overdraft/a client-registered key), not the available/onHold fields of a balance.

Exemplo:
connectorMetadataValid
boolean
read-only

Present and false only when the stored connector metadata cannot be parsed by its connector; absent otherwise. The offending value is never echoed.

Exemplo:

false

effectiveCrmMode
enum<string>
read-only

The CRM surface this institution resolves to (legacy|embedded): its own crmMode override when the connector metadata names one, the service-wide default otherwise. Derived and read-only; omitted when the connector metadata cannot be parsed.

Opções disponíveis:
legacy,
embedded
Exemplo:

"legacy"

retryPolicyConfig
any

Operational retry policy (backoff/attempts) as arbitrary JSON.

Exemplo: