API Reference
Lote · Pix

Get a Pix payment

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

Details a Pix payment by id. The list of returns only comes when requested with camposExtras=listaDevolucao.

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

camposExtrasstring

Additional fields. Use listaDevolucao to get the returns.

Example: "listaDevolucao"

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

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

Example: 1607
contaDebitointeger<int64>

Debit current account, without the check digit.

Example: 99738672
digitoContaDebitostring

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

Example: "X"
numeroCartaoIniciointeger<int64>

Initial card number (always 0 in this API).

numeroCartaoFiminteger<int64>

Final card number (always 0 in this API).

requisicaoPagamentointeger<int32>

Request number.

Example: 1211
arquivoPagamentostring

Payment file (empty for API requests).

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.

numeroDocumentoDebitointeger<int64>

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

autenticacaoPagamentostring

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

Example: "F033A03D67666112"
descricaoPagamentostring

Payment description.

quantidadeOcorrenciaPixinteger<int32>

1 when the id is a Pix, 0 when it isn't.

Example: 1
listaPixobject[]

Pix data.

Show child attributes
numeroCOMPEstring

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

numeroISPBstring

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

agenciaCreditointeger<int32>

Credit agência.

contaCorrenteCreditointeger<int64>

Credit current account.

digitoVerificadorContaCorrentestring

Check digit of the credit account.

numeroContaPagamentoCreditostring

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.

descricaoPagamentoInstantaneostring

Reconciliation text sent to the Pix receiver.

tipoContainteger<int32>

Account type: 1 current account, 2 payment account, 3 savings.

formaIdentificacaostring

Receiver identification method (text): 1 phone, 2 e-mail, 3 CPF/CNPJ, 4 random key, 5 bank details.

Example: "4"
dddTelefoneinteger<int32>

Phone area code.

telefoneinteger<int64>

Phone.

emailstring

E-mail.

identificacaoAleatoriastring

Random key.

textoPixstring

Pix text.

listaDevolucaoobject[]

Returns of the Pix. Only included when requested with camposExtras=listaDevolucao.

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"