API Reference
Pay a boleto (simulator)
/testes-portal-desenvolvedor/v1/boletos-cobranca/{linhaDigitavel}/pagarhttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brHomologação payment simulator: pays a registered boleto by its typeable line (47 digits; the 44-digit barcode is also accepted). A boleto with a future due date is paid on the request date. No Authorization; the key goes in gw-app-key or gw-dev-app-key.
In Mimicr, BB's fixed portal key (95cad3f03fd9013a9d15005056825665) and your sandbox's key are accepted, GET and POST both work (other methods answer 404 "Api not found"), and the payment settles the boleto (state 6), credits the account and sends the baixa operacional webhook, unless the sandbox control turns off webhooks on simulated payments (noWebhooksOnSimulatedPayments), as at BB.
Authorization
Public route, no token.
Path parameters
The boleto's typeable line (47 digits, no dots).
"00190000090312855700031443497172516280000015000"Query parameters
The portal simulator's application key (95cad3f03fd9013a9d15005056825665) or your sandbox's.
"95cad3f03fd9013a9d15005056825665"Responses
200Boleto paid.
"Boleto pago com sucesso."400Invalid typeable line (3295618) or a boleto that cannot be paid: already paid, written off or past its limit date (4007954).
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"403Missing or invalid application key.
Gateway error description.
"A chave de aplicacao (AppKey) nao foi informada"How to solve it.
"403"Show child attributes
"SISTEMA""ERRO"404Non-existent boleto (4023795).
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"