Guides
Formats and paging
Each BB API has its own date, amount and paging format. See what to send and what to expect in each one.
BB's APIs were built by different teams and share no conventions. The same date can be 2026-10-23, 23.10.2026 or 23102026 depending on the API. This page sums up the formats Mimicr accepts and returns.
Dates
| API | Format | Example |
|---|---|---|
| Pix | RFC 3339 with the Brasília offset and 2 fraction digits | 2026-10-23T01:57:13.32-03:00 |
| Pix (cobv) | ISO date | "dataDeVencimento": "2026-11-12" |
| Cobranças | dd.mm.yyyy as text | "dataVencimento": "12.11.2026" |
| Pagamentos em Lote | ddmmyyyy as an integer, no leading zero | "dataTransferencia": 23102026, 1092026 |
| Extratos | ddmmyyyy as an integer, no leading zero | dataInicioSolicitacao=1092026 |
Details:
- In Pix, the
POST/PUTresponse carries hundredths (.32);GETqueries truncate to.00. Theinicioandfimlist filters accept any RFC 3339 timestamp. - In Lote and Extratos, an integer cannot start with
0: September 1, 2026 is1092026, not01092026. Mimicr accepts both as input, but always returns the form without the zero. - All dates are in Brasília time. When you advance the sandbox clock, "today" moves with it.
Amounts
| API | Format | Example |
|---|---|---|
| Pix | Text with 2 decimals | "original": "90.00" |
| Cobranças | JSON number, minimal decimals | "valorOriginal": 150, 109.9 |
| Pagamentos em Lote | JSON number | "valorTransferencia": 400.75 |
| Extratos | JSON number, always positive | "valorLancamento": 90 with indicadorSinalLancamento |
In Pix, the amount must match \d{1,10}\.\d{2}: "90" or "90.0" answer 400. In the other APIs, don't count on fixed decimals in the JSON; convert to cents with rounding.
Identifiers
| Id | Format |
|---|---|
txid (Pix) | 26 to 35 alphanumeric characters; on POST /cob BB generates it |
e2eid (Pix) | 32 characters, starts with E |
Refund id | Up to 35 alphanumerics, chosen by you |
| Nosso número (Cobranças) | 20 digits: 000 + convênio (7) + your number (10) |
numeroRequisicao (Lote) | Integer from 1 to 9999999, chosen by you and unique per contract |
| Payment id (Lote) | 17 digits, as a JSON number |
Pagamentos em Lote payment ids have 17 digits (90346625218725001) and arrive as a JSON number, above the exact range of a double (2^53). In JavaScript, JSON.parse rounds the last digit. Use a parser that keeps big integers (for example json-bigint, or JSON.parse with a reviver and context.source on Node 21+) or read the id as text before converting it.
Paging
| API | Parameters | Page | End of the list |
|---|---|---|---|
| Pix (lists) | paginacao.paginaAtual (from 0), paginacao.itensPorPagina (default 100, max 1000) | parametros.paginacao.quantidadeDePaginas | An empty list answers 404 NaoEncontrado |
Cobranças GET /boletos | indice | 300 boletos | indicadorContinuidade N; otherwise use proximoIndice |
| Cobranças movement return | numeroRegistroPretendido, quantidadeRegistroPretendido (in the body) | up to 10000 | indicadorContinuidade N, numeroUltimoRegistro |
| Lote: transfer batches and by beneficiary | indice | 300 | indice 0 in the response |
| Lote: returned payments | indice | 100 | indice 0 in the response |
| Lote: entries by period | numeroDaPosicaoDePesquisa | 500 | numeroDaposicaoDePesquisa 0 in the response |
| Extratos | numeroPaginaSolicitacao (from 1), quantidadeRegistroPaginaSolicitacao | v1: 50 to 200; v2: 50 to 120 | numeroPaginaProximo 0 |
Example, Pix:
curl --request GET \ --url 'https://api-pix.bb.mimicr.dev/pix/v2/cob?gw-dev-app-key=<app-key>&inicio=2026-10-20T00:00:00-03:00&fim=2026-10-24T23:59:59-03:00&paginacao.paginaAtual=0&paginacao.itensPorPagina=50' \ --header 'Authorization: Bearer <token>'
Example, Cobranças: repeat with indice=<proximoIndice> until indicadorContinuidade is N.
curl --request GET \ --url 'https://bb.mimicr.dev/cobrancas/v2/boletos?gw-dev-app-key=<app-key>&indicadorSituacao=A&agenciaBeneficiario=452&contaBeneficiario=123873&indice=0' \ --header 'Authorization: Bearer <token>'
Query windows
| Endpoint | Window |
|---|---|
Pix lists (/cob, /cobv, /lotecobv, /loc, /pix, /pix-bb) | inicio and fim required, up to 5 days (optional on /webhook) |
| Lote: returned payments | up to 30 days |
| Extratos | up to 31 days, at most 5 years back; without dates, the last 30 days |
Outside the window, each API answers 400 in its own format (see Errors).
Headers
Every API call carries ?gw-dev-app-key=<app-key> in the query and Authorization: Bearer <token>. JSON bodies go with Content-Type: application/json; the token request goes as application/x-www-form-urlencoded. Backend responses carry x-request-id; error responses carry x-bw-uuid.