API Reference
Lote · Queries

List entries by period

GET/pagamentos-lote/v1/lancamentos-periodo
Base URL: https://bb.mimicr.dev · provider: https://api.hm.bb.com.br

Lists the entries of the requests sent in a period, filtered by payment state and product. Pagination by numeroDaPosicaoDePesquisa (500 per page).

OAuth scope: pagamentos-lote.lancamentos-info.

Authorization

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

Query parameters

gw-dev-app-keystringrequired

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

dataInicialdeEnviodaRequisicaointegerrequired

Start date of sending the request, ddmmaaaa. Required.

Example: 23102026
dataFinaldeEnviodaRequisicaointeger

End date of sending, ddmmaaaa (default: the start date).

codigodoEstadodoPagamentointeger

Payment state: 0 all, 1 consistent, 2 inconsistent, 3 pending, 4 scheduled, 5 paid, 6 rejected, 7 returned, 8 cancelled, 9 debited, 10 blocked, 11 awaiting debit.

codigoProdutointeger

Product: 0 all, 126, 127 or 128.

numeroAgenciaDebitointeger

Debit agência. Optional.

numeroContaCorrenteDebitointeger<int64>

Debit current account. Optional.

digitoVerificadorContaCorrenteDebitostring

Check digit of the debit account. Optional.

numeroDaPosicaoDePesquisainteger

Starting position of the query (0 on the first call).

Responses

200Success.
numeroDaposicaoDePesquisainteger<int32>

Position for the next query; 0 when there are no more pages (note the lowercase p, unlike the parameter).

Example: 0
quantidadeOcorrenciasTotalinteger<int32>

Total entries found.

quantidadeOcorrenciasTabeladasinteger<int32>

Entries on this page.

listaMovimentoobject[]

Entries (up to 500 per page).

Show child attributes
numeroRequisicaoPagamentointeger<int32>

Request number.

textoEstadoPagamentostring

Payment state.

Example: "PAGO"
codigoIdentificadorPagamentointeger<int64>

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

nomeDoFavorecidostring

Payee's name.

codigoDoTipoDePessoainteger<int32>

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

numeroCPFouCNPJstring

Payee's CPF or CNPJ.

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.

numeroDocumentoDebitointeger<int64>

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

numeroDocumentoCreditointeger<int64>

Credit document number.

codigoFormaCreditointeger<int32>

Credit method: 1 account credit, 3 TED, 5 savings, 13 barcode slip, 21 slip without barcode, 30 BB boleto, 31 other banks' boleto, 45 Pix, 71 judicial deposit.

codigoAutenticacaoPagamentostring

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

dataDebitointeger<int32>

Debit date, ddmmaaaa (0 until debited).

codigoTipoPagamentointeger<int32>

Payment type (product): 126 Supplier payments, 127 Payroll, 128 Miscellaneous payments.

400Invalid request (required field, date, debit account or contract), in the erros envelope.
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"
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"
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"