API Reference
Get a statement (v1)
/extratos/v1/conta-corrente/agencia/{agencia}/conta/{conta}https://bb.mimicr.dev · provider: https://api.hm.bb.com.brGiven 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
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.
"178961031"Path parameters
Branch number, without check digit. Omit leading zeros (e.g. 0297 >> 297).
1505Checking account number, without check digit and without leading zeros.
1348Query parameters
Application key (developer_application_key) from the Developer Portal. In homologação, the homologação app key.
"<app-key>"Requested page number. Defaults to page 1. A page past the last one answers 404.
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.
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.
19102026End 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.
23102026Responses
200Account statement (up to 200 entries per page).
Current page number.
1Number of records in the current page.
18Previous page number. Zero when the current page is page 1.
0Next page number. Zero when the current page is the last page of the statement.
0Total number of pages of the statement.
1Total number of entries in the statement, balance lines included.
18Entries of the page (at most 200).
Show child attributes
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.
"1"Entry date as DDMMYYYY, without the day's leading zero (September 1, 2026 is 1092026).
23102026Returned for entries with a retroactive date, as DDMMYYYY. 0 when absent.
0Branch where the entry originated. 0 for centralized entries (Pix received, balances).
3301Identifier of the system the entry came from.
13105Entry identifier number. Not unique: balances and fees may come with 0 or repeated.
102302Code 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.
821Description of the entry (up to 25 characters).
"Pix - Recebido"Amount of the entry in Reais (BRL), with two decimals. Always positive: the sign is in indicadorSinalLancamento.
90Sign of the amount in valorLancamento: C credit, D debit (in v2, * marks a blocked amount).
CD*"C"Complementary information about the entry (up to 38 characters, cut at the limit). For Pix: DD/MM HH:MM <document> <name>.
"23/10 01:57 93492239293 VICTOR LOPES D"CPF or CNPJ of the entry's counterparty. Numeric: leading zeros are lost.
93492239293Counterparty person type: F individual, J company; empty when there is no counterparty.
"F"COMPE code of the counterparty's bank.
1Counterparty branch.
0Counterparty account.
""Check digit of the counterparty account.
""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
List of errors; read erros[0].
Show child attributes
Error code (e.g. 5738678). Empty on 404 and 500.
"5738678"Message version.
"1"Error message.
"O período entre a data inicial e a data final é superior a 31 dias."Occurrence id, for BB support.
"ICCE01792731467710"ErroGateway
HTTP status.
403Status text.
"Forbidden"Gateway message.
"Application key is not allowed to call this resource method"Present on 401: {"error": "Bad Credentials"}.
Show child attributes
Reason.
401Missing, invalid or expired token.
HTTP status.
403Status text.
"Forbidden"Gateway message.
"Application key is not allowed to call this resource method"Present on 401: {"error": "Bad Credentials"}.
Show child attributes
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
HTTP status.
403Status text.
"Forbidden"Gateway message.
"Application key is not allowed to call this resource method"Present on 401: {"error": "Bad Credentials"}.
Show child attributes
Reason.
Erro
List of errors; read erros[0].
Show child attributes
Error code (e.g. 5738678). Empty on 404 and 500.
"5738678"Message version.
"1"Error message.
"O período entre a data inicial e a data final é superior a 31 dias."Occurrence id, for BB support.
"ICCE01792731467710"404Account with no entries in the period, or a page past the last one.
List of errors; read erros[0].
Show child attributes
Error code (e.g. 5738678). Empty on 404 and 500.
"5738678"Message version.
"1"Error message.
"O período entre a data inicial e a data final é superior a 31 dias."Occurrence id, for BB support.
"ICCE01792731467710"500Internal error.
List of errors; read erros[0].
Show child attributes
Error code (e.g. 5738678). Empty on 404 and 500.
"5738678"Message version.
"1"Error message.
"O período entre a data inicial e a data final é superior a 31 dias."Occurrence id, for BB support.
"ICCE01792731467710"