API Reference
Lote · Requests and release

Get a request

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

Returns the state of a request of any type and of each of its payments. Errors in the {code, message} envelope.

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

Responses

200Success.
indiceinteger<int32>

Position for the next query (0 in Mimicr, which returns up to 300 payments).

Example: 0
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
tipoPagamentointeger<int32>

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

dataRequisicaointeger<int32>

Request date, ddmmaaaa.

quantidadePagamentosinteger<int32>

Number of entries in the request.

valorPagamentosnumber<float>

Total amount of the request's entries.

pagamentosobject[]

Payments of the request, with each one's current state.

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.

dataPagamentointeger<int32>

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

valorPagamentonumber<float>

Payment amount in reais.

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.

tipoBeneficiariointeger<int32>

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

cpfCnpjBeneficiariostring

Beneficiary's CPF or CNPJ.

nomeBeneficiariostring

Beneficiary's name (returned by the Bank).

estadoPagamentostring

Payment state: CONSISTENTE, INCONSISTENTE, PENDENTE (release pending), AGENDADO, AGUARDANDO DEBITO, DEBITADO, PAGO, REJEITADO, DEVOLVIDO (paid and refused by the receiver), CANCELADO or BLOQUEADO (debit not made, for example for lack of balance).

CONSISTENTEINCONSISTENTEPENDENTEAGENDADOAGUARDANDO DEBITODEBITADOPAGOREJEITADODEVOLVIDOCANCELADOBLOQUEADO
Example: "PAGO"
descricaoPagamentostring

Payment description.

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 not found.
codestringrequired

Error code.

Example: "404"
messagestringrequired

Error description.

Example: "Requisição 1234 não encontrada."
variaveisMonitoradasobject[]

Monitored variables (empty in Mimicr).