API Reference
Lote · Boletos and barcode slips

Get a barcode slip payment

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

Details a barcode slip payment by id.

OAuth scope: pagamentos-lote.guias-codigo-barras-info or pagamentos-lote.pagamentos-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.

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"
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[]

Slip data.

Show child attributes
codigostring

Slip barcode.

nomeRecebedorstring

Receiver's name (biller).

seuNumerostring

Client's own reference (seu documento).

textostring

Payment description.

listaDevolucaoobject[]

Rejection or return occurrences of the payment.

Show child attributes
codigoMotivointeger<int32>

Rejection or return reason code.

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"