API Reference
List consents
/v1/pagamentos-automaticos/adesaohttps://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.brLists the consents created in the period with a given status.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Query parameters
Start date, YYYY-MM-DD.
End date, YYYY-MM-DD.
Status of the consents.
autorizadopendenterevogadofinalizadorejeitadoOne specific consent.
Your own identifier.
Payer's CPF or CNPJ.
Items per page (up to 50).
Page.
Responses
200Consents.
Show child attributes
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.
Total items found.
Items per page.
Path of the last page.
Path of the next page, or null.
Path of the previous page, or null.
Path of the current page.
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"