API Reference
Refund a scheduled Pix
/v1/pagamentos-agendados/pix/{identificadorPagamento}/devolverhttps://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.brRefunds 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
Payment identifier returned at initiation (urn:efi:…).
"urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"Body
application/jsonThe payment's endToEndId.
Amount to refund.
Responses
202Refund requested.
Refunded payment.
Refunded Pix (or installment).
Refund amount.
Date and time, YYYY-MM-DD HH:mm:ss.
"2026-10-21 22:35:11"Always pendente in the response. Completion (aceito) arrives through the webhook tipo: devolucao.
pendente400valor_devolucao_invalido.
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"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.
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"