Guides
API principles

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

APIFormatExample
PixRFC 3339 with the Brasília offset and 2 fraction digits2026-10-23T01:57:13.32-03:00
Pix (cobv)ISO date"dataDeVencimento": "2026-11-12"
Cobrançasdd.mm.yyyy as text"dataVencimento": "12.11.2026"
Pagamentos em Loteddmmyyyy as an integer, no leading zero"dataTransferencia": 23102026, 1092026
Extratosddmmyyyy as an integer, no leading zerodataInicioSolicitacao=1092026

Details:

  • In Pix, the POST/PUT response carries hundredths (.32); GET queries truncate to .00. The inicio and fim list filters accept any RFC 3339 timestamp.
  • In Lote and Extratos, an integer cannot start with 0: September 1, 2026 is 1092026, not 01092026. 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

APIFormatExample
PixText with 2 decimals"original": "90.00"
CobrançasJSON number, minimal decimals"valorOriginal": 150, 109.9
Pagamentos em LoteJSON number"valorTransferencia": 400.75
ExtratosJSON 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

IdFormat
txid (Pix)26 to 35 alphanumeric characters; on POST /cob BB generates it
e2eid (Pix)32 characters, starts with E
Refund idUp 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

APIParametersPageEnd of the list
Pix (lists)paginacao.paginaAtual (from 0), paginacao.itensPorPagina (default 100, max 1000)parametros.paginacao.quantidadeDePaginasAn empty list answers 404 NaoEncontrado
Cobranças GET /boletosindice300 boletosindicadorContinuidade N; otherwise use proximoIndice
Cobranças movement returnnumeroRegistroPretendido, quantidadeRegistroPretendido (in the body)up to 10000indicadorContinuidade N, numeroUltimoRegistro
Lote: transfer batches and by beneficiaryindice300indice 0 in the response
Lote: returned paymentsindice100indice 0 in the response
Lote: entries by periodnumeroDaPosicaoDePesquisa500numeroDaposicaoDePesquisa 0 in the response
ExtratosnumeroPaginaSolicitacao (from 1), quantidadeRegistroPaginaSolicitacaov1: 50 to 200; v2: 50 to 120numeroPaginaProximo 0

Example, Pix:

bash
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.

bash
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

EndpointWindow
Pix lists (/cob, /cobv, /lotecobv, /loc, /pix, /pix-bb)inicio and fim required, up to 5 days (optional on /webhook)
Lote: returned paymentsup to 30 days
Extratosup 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.