API Reference
Cancel the boleto's Pix
/cobrancas/v2/boletos/{id}/cancelar-pixhttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brCancels the Pix linked to an open boleto. The boleto can still be paid by barcode. The response carries the cancelled QR's data.
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
200Pix cancelled.
Show child attributes
The receiver's Pix key.
The boleto's Pix QR Code. Empty ("" in each field) when the boleto has no Pix.
Show child attributes
Pix payload URL (location), without scheme.
"qrcodepix.bb.mimicr.dev/pix/v2/cobv/69bd55c0-bf68-4ed8-b0a0-fe4450b03ae7"txid of the boleto's Pix charge: BOLETO + nosso número without the 3 zeros + DATA + registration date (ddmmaaaa).
"BOLETO31285570031443497DATA23102026"Pix copy-and-paste code (EMV BR Code).
400The boleto has no active Pix or is not open (4010074).
Show child attributes
Error message code (the API's error table).
"4874915"Message version.
"1"Error text.
"Nosso Número já incluído anteriormente."How to fix it; empty when BB gives no hint.
"Informar outro Nosso Número."BB's occurrence id (trace), not an HTTP code. N/A on generic errors.
"000000000000000000221327"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 not found (4010673).
Show child attributes
Error message code (the API's error table).
"4874915"Message version.
"1"Error text.
"Nosso Número já incluído anteriormente."How to fix it; empty when BB gives no hint.
"Informar outro Nosso Número."BB's occurrence id (trace), not an HTTP code. N/A on generic errors.
"000000000000000000221327"