Pular para o conteúdo principal
POST
Register a transactional account closure

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Corpo

application/json
account
string
obrigatório

The number of the account being closed.

Exemplo:

"0007654321"

accountId
string
obrigatório

The Midaz ledger account id of the caller (resolves the server-side ISPB).

Exemplo:

"019a1b2c-3d4e-7f60-8a9b-0c1d2e3f4a5b"

accountType
integer<int64>
obrigatório

The account type (0=Checking,1=Salary,2=Savings,3=Payment,4=PI).

Exemplo:

0

branch
string

The branch number of the account being closed.

Exemplo:

"0001"

ispb
string

The ISPB of the direct participant this operation acts as. This deployment may act as SEVERAL direct SPI participants - one ISPB each, each with its own customers and its own DICT credential - and this field is the only thing on the request that says which of them writes to the national directory. OPTIONAL while it acts as a single participant: omit it and that one acts. REQUIRED once it acts as several - omitted is 422 PIX-0127, and an ISPB this deployment does not act as is 422 PIX-0128. It is ROUTING DATA you supply and guarantee, exactly like payerIspb on a transaction: never a credential, never read from a header or a path, and it never widens what your token can reach. It also selects the DICT credential the call goes out on, so a key registered under the wrong one is declared to Bacen by the wrong institution. Send it as an absent key, not an empty string; an empty value is refused 400 PIX-0061.

Pattern: ^[0-9A-Z]{8}$
Exemplo:

"12345678"

Resposta

OK

deletedKeys
object[] | null
obrigatório

The per-key deletion outcomes.