API Reference
Lote · Transfers

Get a transfer

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

Details a transfer payment by id: state, credit data, authentication (when PAGO) and rejection or return occurrences in listaDevolucao.

OAuth scope: pagamentos-lote.pagamentos-info.

Authorization

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

Path parameters

idinteger<int64>required

Payment id (17 digits).

Example: 90001210731030000

Query parameters

gw-dev-app-keystringrequired

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

agenciainteger

Debit agência. Optional.

contaCorrenteinteger<int64>

Debit current account. Optional.

digitoVerificadorstring

Check digit of the debit account. Optional.

Responses

200Success.
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.

Example: 90001210731030000
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"
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
agenciaDebitointeger<int32>

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

Example: 1607
contaCorrenteDebitointeger<int64>

Debit current account, without the check digit.

Example: 99738672
digitoVerificadorContaCorrentestring

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

Example: "X"
inicioCartaoCreditointeger<int64>

Initial card number (always 0 in this API).

fimCartaoCreditointeger<int64>

Final card number (always 0 in this API).

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.

documentoDebitointeger<int64>

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

codigoAutenticacaoPagamentostring

Payment authentication code (16 hex characters); filled when the payment is PAGO.

Example: "F033A03D67666112"
numeroDepositoJudicialstring

Judicial deposit number.

codigoFinalidadeDOCstring

DOC purpose (text).

Example: "0"
codigoFinalidadeTEDstring

TED purpose (text).

listaPagamentosobject[]

Credit data.

Show child attributes
numeroCOMPEstring

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

agenciaCreditointeger<int32>

Credit agência.

numeroISPBstring

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

contaCorrenteCreditointeger<int64>

Credit current account.

digitoVerificadorContaCorrentestring

Check digit of the credit account.

numeroContaCreditostring

Credit payment account.

tipoBeneficiariointeger<int32>

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

cpfCnpjBeneficiariostring

Beneficiary's CPF or CNPJ.

nomeBeneficiariostring

Beneficiary's name (returned by the Bank).

documentoCreditointeger<int64>

Credit document number.

textostring

Payment description.

listaDevolucaoobject[]

Rejection or return occurrences of the payment.

Show child attributes
codigoMotivointeger<int32>

Reason code: validation error when rejected, or return reason (Pix 1000 to 1120) when returned.

Example: 1010
dataDevolucaointeger<int32>

Return date, ddmmaaaa (0 when there was no return).

valorDevolucaonumber<float>

Refunded amount.

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"