API Reference
Homologação simulators

Pay a Pix QR Code (simulator)

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

BB's homologação payment simulator: pays the cob or cobv of the given Pix Copia e Cola and answers {"code": 1,"texto": "<endToEndId>"}. No OAuth; only the application key (BB asks for the portal's public key, 95cad3f03fd9013a9d15005056825665; Mimicr also accepts your sandbox's).

The payer is always VICTOR LOPES DORNELES (CPF 93492239293), and a cobv is paid at its original amount on the day, even with a future due date. In homologação BB sends no webhook for these payments.

In Mimicr, the payment is immediate and the key's webhook is sent, unless the noWebhooksOnSimulatedPayments homologation toggle is on. A charge already paid, expired or unknown answers 500 with the reason in CURIO-ERRO-MENSAGEM.

Authorization

Public route, no token.

Query parameters

gw-dev-app-keystringrequired

Application key. BB documents the public key 95cad3f03fd9013a9d15005056825665; gw-app-key is accepted too.

Example: "<app-key>"

Body

application/json
pixstringrequired

The Pix Copia e Cola (pixCopiaECola) of the cob or cobv to pay.

Responses

200Simulated payment. texto is the Pix endToEndId.
codeinteger
Example: 1
textostring

endToEndId of the Pix created.

400No application key.
statusCodeinteger
errorstring
messagestring
403Invalid application key.
detailstring

Message, without accents.

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

Guidance to fix it.

errorCodestring
Example: "403"
bbMsgobject
Show child attributes
categoriastring
Example: "SISTEMA"
tipostring
Example: "ERRO"
422Empty copia e cola (code 421, "Requisição inválida").
errorsobject[]
Show child attributes
codestring
messagestring
variaveisMonitoradasobject

Error details; CURIO-ERRO-MENSAGEM carries the reason.

500Copia e cola invalid, or of an unknown, expired or already paid charge (ERRO_SISTEMA).
errorsobject[]
Show child attributes
codestring
messagestring
variaveisMonitoradasobject

Error details; CURIO-ERRO-MENSAGEM carries the reason.