API Reference
Write off a boleto
/cobrancas/v2/boletos/{id}/baixarhttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brWrites off (cancels) an open boleto. It moves to state 7 (BAIXADO), leaves list A and joins B; the linked Pix can no longer be paid. In Mimicr, BB's 30-minute lock applies here too when turned on.
Scope: cobrancas.boletos-requisicao.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
The boleto's nosso número: 20 digits, 000 + convênio (7) + control number (10). It is the numero returned on registration.
"00031285570031443497"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>"Body
application/jsonThe boleto's convênio.
3128557Responses
200Boleto written off.
dd.mm.aaaa
hh:mm:ss
400Convênio not informed or the 30-minute lock (4923876).
Show child attributes
Code as <codigo>.<versao>.
"4010673.1"Error text.
"Boleto não localizado."How to fix it.
""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"404Boleto already written off, paid or non-existent (4923892).
Show child attributes
Code as <codigo>.<versao>.
"4010673.1"Error text.
"Boleto não localizado."How to fix it.
""