API Reference
List returned payments
/pagamentos-lote/v1/pagamentoshttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brLists 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
Application key (developer_application_key) from the BB Developers Portal. Required on every call.
Start date of the return, ddmmaaaa. Required.
23102026End date, ddmmaaaa. The range can't exceed 30 days.
Debit agência. Optional.
Debit current account. Optional.
Check digit of the debit account. Optional.
Payment contract number.
Starting position of the query (0 on the first call).
Responses
200Success.
Position for the next query; 0 when there are no more pages.
0Total records found.
Records on this page.
Returned payments (up to 100 per page).
Show child attributes
Payment id generated by BB: a 17-digit integer (from 90000000000000001 to 99999999999999999). Read it as int64 or string, never as a double.
Payment type (product): 126 Supplier payments, 127 Payroll, 128 Miscellaneous payments.
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.
Date as ddmmaaaa, an integer without the day's leading zero (e.g. 9012026 = 09/01/2026).
Clearing code (COMPE) of the credit bank. BB = 1.
ISPB code of the credit bank. BB = "0".
Credit agência.
Credit account.
Check digit of the credit account.
Credit payment account.
Person type: 1 individual (CPF), 2 company (CNPJ).
Beneficiary's CPF or CNPJ.
Beneficiary's name (returned by the Bank).
Payment amount in reais.
Boleto barcode (empty for Pix and transfers).
Boleto amount.
Request number.
Debit agência, 4 digits without the check digit.
Debit current account, without the check digit.
Check digit of the debit account (1 character; may be X).
Initial card number (always 0 in this API).
Final card number (always 0 in this API).
Debit document number (shown on the debited account's statement).
Return date, ddmmaaaa.
Refunded amount.
Return reason code (Pix: 1000 to 1120).
1010Return sequence (partial returns).
Pix account type.
Pix reconciliation text.
Pix identification method.
Phone area code.
Phone.
E-mail.
Random key.
400Invalid request (required field, date, debit account or contract), in the erros envelope.
List of errors.
Show child attributes
Error code.
"2"Message version.
"1"Error description.
"Requisição 9999999 não encontrada para este contrato."Occurrence id (32 hex characters), for BB support.
"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).
Authentication parameters missingAuthentication failed"Authentication failed"500System error.
List of errors.
Show child attributes
Error code.
"2"Message version.
"1"Error description.
"Requisição 9999999 não encontrada para este contrato."Occurrence id (32 hex characters), for BB support.
"ad7661e506e077d533d3559c72a4ff34"