API Reference
Create a Pix batch
/pagamentos-lote/v1/lotes-transferencias-pixhttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brCreates a Pix transfer request, by key (phone, e-mail, CPF/CNPJ, random key) or by bank details (formaIdentificacao 5). There is no resource to confirm who owns a Pix key, and Pix payments are irrevocable. Accepted payment types: 126 and 128.
OAuth scope: pagamentos-lote.transferencias-pix-requisicao.
In Mimicr, the response is always 201 (BB's swagger declares 200 for most POSTs and 201 for boletos; clients such as ACBr expect 201). About 2 seconds later the bank validates the batch: with consistent entries the request moves to state 4 (waiting for release) and the entries to PENDENTE; inconsistent entries become REJEITADO. With autoRelease on in the homologação rules, the batch is released as it arrives. In Mimicr, a Pix to one of the sandbox's own keys also shows up as a received Pix in the API Pix.
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.
Body
application/jsonRequest number, from 1 to 9999999, chosen by the client. It doesn't have to be sequential, but it can be used only once per payment contract.
1211Payment contract (convênio) number. Optional: when not given, the contract linked to the client is used. Homologação: 731030.
731030Debit agência, 4 digits without the check digit.
1607Debit current account, without the check digit.
99738672Check digit of the debit account (1 character; may be X).
"X"Payment type: 126 Supplier payments or 128 Miscellaneous payments.
126128126Pix transfers of the request (up to 320).
Show child attributes
Payment date, ddmmaaaa as an integer. Can't be before today (error 53); scheduling up to 180 days ahead.
23102026Payment amount in reais.
123.45Debit document number (shown on the debited account's statement).
Credit document number.
Payment description.
Reconciliation text sent to the Pix receiver.
Receiver identification method: 1 phone, 2 e-mail, 3 CPF/CNPJ, 4 random key, 5 bank details.
123452Phone area code (2 digits); required when formaIdentificacao = 1.
11Phone (9 digits); required when formaIdentificacao = 1.
985732102E-mail; required when formaIdentificacao = 2.
"hmtestes2@bb.com.br"Receiver's CPF; required (or the CNPJ) when formaIdentificacao = 3 or 5; validated if filled.
Receiver's CNPJ; required (or the CPF) when formaIdentificacao = 3 or 5; validated if filled.
Random key; required when formaIdentificacao = 4.
"9e881f18-cc66-4fc7-8f2c-a795dbb2bfc1"Bank's clearing code (formaIdentificacao = 5, when ISPB is not given).
"1"Bank's ISPB code (formaIdentificacao = 5, when COMPE is not given).
Account type: 1 current account, 2 payment account, 3 savings. Required when formaIdentificacao = 5.
123Agência (formaIdentificacao = 5, without contaPagamento).
Account (formaIdentificacao = 5, without contaPagamento).
Account check digit (formaIdentificacao = 5, without contaPagamento).
Payment account, instead of agência, account and check digit (formaIdentificacao = 5).
Responses
201Request received, with the validation result of each Pix.
Request number.
1211Request state: 1 all entries with consistent data; 2 at least one entry with inconsistent data; 3 all entries with inconsistent data; 4 waiting for the client (payment not authorized yet); 5 being processed by the Bank; 6 processed; 7 rejected; 8 preparing an unreleased batch; 9 released via API; 10 preparing a released batch. States 6 and 7 are final.
123456789101Number of entries in the request.
Total amount of the request's entries.
Number of valid (accepted) entries.
Total amount of the valid entries.
Pix transfers, in the order sent.
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.
90001211731030000Payment date, ddmmaaaa as an integer. Can't be before today (error 53); scheduling up to 180 days ahead.
23102026Payment amount in reais.
123.45Debit document number (shown on the debited account's statement).
Credit document number.
Payment description.
Reconciliation text sent to the Pix receiver.
Receiver identification method: 1 phone, 2 e-mail, 3 CPF/CNPJ, 4 random key, 5 bank details.
2Phone area code (2 digits); required when formaIdentificacao = 1.
11Phone (9 digits); required when formaIdentificacao = 1.
985732102E-mail; required when formaIdentificacao = 2.
"hmtestes2@bb.com.br"Receiver's CPF; required (or the CNPJ) when formaIdentificacao = 3 or 5; validated if filled.
Receiver's CNPJ; required (or the CPF) when formaIdentificacao = 3 or 5; validated if filled.
Random key; required when formaIdentificacao = 4.
"9e881f18-cc66-4fc7-8f2c-a795dbb2bfc1"Bank's clearing code (formaIdentificacao = 5, when ISPB is not given).
"1"Bank's ISPB code (formaIdentificacao = 5, when COMPE is not given).
Account type: 1 current account, 2 payment account, 3 savings. Required when formaIdentificacao = 5.
Agência (formaIdentificacao = 5, without contaPagamento).
Account (formaIdentificacao = 5, without contaPagamento).
Account check digit (formaIdentificacao = 5, without contaPagamento).
Payment account, instead of agência, account and check digit (formaIdentificacao = 5).
S when the entry was accepted; N when it has inconsistent data (see the error codes).
SN"S"Error codes of the entry (up to 10), from the API's error table. Empty when accepted.
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"422Request number already used for this contract (code 4).
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"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"