Guides
Manage boletos
List, query, update and write off registered boletos, and track payments through the baixa operacional and movement returns.
After registration, a boleto is identified by its nosso número (20 digits), the numero of the registration response. Each operation has its own error shape; see Errors.
Boleto states
codigoEstadoTituloCobranca | Text | List |
|---|---|---|
| 1 | NORMAL | A (open) |
| 18 | PAGO PARCIALMENTE | A |
| 6 | LIQUIDADO | B |
| 7 | BAIXADO | B |
A paid or written-off boleto can be queried for up to 60 days.
List
indicadorSituacao, agenciaBeneficiario and contaBeneficiario are required. Branch and account go without check digit and without leading zeros; the sandbox account's and homologação's (452 / 123873) are accepted.
curl --request GET \ --url 'https://bb.mimicr.dev/cobrancas/v2/boletos?gw-dev-app-key=<app-key>&indicadorSituacao=B&agenciaBeneficiario=452&contaBeneficiario=123873' \ --header 'Authorization: Bearer <token>'
{
"indicadorContinuidade": "N",
"quantidadeRegistros": 2,
"proximoIndice": 0,
"boletos": [
{ "numeroBoletoBB": "00031285570031443497", "estadoTituloCobranca": "LIQUIDADO", "dataRegistro": "23.10.2026", "dataVencimento": "12.11.2026", "dataMovimento": "23.10.2026", "valorOriginal": 150, "valorAtual": 0, "valorPago": 145, "contrato": 19898773, "carteiraConvenio": 17, "variacaoCarteiraConvenio": 35, "codigoEstadoTituloCobranca": 6, "dataCredito": "24.10.2026" },
{ "numeroBoletoBB": "00031285570031443499", "estadoTituloCobranca": "BAIXADO", "dataRegistro": "23.10.2026", "dataVencimento": "22.11.2026", "dataMovimento": "23.10.2026", "valorOriginal": 150, "valorAtual": 0, "valorPago": 0, "contrato": 19898773, "carteiraConvenio": 17, "variacaoCarteiraConvenio": 35, "codigoEstadoTituloCobranca": 7, "dataCredito": "" }
]
}- 300 boletos per page. With
indicadorContinuidade: "S", repeat withindice=proximoIndice. - Filters by due date, registration, movement, payer, state and
boletoVencidoare combined. - An empty list answers 404 in the v2 shape:
{"erros":[{"codigoMensagem":"4722678","textoMensagem":"Não existem boletos a serem listados.", …}]}. Treat that 404 as "no results".
Reference: List boletos.
Query
numeroConvenio is required in the query.
curl --request GET \ --url 'https://bb.mimicr.dev/cobrancas/v2/boletos/00031285570031443497?gw-dev-app-key=<app-key>&numeroConvenio=3128557' \ --header 'Authorization: Bearer <token>'
The response is a flat object with 85 fields (codigoLinhaDigitavel, codigoEstadoTituloCobranca, valorAtualTituloCobranca, dataLimiteRecebimentoTitulo…). After payment, valorPagoSacado, valorJuroMoraRecebido, valorMultaRecebido, valorDescontoUtilizado, codigoTipoLiquidacao (4 = Pix), dataRecebimentoTitulo and dataCreditoLiquidacao are filled. Unknown boleto: 404 {"errors":[{"code":"4010673.1","message":"Boleto não localizado.","action":""}]}.
Reference: Get a boleto.
Update
PATCH takes one change per call: set one indicator to "S" and send its object. Missing indicators count as "N".
curl --request PATCH \
--url 'https://bb.mimicr.dev/cobrancas/v2/boletos/00031285570031443497?gw-dev-app-key=<app-key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"numeroConvenio": 3128557,
"indicadorNovaDataVencimento": "S",
"alteracaoData": { "novaDataVencimento": "22.11.2026" }
}'{ "numeroContratoCobranca": 19898773, "dataAtualizacao": "23.10.2026", "horarioAtualizacao": "01:57:24" }| Indicator | Object and fields |
|---|---|
indicadorNovaDataVencimento | alteracaoData.novaDataVencimento |
indicadorNovoValorNominal | alteracaoValor.novoValorNominal |
indicadorAtribuirDesconto | desconto.tipoPrimeiroDesconto, valorPrimeiroDesconto, percentualPrimeiroDesconto, dataPrimeiroDesconto (and Segundo, Terceiro) |
indicadorAlterarDesconto | alteracaoDesconto.novoValorPrimeiroDesconto, novaDataLimitePrimeiroDesconto… |
indicadorAlterarDataDesconto | alteracaoDataDesconto.novaDataLimitePrimeiroDesconto… |
indicadorIncluirAbatimento / indicadorAlterarAbatimento | abatimento.valorAbatimento / alteracaoAbatimento.novoValorAbatimento |
indicadorCobrarJuros / indicadorDispensarJuros | juros.tipoJuros, valorJuros, taxaJuros / none |
indicadorCobrarMulta / indicadorDispensarMulta | multa.tipoMulta, valorMulta, taxaMulta, dataInicioMulta / none |
indicadorProtestar, indicadorSustacaoProtesto, indicadorCancelarProtesto | protesto.quantidadeDiasProtesto / none |
indicadorNegativar | negativacao.quantidadeDiasNegativacao, tipoNegativacao, orgaoNegativador |
indicadorAlterarSeuNumero | alteracaoSeuNumero.codigoSeuNumero |
indicadorAlterarEnderecoPagador | alteracaoEndereco.enderecoPagador, bairroPagador, cidadePagador, UFPagador, CEPPagador |
indicadorAlterarPrazoBoletoVencido | alteracaoPrazo.quantidadeDiasAceite |
Due date and amount produce a new typeable line and barcode: query the boleto again after the change. Errors: no indicator (400 4010580), more than one (400 4010755), boleto not open (403 4007954).
At BB, changes and write-offs are only accepted 30 minutes after registration or the previous change. In Mimicr this lock is off by default; turn it on in the console or with boletoLock in the sandbox control and use the sandbox clock to skip the 30 minutes. With it on, the answer is 400 4923876 "Inconsistência Boleto em processamento".
Reference: Update a boleto.
Write off
curl --request POST \
--url 'https://bb.mimicr.dev/cobrancas/v2/boletos/00031285570031443499/baixar?gw-dev-app-key=<app-key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "numeroConvenio": 3128557 }'{ "numeroContratoCobranca": "19898773", "dataBaixa": "23.10.2026", "horarioBaixa": "01:57:25" }The boleto moves to 7 (BAIXADO, codigoTipoBaixaTitulo 11) and the linked Pix can no longer be paid. Boleto already written off, paid or unknown: 404 4923892. Reference: Write off a boleto.
Track payments
Three paths, from fastest to most complete:
- The baixa operacional webhook, sent at payment time.
- The baixa operacional query: enable it once on the convênio with Enable the baixa operacional query and list with List paid boletos (
dataInicioAgendamentoTituloanddataFimAgendamentoTitulorequired; each payment shows up for 5 days). Disabled, the query answers 4034010033. - The movement return (List movement returns), the CNAB file via API: entry (command 2), settlement (6), partial payment (73), write-off (9 and 10), changes (14, 31…), registration with Pix (61). In Mimicr it comes enabled and keeps 30 days.
curl --request PATCH \ --url 'https://bb.mimicr.dev/cobrancas/v2/convenios/3128557/ativar-consulta-baixa-operacional?gw-dev-app-key=<app-key>' \ --header 'Authorization: Bearer <token>'
{ "estadoPersonalizacao": "ATIVO", "dataHoraEstado": "2026-10-23-01.57.26.295000" }This PATCH requires the cobrancas.convenio-requisicao scope.