API Reference
Get a Pix payment
/pagamentos-lote/v1/pix/{id}https://bb.mimicr.dev · provider: https://api.hm.bb.com.brDetails 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
Payment id (17 digits).
90001210731030000Query parameters
Application key (developer_application_key) from the BB Developers Portal. Required on every call.
Debit agência. Optional.
Debit current account. Optional.
Check digit of the debit account. Optional.
Additional fields. Use listaDevolucao to get the returns.
"listaDevolucao"Responses
200Success.
Payment id generated by BB: a 17-digit integer (from 90000000000000001 to 99999999999999999). Read it as int64 or string, never as a double.
90001211731030000Payment 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"PAGO"Debit agência, 4 digits without the check digit.
1607Debit current account, without the check digit.
99738672Check digit of the debit account (1 character; may be X).
"X"Initial card number (always 0 in this API).
Final card number (always 0 in this API).
Request number.
1211Payment file (empty for API requests).
Date as ddmmaaaa, an integer without the day's leading zero (e.g. 9012026 = 09/01/2026).
Payment amount in reais.
Debit document number (shown on the debited account's statement).
Payment authentication code (16 hex characters); filled when the payment is PAGO.
"F033A03D67666112"Payment description.
1 when the id is a Pix, 0 when it isn't.
1Pix data.
Show child attributes
Clearing code (COMPE) of the credit bank. BB = 1.
ISPB code of the credit bank. BB = "0".
Credit agência.
Credit current account.
Check digit of the credit account.
Credit payment account.
Person type: 1 individual (CPF), 2 company (CNPJ).
Beneficiary's CPF or CNPJ.
Beneficiary's name (returned by the Bank).
Credit document number.
Reconciliation text sent to the Pix receiver.
Account type: 1 current account, 2 payment account, 3 savings.
Receiver identification method (text): 1 phone, 2 e-mail, 3 CPF/CNPJ, 4 random key, 5 bank details.
"4"Phone area code.
Phone.
E-mail.
Random key.
Pix text.
Returns of the Pix. Only included when requested with camposExtras=listaDevolucao.
Show child attributes
Reason code: validation error when rejected, or return reason (Pix 1000 to 1120) when returned.
1010Return date, ddmmaaaa (0 when there was no return).
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).
Authentication parameters missingAuthentication failed"Authentication failed"404Request or payment not found.
List of errors.
Show child attributes
Error code.
"2"Message version.
"1"Error description.
"Requisição 9999999 não encontrada para este contrato."Occurrence id (32 hex characters), for BB support.
"ad7661e506e077d533d3559c72a4ff34"500System error.
List of errors.
Show child attributes
Error code.
"2"Message version.
"1"Error description.
"Requisição 9999999 não encontrada para este contrato."Occurrence id (32 hex characters), for BB support.
"ad7661e506e077d533d3559c72a4ff34"