API Reference
Get a boleto
/cobrancas/v2/boletos/{id}https://bb.mimicr.dev · provider: https://api.hm.bb.com.brReturns all the data of a boleto: state, amounts, discounts, interest, fine, payer and, after payment, the settlement data. Paid or written-off boletos can be queried for up to 60 days.
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
200Boleto detail.
Typeable line (47 digits).
Payment channel (3 digits); 161 is Pix.
State: 1 NORMAL, 6 LIQUIDADO, 7 BAIXADO, 18 PAGO PARCIALMENTE, among others.
Current amount in reais (zero once paid or written off).
Last day the boleto can be paid.
Barcode (44 digits).
Amount paid by the payer.
Settlement type: 1 teller, 2 via compe, 4 Pix, among others.
Date credited to the account, once paid.
Payment date.
Write-off type: 11 ordered by the client on-line (the API), 13 deadline expiry, among others.
400Convênio not informed (4010214).
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"403Convênio of another client (4007973), or key, token or scope rejected by the gateway.
Show child attributes
Code as <codigo>.<versao>.
"4010673.1"Error text.
"Boleto não localizado."How to fix it.
""404Boleto not found (4010673).
Show child attributes
Code as <codigo>.<versao>.
"4010673.1"Error text.
"Boleto não localizado."How to fix it.
""