API Reference
Cobranças · Boleto with Pix

Get the boleto's Pix

GET/cobrancas/v2/boletos/{id}/pix
Base URL: https://bb.mimicr.dev · provider: https://api.hm.bb.com.br

Gets 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

idstringrequired

The boleto's nosso número: 20 digits, 000 + convênio (7) + control number (10). It is the numero returned on registration.

Example: "00031285570031443497"

Query parameters

gw-dev-app-keystringrequired

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.

Example: "<app-key>"
numeroConveniointegerrequired

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.

Example: 3128557

Responses

200The boleto's Pix.
idstring

Nosso número.

dataRegistroTituloCobrancastring
agenciaBeneficiariointeger
contaBeneficiariointeger
valorOriginalTituloCobrancanumber
validadeTituloCobrancastring

Last day the boleto can be paid.

pixobject

Pix payment data; filled once the QR is paid.

Show child attributes
valorRecebidonumber
timestampstring
chavestring
textoRetornostring
idInstituicaoPagadorstring
agenciaPagadorinteger
contaPagadorinteger
tipoPessoaPagadorinteger

1 individual, 2 company.

idPagadorstring

Payer's CPF or CNPJ.

qrCodeobject
Show child attributes
urlstring
txIdstring
emvstring
tipointeger

1 static, 2 dynamic.

400Convênio not informed (4010214).
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"
401Missing, invalid or expired token.
statusCodeinteger
Example: 401
errorstring
Example: "Unauthorized"
messagestring
Example: "Bad credentials"
attributesobject
Show child attributes
errorstring
Example: "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
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"
Escopo
statusCodeinteger
Example: 401
errorstring
Example: "Unauthorized"
messagestring
Example: "Bad credentials"
attributesobject
Show child attributes
errorstring
Example: "Bad Credentials"
404Non-existent boleto or boleto without Pix (4010673).
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"