API Reference
Get the boleto's Pix
/cobrancas/v2/boletos/{id}/pixhttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brGets a boleto's Pix QR Code and, after payment via Pix, the payer's data.
Scope: cobrancas.boletos-info.
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>"Cobrança convênio of the boleto. In Mimicr, the sandbox's convênio and the homologação convênio 3128557 are accepted; any other answers 403 4007973.
3128557Responses
200The boleto's Pix.
Nosso número.
Last day the boleto can be paid.
Pix payment data; filled once the QR is paid.
Show child attributes
1 individual, 2 company.
Payer's CPF or CNPJ.
Show child attributes
1 static, 2 dynamic.
400Convênio not informed (4010214).
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"404Non-existent boleto or boleto without Pix (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"