API Reference
Lote · Queries

List returned payments

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

Lists the Pix and transfer payments returned by the receiver in a period of up to 30 days. Pagination by indice (100 per page; the first query must send zero).

OAuth scope: pagamentos-lote.lotes-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.

dataIniciointegerrequired

Start date of the return, ddmmaaaa. Required.

Example: 23102026
dataFiminteger

End date, ddmmaaaa. The range can't exceed 30 days.

agenciaDebitointeger

Debit agência. Optional.

contaCorrenteDebitointeger<int64>

Debit current account. Optional.

digitoVerificadorContaCorrentestring

Check digit of the debit account. Optional.

numeroContratoPagamentointeger

Payment contract number.

indiceinteger

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

Responses

200Success.
indiceinteger<int32>

Position for the next query; 0 when there are no more pages.

Example: 0
quantidadeTotalRegistrosinteger<int32>

Total records found.

quantidadeRegistrosinteger<int32>

Records on this page.

pagamentosobject[]

Returned payments (up to 100 per page).

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.

tipoPagamentointeger<int32>

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

tipoCreditointeger<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.

dataPagamentointeger<int32>

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

compeCreditostring

Clearing code (COMPE) of the credit bank. BB = 1.

ispbCreditostring

ISPB code of the credit bank. BB = "0".

agenciaCreditointeger<int32>

Credit agência.

contaCreditointeger<int64>

Credit account.

digitoVerificadorContaCreditostring

Check digit of the credit account.

contaPagamentoCreditostring

Credit payment account.

tipoBeneficiariointeger<int32>

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

cpfCnpjstring

Beneficiary's CPF or CNPJ.

nomestring

Beneficiary's name (returned by the Bank).

valorPagamentonumber<float>

Payment amount in reais.

codigoBarrasBoletostring

Boleto barcode (empty for Pix and transfers).

valorBoletonumber<float>

Boleto amount.

numeroRequisicaointeger<int32>

Request number.

agenciaDebitointeger<int32>

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

contaCorrenteDebitointeger<int64>

Debit current account, without the check digit.

digitoVerificadorContaCorrenteDebitostring

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

inicioCartaointeger<int64>

Initial card number (always 0 in this API).

fimCartaointeger<int64>

Final card number (always 0 in this API).

documentoDebitointeger<int64>

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

dataDevolucaointeger<int32>

Return date, ddmmaaaa.

valorDevolucaonumber<float>

Refunded amount.

codigoDevolucaointeger<int32>

Return reason code (Pix: 1000 to 1120).

Example: 1010
sequenciaDevolucaointeger<int32>

Return sequence (partial returns).

tipoContainteger<int32>

Pix account type.

descricaoPagamentoInstantaneostring

Pix reconciliation text.

formaIdentificacaointeger<int32>

Pix identification method.

dddTelefoneinteger<int32>

Phone area code.

telefoneinteger<int64>

Phone.

emailstring

E-mail.

identificacaoAleatoriastring

Random key.

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"