API Reference
Revoke a consent
/v1/pagamentos-automaticos/adesaohttps://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.brRevokes an autorizado (or pendente) consent. Only the status can change, and only to revogado. The consent's pendente or agendado payments are canceled.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonConsent to revoke.
revogado.
revogadoAccepted and ignored.
Accepted and ignored.
Accepted and ignored.
Responses
200Consent revoked.
Consent identifier.
pendente waits for the consent; autorizado; rejeitado; revogado; finalizado is past its expiration.
pendenteautorizadorejeitadorevogadofinalizadoCreation date and time.
Reason, when rejected or revoked.
Show child attributes
Show child attributes
Payee name.
"Lucas Silva"Payee's CPF or CNPJ.
"17558266300"ISPB of the payee's bank (8 digits). 09089356 is Efí.
"09089356"Branch, without check digit.
"0001"Account number, with check digit.
"654984"CACC checking, SLRY salary, SVGS savings, TRAN payment account.
CACCSLRYSVGSTRANShow child attributes
Expiration.
Description.
Your own identifier.
Show child attributes
Show child attributes
Fixed amount of each charge. Don't combine with valorMinimo/valorMaximo.
Minimum amount per charge.
Maximum amount per charge.
Periodicity.
SEMANALMENSALTRIMESTRALSEMESTRALANUALStart, YYYY-MM-DD.
Whether rejected charges can be retried.
Payment scheduled as soon as the consent is authorized.
Show child attributes
First payment date.
First payment amount.
Message.
400parametro_ausente: "O parâmetro '…' está ausente".
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"401Missing, invalid or expired token, or a token issued for another API (invalid_token).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"403The token lacks the scope the route requires (insufficient_scope).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"404recurso_nao_encontrado.
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"422entidade_nao_processavel: the request can't be processed in the current state (e.g. enrollment not authorized, amount outside the limits, already canceled).
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"500erro_aplicacao: internal server error.
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"