API Reference
Schedule a Pix Automático
/v1/pagamentos-automaticos/pixhttps://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.brSchedules a charge on an autorizado consent. The amount must respect valorFixo or the valorMinimo–valorMaximo range. The payment starts pendente, becomes agendado within seconds and settles on its date: aceito, or rejeitado ("Saldo insuficiente") for 0.11.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Headers
Idempotency key, 36 to 72 characters (a UUID works). The same key with the same body returns the first response; with another body, 409 conflito_chave_idempotencia. Missing: 400 chave_idempotencia_obrigatorio; wrong length: 431 chave_idempotencia_invalida.
"6f1c1d2e-9a3b-4c5d-8e7f-0a1b2c3d4e5f"Body
application/jsonAuthorized consent.
Show child attributes
Amount.
Debit date, YYYY-MM-DD.
IBGE city code.
Message.
Responses
200Payment created.
Consent.
Payment identifier.
pendente.
Debit date.
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"