API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Open Finance · Pix Automático

Revoke a consent

PATCH/v1/pagamentos-automaticos/adesao
Base URL: https://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.br

Revokes 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/json
identificadorstringrequired

Consent to revoke.

statusstringrequired

revogado.

revogado
nomeFavorecidostring

Accepted and ignored.

dataExpiracaostring

Accepted and ignored.

valorMaximostring

Accepted and ignored.

Responses

200Consent revoked.
identificadorAdesaostring

Consent identifier.

statusstring

pendente waits for the consent; autorizado; rejeitado; revogado; finalizado is past its expiration.

pendenteautorizadorejeitadorevogadofinalizado
dataCriacaostring

Creation date and time.

motivostring

Reason, when rejected or revoked.

favorecidoobject
Show child attributes
contaBancoobject
Show child attributes
nomestringrequired

Payee name.

Example: "Lucas Silva"
documentostring

Payee's CPF or CNPJ.

Example: "17558266300"
codigoBancostringrequired

ISPB of the payee's bank (8 digits). 09089356 is Efí.

Example: "09089356"
agenciastringrequired

Branch, without check digit.

Example: "0001"
contastringrequired

Account number, with check digit.

Example: "654984"
tipoContastringrequired

CACC checking, SLRY salary, SVGS savings, TRAN payment account.

CACCSLRYSVGSTRAN
assinaturaobject
Show child attributes
expiracaostring

Expiration.

descricaostring

Description.

idPropriostring

Your own identifier.

configuracaoobject
Show child attributes
automaticoobject
Show child attributes
valorFixostring

Fixed amount of each charge. Don't combine with valorMinimo/valorMaximo.

valorMinimostring

Minimum amount per charge.

valorMaximostring

Maximum amount per charge.

intervalostringrequired

Periodicity.

SEMANALMENSALTRIMESTRALSEMESTRALANUAL
dataIniciostring<date>required

Start, YYYY-MM-DD.

permiteRetentativaboolean

Whether rejected charges can be retried.

primeiroPagamentoobject

Payment scheduled as soon as the consent is authorized.

Show child attributes
datastring

First payment date.

valorstring

First payment amount.

infoPagadorstring

Message.

400parametro_ausente: "O parâmetro '…' está ausente".
nomestringrequired

Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).

Example: "valor_invalido"
mensagemstringrequired

Error description.

Example: "O valor do pagamento é inválido"
401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"
403The token lacks the scope the route requires (insufficient_scope).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"
404recurso_nao_encontrado.
nomestringrequired

Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).

Example: "valor_invalido"
mensagemstringrequired

Error description.

Example: "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).
nomestringrequired

Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).

Example: "valor_invalido"
mensagemstringrequired

Error description.

Example: "O valor do pagamento é inválido"
500erro_aplicacao: internal server error.
nomestringrequired

Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).

Example: "valor_invalido"
mensagemstringrequired

Error description.

Example: "O valor do pagamento é inválido"