API Reference
Lote · Boletos and barcode slips

List payments of a barcode

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

Lists every payment (boletos or slips) made with a barcode.

OAuth scope: pagamentos-lote.pagamentos-codigo-barras-info.

Authorization

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

Path parameters

codigoBarrasstringrequired

Barcode (44 digits).

Example: "83630000000641400052836100812355200812351310"

Query parameters

gw-dev-app-keystringrequired

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

agenciaDebitointeger

Debit agência. Optional.

contaCorrenteDebitointeger<int64>

Debit current account. Optional.

digitoVerificadorContaCorrentestring

Check digit of the debit account. Optional.

Responses

200Success.
pagamentosobject[]

Payments made with the barcode (boletos or slips).

Show child attributes
identificadorPagamentointeger<int64>

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

autenticacaoPagamentostring

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

agenciaDebitointeger<int32>

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

contaCorrenteDebitointeger<int64>

Debit current account, without the check digit.

digitoVerificadorContaCorrentestring

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

numeroRequisicaointeger<int32>

Request number.

documentoDebitointeger<int64>

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

dataAgendamentointeger<int32>

Scheduled date, ddmmaaaa.

dataPagamentointeger<int32>

Date it was paid, ddmmaaaa (0 until paid).

valorPagamentonumber<float>

Payment amount in reais.

nomeBeneficiariostring

Beneficiary's name (returned by the Bank).

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"
descricaoPagamentostring

Payment description.

errosinteger[]

Error codes of the entry (up to 10), from the API's error table. Empty when accepted.

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"
404No payment for the barcode (code 318, Título Não Encontrado).
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"