API Reference
Lote · Transfers

Create a transfer batch

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

Creates a transfer request: credit to a BB current account, savings, payment account, TED to other banks and judicial deposit. Each entry is accepted (indicadorAceite S) or refused with up to 10 error codes; the batch is only debited after it is released with Release payments.

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

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.

Body

application/json
numeroRequisicaointeger<int32>required

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

Example: 1210
numeroContratoPagamentointeger<int32>

Payment contract (convênio) number. Optional: when not given, the contract linked to the client is used. Homologação: 731030.

Example: 731030
agenciaDebitointeger<int32>required

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

Example: 1607
contaCorrenteDebitointeger<int64>required

Debit current account, without the check digit.

Example: 99738672
digitoVerificadorContaCorrentestringrequired

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

Example: "X"
tipoPagamentointegerrequired

Payment type (product): 126 Supplier payments, 127 Payroll, 128 Miscellaneous payments. Payroll (127) only to a BB account linked to a CPF.

126127128
Example: 128
listaTransferenciasobject[]required

Transfers of the request (up to 320).

Show child attributes
numeroCOMPEinteger<int32>

Clearing code of the credit bank (BB = 1). If 0, numeroISPB is used.

Example: 1
numeroISPBstring

ISPB code of the credit bank (BB = "0"). Ignored when numeroCOMPE is given.

Example: "0"
agenciaCreditointeger<int32>

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

Example: 18
contaCorrenteCreditointeger<int64>

Credit current account (up to 13 digits), without the check digit. BB savings: 51 + the account zero-padded to 9 digits.

Example: 3066
digitoVerificadorContaCorrentestring

Check digit of the credit account.

Example: "X"
contaPagamentoCreditostring

Credit payment account. If filled, don't send agência, account, check digit or judicial deposit.

cpfBeneficiariointeger<int64>

Beneficiary's CPF. Mutually exclusive with cnpjBeneficiario.

Example: 99391916180
cnpjBeneficiariostring

Beneficiary's CNPJ. Mutually exclusive with cpfBeneficiario.

dataTransferenciainteger<int32>required

Payment date, ddmmaaaa as an integer. Can't be before today (error 53); scheduling up to 180 days ahead.

Example: 23102026
valorTransferencianumber<float>required

Payment amount in reais.

Example: 400.75
documentoDebitointeger<int64>

Debit document number. The same number (or none) on every entry produces a single consolidated line on the payer's statement.

documentoCreditointeger<int64>

Credit document number; only for credit to a BB current account.

codigoFinalidadeDOCinteger<int32>

DOC purpose (discontinued).

codigoFinalidadeTEDinteger<int32>

TED purpose (1 taxes, 3 dividends, 5 suppliers, 7 rent, 8 trade bills, 9 school fees, 10 account credit, 100 judicial deposit, 101 alimony, 200 international transfer in reais, 303 tax refund, 99999 others). Required for other banks; don't send it for BB credits.

Example: 5
numeroDepositoJudicialstring

Judicial deposit number (BB only, COMPE 1 or ISPB 0). Don't send agência, account or payment account.

descricaoTransferenciastring

Free-text transfer description.

Example: "Fornecedor"

Responses

201Request received, with the validation result of each entry.
estadoRequisicaointeger

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

12345678910
Example: 1
quantidadeTransferenciasinteger<int32>

Number of entries in the request.

Example: 3
valorTransferenciasnumber<float>

Total amount of the request's entries.

Example: 410.75
quantidadeTransferenciasValidasinteger<int32>

Number of valid (accepted) entries.

Example: 2
valorTransferenciasValidasnumber<float>

Total amount of the valid entries.

Example: 410.75
transferenciasobject[]

Transfers, in the order sent.

Show child attributes
identificadorTransferenciainteger<int64>

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

Example: 90001210731030000
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.

Example: 1
numeroCOMPEstring

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

Example: "1"
numeroISPBstring

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

Example: "0"
agenciaCreditointeger<int32>

Credit agência.

Example: 18
contaCorrenteCreditointeger<int64>

Credit current account.

Example: 3066
digitoVerificadorContaCorrentestring

Check digit of the credit account.

Example: "X"
contaPagamentoCreditostring

Credit payment account.

cpfBeneficiariointeger<int64>

Beneficiary's CPF (0 when not given).

Example: 99391916180
cnpjBeneficiariostring

Beneficiary's CNPJ (empty when not given).

dataTransferenciainteger<int32>

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

Example: 23102026
valorTransferencianumber<float>

Payment amount in reais.

Example: 400.75
documentoDebitointeger<int64>

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

documentoCreditointeger<int64>

Credit document number.

numeroDepositoJudicialstring

Judicial deposit number.

descricaoTransferenciastring

Transfer description.

indicadorAceitestring

S when the entry was accepted; N when it has inconsistent data (see the error codes).

SN
Example: "S"
codigoFinalidadeDOCinteger<int32>

DOC purpose.

codigoFInalidadeTEDinteger<int32>

TED purpose. The field name has a capital I, as in BB's swagger.

errosinteger[]

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.
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"
422Request number already used for this contract (code 4).
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"