API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Open Finance · Scheduled payments

Refund a scheduled Pix

POST/v1/pagamentos-agendados/pix/{identificadorPagamento}/devolver
Base URL: https://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.br

Refunds a scheduled Pix that has settled (aceito). Send the payment's endToEndId.

Authorization

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

Path parameters

identificadorPagamentostringrequired

Payment identifier returned at initiation (urn:efi:…).

Example: "urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"

Body

application/json
endToEndIdstringrequired

The payment's endToEndId.

valorstringrequired

Amount to refund.

Responses

202Refund requested.
identificadorPagamentostring

Refunded payment.

endToEndIdstring

Refunded Pix (or installment).

valorstring

Refund amount.

dataCriacaostring

Date and time, YYYY-MM-DD HH:mm:ss.

Example: "2026-10-21 22:35:11"
statusstring

Always pendente in the response. Completion (aceito) arrives through the webhook tipo: devolucao.

pendente
400valor_devolucao_invalido.
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"
422identificador_pagamento_invalido, status_pagamento_invalido_para_devolucao (the payment or installment is not aceito), endToEnd_pagamento_invalido, saldo_devolucao_insuficiente (the total exceeds the amount paid) or saldo_insuficiente.
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"