API Reference
Homologação simulators

Pay a boleto (simulator)

POST/testes-portal-desenvolvedor/v1/boletos-cobranca/{linhaDigitavel}/pagar
Base URL: https://bb.mimicr.dev · provider: https://api.hm.bb.com.br

Homologaçã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

linhaDigitavelstringrequired

The boleto's typeable line (47 digits, no dots).

Example: "00190000090312855700031443497172516280000015000"

Query parameters

gw-app-keystring

The portal simulator's application key (95cad3f03fd9013a9d15005056825665) or your sandbox's.

Example: "95cad3f03fd9013a9d15005056825665"

Responses

200Boleto paid.
mensagemstring
Example: "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).
errosobject[]required
Show child attributes
codigostringrequired

Error message code (the API's error table).

Example: "4874915"
versaostringrequired

Message version.

Example: "1"
mensagemstringrequired

Error text.

Example: "Nosso Número já incluído anteriormente."
providenciastring

How to fix it; empty when BB gives no hint.

Example: "Informar outro Nosso Número."
ocorrenciastringrequired

BB's occurrence id (trace), not an HTTP code. N/A on generic errors.

Example: "000000000000000000221327"
403Missing or invalid application key.
detailstring

Gateway error description.

Example: "A chave de aplicacao (AppKey) nao foi informada"
userHelpstring

How to solve it.

errorCodestring
Example: "403"
bbMsgobject
Show child attributes
categoriastring
Example: "SISTEMA"
tipostring
Example: "ERRO"
404Non-existent boleto (4023795).
errosobject[]required
Show child attributes
codigostringrequired

Error message code (the API's error table).

Example: "4874915"
versaostringrequired

Message version.

Example: "1"
mensagemstringrequired

Error text.

Example: "Nosso Número já incluído anteriormente."
providenciastring

How to fix it; empty when BB gives no hint.

Example: "Informar outro Nosso Número."
ocorrenciastringrequired

BB's occurrence id (trace), not an HTTP code. N/A on generic errors.

Example: "000000000000000000221327"