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

Schedule a Pix Automático

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

Schedules 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

x-idempotency-keystringrequired

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.

Example: "6f1c1d2e-9a3b-4c5d-8e7f-0a1b2c3d4e5f"

Body

application/json
identificadorAdesaostringrequired

Authorized consent.

pagamentoobjectrequired
Show child attributes
valorstringrequired

Amount.

datastringrequired

Debit date, YYYY-MM-DD.

codigoCidadeIBGEstring

IBGE city code.

infoPagadorstring

Message.

Responses

200Payment created.
identificadorAdesaostring

Consent.

endToEndIdstring

Payment identifier.

statusstring

pendente.

datastring

Debit date.

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"