API Reference
Cancel payments
/pagamentos-lote/v1/cancelar-pagamentoshttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brCancels entries by id. An entry can only be cancelled until the batch that contains it is released; after that, cancellation can't be guaranteed. The result comes per payment, always with HTTP 200.
OAuth scope: pagamentos-lote.cancelar-requisicao.
In Mimicr, payments already PAGO, REJEITADO, DEVOLVIDO, CANCELADO, BLOQUEADO or DEBITADO come back with indicadorCancelamento N.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Query parameters
Application key (developer_application_key) from the BB Developers Portal. Required on every call.
Body
application/jsonPayment contract (convênio) number. Optional: when not given, the contract linked to the client is used. Homologação: 731030.
731030Debit 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"Payments to cancel (up to 400).
Show child attributes
Payment id (17 digits), sent as a string.
"90001210731030001"Responses
200Success.
Result of each payment.
Show child attributes
Payment id generated by BB: a 17-digit integer (from 90000000000000001 to 99999999999999999). Read it as int64 or string, never as a double.
S when cancelled, N when not.
SN"S"Payment state after the request.
"CANCELADO"Description of the result.
"Cancelamento efetuado com sucesso."400Invalid request (required field, date, debit account or contract), in the erros envelope.
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"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"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"