API Reference
Cobranças · Boletos

List boletos

GET/cobrancas/v2/boletos
Base URL: https://bb.mimicr.dev · provider: https://api.hm.bb.com.br

Lists the beneficiary's open boletos (indicadorSituacao=A) or the written-off, protested and paid ones (B), 300 per page. Filters are combined; no result answers 404 4722678.

Scope: cobrancas.boletos-info.

Authorization

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

Query parameters

gw-dev-app-keystringrequired

Your application's key (developer_application_key) in the Developers Portal. In Mimicr, the sandbox's (GET /v1/bb). Without it the gateway answers 403.

Example: "<app-key>"
indicadorSituacaostringrequired

A open; B written off, protested or paid. Uppercase.

AB
Example: "A"
agenciaBeneficiariointegerrequired

Beneficiary branch, no check digit and no leading zeros. Homologação: 452.

Example: 452
contaBeneficiariointegerrequired

Beneficiary account, no check digit and no leading zeros (with zeros it answers 404 4010706). Homologação: 123873.

Example: 123873
carteiraConveniointeger

Carteira (17).

variacaoCarteiraConveniointeger

Portfolio variation (35).

modalidadeCobrancainteger

1 simples, 4 vinculada.

cnpjPagadorstring

Payer CNPJ without the 2 check digits; use with digitoCNPJPagador.

digitoCNPJPagadorstring

CNPJ check digits.

cpfPagadorinteger

Payer CPF without the 2 check digits; use with digitoCPFPagador. Together with a CNPJ it answers 3228018.

digitoCPFPagadorinteger

CPF check digits.

dataInicioVencimentostring

Due date from, dd.mm.aaaa.

dataFimVencimentostring

Due date until, dd.mm.aaaa (default: today).

dataInicioRegistrostring

Registered from, dd.mm.aaaa.

dataFimRegistrostring

Registered until, dd.mm.aaaa (default: today).

dataInicioMovimentostring

Movement (write-off, payment) from, dd.mm.aaaa.

dataFimMovimentostring

Movement until, dd.mm.aaaa (default: today).

codigoEstadoTituloCobrancainteger

State code (1 to 13 or 18).

boletoVencidostring

S overdue only; N not yet due only.

SN
indiceinteger

Page offset (the previous response's proximoIndice). Default 0.

Responses

200List of boletos.
indicadorContinuidadestring

S when more than 300 rows match; get the next page with indice = proximoIndice.

SN
quantidadeRegistrosinteger

Total boletos matching the filters.

proximoIndiceinteger

Next page offset (0 when there is none).

boletosobject[]
Show child attributes
numeroBoletoBBstring

Nosso número.

estadoTituloCobrancastring

State as text (NORMAL, LIQUIDADO, BAIXADO…).

dataRegistrostring

dd.mm.aaaa

dataVencimentostring

dd.mm.aaaa

dataMovimentostring

Date of write-off or payment; empty for open boletos.

valorOriginalnumber
valorAtualnumber
valorPagonumber
contratointeger
carteiraConveniointeger
variacaoCarteiraConveniointeger
codigoEstadoTituloCobrancainteger

State code: 1 normal, 6 paid, 7 written off, 18 partially paid, among others.

dataCreditostring

Credit date, when paid.

400Invalid parameters (2483236, 3228010, 3228018, dates).
errosobject[]required
Show child attributes
codigoMensagemstringrequired

Error message code.

Example: "4722678"
versaoMensagemstringrequired

Message version.

Example: "1"
textoMensagemstringrequired

Error text.

Example: "Não existem boletos a serem listados."
textoProvidenciastring

How to fix it.

Example: ""
codigoRetornostring

Program return code (4 digits).

Example: "1053"
401Missing, invalid or expired token.
statusCodeinteger
Example: 401
errorstring
Example: "Unauthorized"
messagestring
Example: "Bad credentials"
attributesobject
Show child attributes
errorstring
Example: "Bad Credentials"
403Missing or invalid application key (gateway shape), or a token without the operation's scope (Application key is not allowed to call this resource method).
Gateway
detailstring

Gateway error description.

Example: "A chave de aplicacao (AppKey) nao foi informada"
userHelpstring

How to solve it.

errorCodestring
Example: "403"
bbMsgobject
Show child attributes
categoriastring
Example: "SISTEMA"
tipostring
Example: "ERRO"
Escopo
statusCodeinteger
Example: 401
errorstring
Example: "Unauthorized"
messagestring
Example: "Bad credentials"
attributesobject
Show child attributes
errorstring
Example: "Bad Credentials"
404No boleto matches the filters (4722678) or the branch and account have no collection contract (4010706).
errosobject[]required
Show child attributes
codigoMensagemstringrequired

Error message code.

Example: "4722678"
versaoMensagemstringrequired

Message version.

Example: "1"
textoMensagemstringrequired

Error text.

Example: "Não existem boletos a serem listados."
textoProvidenciastring

How to fix it.

Example: ""
codigoRetornostring

Program return code (4 digits).

Example: "1053"