API Reference
Lote · Taxes without barcode

Get a DARF request

GET/pagamentos-lote/v1/lotes-darf-preto-normal/{idRequisicao}/solicitacao
Base URL: https://bb.mimicr.dev · provider: https://api.hm.bb.com.br

Returns the DARF request. Note the word order in the path (darf-preto-normal), different from the POST; here pagamento is a list with one item.

OAuth scope: pagamentos-lote.pagamentos-guias-sem-codigo-barras-info.

Authorization

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

Path parameters

idRequisicaointeger<int32>required

Request number (1 to 9999999).

Example: 1210

Query parameters

gw-dev-app-keystringrequired

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

numeroAgenciaDebitointeger

Debit agência. Optional.

numeroContaCorrenteDebitointeger<int64>

Debit current account. Optional.

digitoVerificadorContaCorrenteDebitostring

Check digit of the debit account. Optional.

Responses

200Success.
idinteger<int32>

Request number.

Example: 1215
codigoEstadointeger

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
quantidadeLancamentosinteger<int32>

Number of entries in the request.

valorLancamentosnumber<float>

Total amount of the request's entries.

quantidadeLancamentosValidosinteger<int32>

Number of valid (accepted) entries.

valorLancamentosValidosnumber<float>

Total amount of the valid entries.

lancamentosobject[]

DARFs of the request.

Show child attributes
nomeConvenentestring

Biller's name.

numeroReferenciainteger<int64>

Reference number.

dataVencimentointeger<int32>

Due date, ddmmaaaa.

pagamentoobject[]

DARF payment (a list with one item).

Show child attributes
idinteger<int64>

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

datainteger<int32>

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

valornumber<float>

Payment amount in reais.

valorPrincipalnumber<float>

Principal amount.

valorMultanumber<float>

Fine amount.

valorJuroEncargonumber<float>

Interest and charges amount.

cpfCnpjContribuintestring

Taxpayer's CPF or CNPJ.

numeroDocumentoDebitointeger<int64>

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

textoDescricaostring

Payment description.

indicadorMovimentoAceitostring

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

SN
Example: "S"
codigoClienteContratointeger<int64>

Client code (MCI) of the contract.

codigoDocumentointeger<int64>

Document code.

codigoReceitaTributointeger<int32>

Tax revenue code.

codigoIdentificadorTributostring

Tax identifier: 16 other revenues, 18 Simples.

codigoTipoContribuinteinteger<int32>

Taxpayer type: 1 CNPJ, 2 CPF.

dataApuracaointeger<int32>

Assessment period, ddmmaaaa.

errosinteger[]

Error codes of the entry (up to 10), from the API's error table. Empty when accepted.

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"
404Request or payment not found.
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"