API Reference
Lote · Boletos and barcode slips

Get a boleto payment

GET/pagamentos-lote/v1/boletos/{id}
Base URL: https://bb.mimicr.dev · provider: https://api.hm.bb.com.br

Details a boleto payment by id.

OAuth scope: pagamentos-lote.pagamentos-info or pagamentos-lote.boletos-info.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

idinteger<int64>required

Payment id (17 digits).

Example: 90001210731030000

Query parameters

gw-dev-app-keystringrequired

Application key (developer_application_key) from the BB Developers Portal. Required on every call.

agenciainteger

Debit agência. Optional.

contaCorrenteinteger<int64>

Debit current account. Optional.

digitoVerificadorstring

Check digit of the debit account. Optional.

Responses

200Success.
idinteger<int64>

Payment id generated by BB: a 17-digit integer (from 90000000000000001 to 99999999999999999). Read it as int64 or string, never as a double.

Example: 90001212731030000
estadoPagamentostring

Payment state: CONSISTENTE, INCONSISTENTE, PENDENTE (release pending), AGENDADO, AGUARDANDO DEBITO, DEBITADO, PAGO, REJEITADO, DEVOLVIDO (paid and refused by the receiver), CANCELADO or BLOQUEADO (debit not made, for example for lack of balance).

CONSISTENTEINCONSISTENTEPENDENTEAGENDADOAGUARDANDO DEBITODEBITADOPAGOREJEITADODEVOLVIDOCANCELADOBLOQUEADO
Example: "PAGO"
tipoCreditointeger<int32>

Credit method: 30 BB boleto, 31 other banks' boleto.

Example: 31
agenciaDebitointeger<int32>

Debit agência, 4 digits without the check digit.

Example: 1607
contaCorrenteDebitointeger<int64>

Debit current account, without the check digit.

Example: 99738672
digitoVerificadorContaCorrenteDebitostring

Check digit of the debit account (1 character; may be X).

Example: "X"
inicioCartaoCreditointeger<int64>

Initial card number (always 0 in this API).

fimCartaoCreditointeger<int64>

Final card number (always 0 in this API).

dataPagamentointeger<int32>

Date as ddmmaaaa, an integer without the day's leading zero (e.g. 9012026 = 09/01/2026).

valorPagamentonumber<float>

Payment amount in reais.

documentoDebitointeger<int64>

Debit document number (shown on the debited account's statement).

codigoAutenticacaoPagamentostring

Payment authentication code (16 hex characters); filled when the payment is PAGO.

Example: "F033A03D67666112"
listaPagamentosobject[]

Boleto data.

Show child attributes
codigostring

Boleto barcode (not the linha digitável).

nossoDocumentostring

Nosso número.

seuDocumentostring

Client's own reference (seu documento).

tipoPessoaBeneficiariointeger<int32>

Person type: 1 individual (CPF), 2 company (CNPJ).

documentoBeneficiariostring

Beneficiary's CPF or CNPJ.

nomeBeneficiariostring

Beneficiary's name (returned by the Bank).

tipoPessoaPagadorinteger<int32>

Person type: 1 individual (CPF), 2 company (CNPJ).

documentoPagadorstring

Payer's CPF or CNPJ.

nomePagadorstring

Payer's name.

tipoPessoaAvalistainteger<int32>

Person type: 1 individual (CPF), 2 company (CNPJ).

documentoAvalistastring

Guarantor's CPF or CNPJ.

nomeAvalistastring

Guarantor's name.

dataVencimentointeger<int32>

Due date, ddmmaaaa.

dataAgendamentointeger<int32>

Scheduling date, ddmmaaaa.

valorNominalnumber<float>

Boleto face value.

valorMoraMultanumber<float>

Late interest and fine amount.

valorDescontonumber<float>

Discount amount.

textostring

Payment description.

listaDevolucaoobject[]

Rejection or return occurrences of the payment.

Show child attributes
codigoMotivointeger<int32>

Reason code: validation error when rejected, or return reason (Pix 1000 to 1120) when returned.

Example: 1010
dataDevolucaointeger<int32>

Return date, ddmmaaaa (0 when there was no return).

valorDevolucaonumber<float>

Refunded amount.

403Refused by the gateway, as plain text: Authentication parameters missing (no gw-dev-app-key) or Authentication failed (invalid app key, or token missing, expired or without the operation's scope).
string
Authentication parameters missingAuthentication failed
Example: "Authentication failed"
404Request or payment not found.
errosobject[]required

List of errors.

Show child attributes
codigostring

Error code.

Example: "2"
versaostring

Message version.

Example: "1"
mensagemstring

Error description.

Example: "Requisição 9999999 não encontrada para este contrato."
ocorrenciastring

Occurrence id (32 hex characters), for BB support.

Example: "ad7661e506e077d533d3559c72a4ff34"
500System error.
errosobject[]required

List of errors.

Show child attributes
codigostring

Error code.

Example: "2"
versaostring

Message version.

Example: "1"
mensagemstring

Error description.

Example: "Requisição 9999999 não encontrada para este contrato."
ocorrenciastring

Occurrence id (32 hex characters), for BB support.

Example: "ad7661e506e077d533d3559c72a4ff34"