API Reference
List boletos
/cobrancas/v2/boletoshttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brLists 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
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.
"<app-key>"A open; B written off, protested or paid. Uppercase.
AB"A"Beneficiary branch, no check digit and no leading zeros. Homologação: 452.
452Beneficiary account, no check digit and no leading zeros (with zeros it answers 404 4010706). Homologação: 123873.
123873Carteira (17).
Portfolio variation (35).
1 simples, 4 vinculada.
Payer CNPJ without the 2 check digits; use with digitoCNPJPagador.
CNPJ check digits.
Payer CPF without the 2 check digits; use with digitoCPFPagador. Together with a CNPJ it answers 3228018.
CPF check digits.
Due date from, dd.mm.aaaa.
Due date until, dd.mm.aaaa (default: today).
Registered from, dd.mm.aaaa.
Registered until, dd.mm.aaaa (default: today).
Movement (write-off, payment) from, dd.mm.aaaa.
Movement until, dd.mm.aaaa (default: today).
State code (1 to 13 or 18).
S overdue only; N not yet due only.
SNPage offset (the previous response's proximoIndice). Default 0.
Responses
200List of boletos.
S when more than 300 rows match; get the next page with indice = proximoIndice.
SNTotal boletos matching the filters.
Next page offset (0 when there is none).
Show child attributes
Nosso número.
State as text (NORMAL, LIQUIDADO, BAIXADO…).
dd.mm.aaaa
dd.mm.aaaa
Date of write-off or payment; empty for open boletos.
State code: 1 normal, 6 paid, 7 written off, 18 partially paid, among others.
Credit date, when paid.
400Invalid parameters (2483236, 3228010, 3228018, dates).
Show child attributes
Error message code.
"4722678"Message version.
"1"Error text.
"Não existem boletos a serem listados."How to fix it.
""Program return code (4 digits).
"1053"401Missing, invalid or expired token.
401"Unauthorized""Bad credentials"Show child attributes
"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
Gateway error description.
"A chave de aplicacao (AppKey) nao foi informada"How to solve it.
"403"Show child attributes
"SISTEMA""ERRO"Escopo
401"Unauthorized""Bad credentials"Show child attributes
"Bad Credentials"404No boleto matches the filters (4722678) or the branch and account have no collection contract (4010706).
Show child attributes
Error message code.
"4722678"Message version.
"1"Error text.
"Não existem boletos a serem listados."How to fix it.
""Program return code (4 digits).
"1053"