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

Create a consent

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

Asks the payer for a Pix Automático consent (authorization for recurring charges). The consent starts pendente and the payer authorizes at redirectURI. Once authorized, it becomes autorizado (the webhook says aceito) and the primeiroPagamento, if any, is scheduled.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Body

application/json
pagadorobjectrequired
Show child attributes
idParticipantestringrequired

Payer's bank.

cpfstringrequired

CPF (11 digits).

cnpjstring

CNPJ.

nomestring

Payer name.

favorecidoobjectrequired

Receiving account (here tipoConta accepts CACC, SVGS or TRAN).

Show child attributes
contaBancoobjectrequired
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
assinaturaobjectrequired
Show child attributes
expiracaostring<date>

End of the consent, YYYY-MM-DD. After it the consent becomes finalizado.

descricaostring

Description shown to the payer.

idPropriostring

Your own identifier.

configuracaoobjectrequired
Show child attributes
automaticoobjectrequired
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.

Responses

200Consent created.
identificadorAdesaostring

Consent identifier.

redirectURIstring

Page where the payer authorizes.

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"