API Reference
Extratos

Get a statement (v1)

GET/extratos/v1/conta-corrente/agencia/{agencia}/conta/{conta}
Base URL: https://bb.mimicr.dev · provider: https://api.hm.bb.com.br

Given a branch code and a checking account number, returns the list of posted transactions and future entries, in the BB API standard. Requires the extrato-info scope.

Date rules: both dates or none (without dates, the last 30 days); a period of up to 31 days counted inclusively; end date up to today; start date up to 5 years back. If the account is wrong or has no entries in the period, it returns HTTP 404.

Balances come as lines of the statement itself: codigoHistorico 0 with Saldo Anterior (first line, dated the last day with movement before the period) and Saldo do dia (after the last entry of each day with movement), and codigoHistorico 999 with S A L D O (closing balance of the period). When the period reaches today, the statement ends with the current balance (SA) and available balance (SD) lines. Balance lines count in quantidadeTotalRegistro and in paging.

BB plans to shut v1 down on 20/11/2026; v2 is the current version. In Mimicr, the lines come from the sandbox's movements: Pix received, refunds, settled boletos and batch payments.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Headers

x-br-com-bb-ipa-mcitestestring

MCI of a test account, used only in homologação: 26968930 (branch 551, account 5087), 178961031 (1505/1348) or 704950857 (452/123873). Not needed for your sandbox's own account. In Mimicr, the test accounts answer 403 6646500 without this header; since they have no movements, they answer 404.

Example: "178961031"

Path parameters

agenciainteger<int32>required

Branch number, without check digit. Omit leading zeros (e.g. 0297 >> 297).

Example: 1505
containteger<int32>required

Checking account number, without check digit and without leading zeros.

Example: 1348

Query parameters

gw-dev-app-keystringrequired

Application key (developer_application_key) from the Developer Portal. In homologação, the homologação app key.

Example: "<app-key>"
numeroPaginaSolicitacaointeger<int32>

Requested page number. Defaults to page 1. A page past the last one answers 404.

quantidadeRegistroPaginaSolicitacaointeger<int32>

Records per page. Maximum page size: 200 records. Minimum: 50 records. Keep the page size of the first page request on the following pages. In Mimicr, out-of-range values are clamped to the limit.

dataInicioSolicitacaointeger<int32>

Start date as DDMMYYYY, without leading zeros (e.g. 1092026). It can go back at most 5 years from today. Without both dates, the statement of the last 30 days is returned. If the start date is sent, the end date is required.

Example: 19102026
dataFimSolicitacaointeger<int32>

End date as DDMMYYYY, without leading zeros. It cannot be after today. The period between start and end date is at most 31 days. If the end date is sent, the start date is required.

Example: 23102026

Responses

200Account statement (up to 200 entries per page).
numeroPaginaAtualinteger<int32>required

Current page number.

Example: 1
quantidadeRegistroPaginaAtualinteger<int32>required

Number of records in the current page.

Example: 18
numeroPaginaAnteriorinteger<int32>required

Previous page number. Zero when the current page is page 1.

Example: 0
numeroPaginaProximointeger<int32>required

Next page number. Zero when the current page is the last page of the statement.

Example: 0
quantidadeTotalPaginainteger<int32>required

Total number of pages of the statement.

Example: 1
quantidadeTotalRegistrointeger<int32>required

Total number of entries in the statement, balance lines included.

Example: 18
listaLancamentoobject[]required

Entries of the page (at most 200).

Show child attributes
indicadorTipoLancamentostring

Entry type: 1 posted entry, 2 future entry, 3 processing. The trailing balance lines use SA current balance, RA automatic redemption, LE extra card limit used, AP provisioned balance, SD available balance, LC contracted limit, LU used limit and LD available limit. In Mimicr, entries are always 1 and the trailing lines are SA and SD.

Example: "1"
dataLancamentointeger<int64>

Entry date as DDMMYYYY, without the day's leading zero (September 1, 2026 is 1092026).

Example: 23102026
dataMovimentointeger<int64>

Returned for entries with a retroactive date, as DDMMYYYY. 0 when absent.

Example: 0
codigoAgenciaOrigeminteger<int32>

Branch where the entry originated. 0 for centralized entries (Pix received, balances).

Example: 3301
numeroLoteinteger<int32>

Identifier of the system the entry came from.

Example: 13105
numeroDocumentointeger<int64>

Entry identifier number. Not unique: balances and fees may come with 0 or repeated.

Example: 102302
codigoHistoricointeger<int32>

Code of the entry's category at Banco do Brasil (histórico). 0 and 999 are balance lines. In Mimicr: 821 Pix received, 144 Pix or transfer sent, 393 TED, 624 boleto collection credit, 109 boleto payment, 61 tax payment, 976 returned TED.

Example: 821
textoDescricaoHistoricostring

Description of the entry (up to 25 characters).

Example: "Pix - Recebido"
valorLancamentonumber<double>

Amount of the entry in Reais (BRL), with two decimals. Always positive: the sign is in indicadorSinalLancamento.

Example: 90
indicadorSinalLancamentostring

Sign of the amount in valorLancamento: C credit, D debit (in v2, * marks a blocked amount).

CD*
Example: "C"
textoInformacaoComplementarstring

Complementary information about the entry (up to 38 characters, cut at the limit). For Pix: DD/MM HH:MM <document> <name>.

Example: "23/10 01:57 93492239293 VICTOR LOPES D"
numeroCpfCnpjContrapartidainteger<int64>

CPF or CNPJ of the entry's counterparty. Numeric: leading zeros are lost.

Example: 93492239293
indicadorTipoPessoaContrapartidastring

Counterparty person type: F individual, J company; empty when there is no counterparty.

Example: "F"
codigoBancoContrapartidainteger<int32>

COMPE code of the counterparty's bank.

Example: 1
codigoAgenciaContrapartidainteger<int32>

Counterparty branch.

Example: 0
numeroContaContrapartidastring

Counterparty account.

Example: ""
textoDvContaContrapartidastring

Check digit of the counterparty account.

Example: ""
400App key missing (gateway) or a date rule broken: 5746385 invalid date or only one of the two dates, 5738445 end date in the future, 5738481 start date after the end date, 5738678 period longer than 31 days, 6668872 start date more than 5 years ago.
Erro
errosobject[]required

List of errors; read erros[0].

Show child attributes
codigostring

Error code (e.g. 5738678). Empty on 404 and 500.

Example: "5738678"
versaostring

Message version.

Example: "1"
mensagemstring

Error message.

Example: "O período entre a data inicial e a data final é superior a 31 dias."
ocorrenciastring

Occurrence id, for BB support.

Example: "ICCE01792731467710"
ErroGateway
statusCodeinteger

HTTP status.

Example: 403
errorstring

Status text.

Example: "Forbidden"
messagestring

Gateway message.

Example: "Application key is not allowed to call this resource method"
attributesobject

Present on 401: {"error": "Bad Credentials"}.

Show child attributes
errorstring

Reason.

401Missing, invalid or expired token.
statusCodeinteger

HTTP status.

Example: 403
errorstring

Status text.

Example: "Forbidden"
messagestring

Gateway message.

Example: "Application key is not allowed to call this resource method"
attributesobject

Present on 401: {"error": "Bad Credentials"}.

Show child attributes
errorstring

Reason.

403Invalid app key, token without the extrato-info scope (Application key is not allowed to call this resource method) or an account that does not belong to the application (6646500 Recebemos sua solicitação, mas não é possível prosseguir.).
ErroGateway
statusCodeinteger

HTTP status.

Example: 403
errorstring

Status text.

Example: "Forbidden"
messagestring

Gateway message.

Example: "Application key is not allowed to call this resource method"
attributesobject

Present on 401: {"error": "Bad Credentials"}.

Show child attributes
errorstring

Reason.

Erro
errosobject[]required

List of errors; read erros[0].

Show child attributes
codigostring

Error code (e.g. 5738678). Empty on 404 and 500.

Example: "5738678"
versaostring

Message version.

Example: "1"
mensagemstring

Error message.

Example: "O período entre a data inicial e a data final é superior a 31 dias."
ocorrenciastring

Occurrence id, for BB support.

Example: "ICCE01792731467710"
404Account with no entries in the period, or a page past the last one.
errosobject[]required

List of errors; read erros[0].

Show child attributes
codigostring

Error code (e.g. 5738678). Empty on 404 and 500.

Example: "5738678"
versaostring

Message version.

Example: "1"
mensagemstring

Error message.

Example: "O período entre a data inicial e a data final é superior a 31 dias."
ocorrenciastring

Occurrence id, for BB support.

Example: "ICCE01792731467710"
500Internal error.
errosobject[]required

List of errors; read erros[0].

Show child attributes
codigostring

Error code (e.g. 5738678). Empty on 404 and 500.

Example: "5738678"
versaostring

Message version.

Example: "1"
mensagemstring

Error message.

Example: "O período entre a data inicial e a data final é superior a 31 dias."
ocorrenciastring

Occurrence id, for BB support.

Example: "ICCE01792731467710"