API Reference
Refund installments
/v1/pagamentos-recorrentes/pix/{identificadorPagamento}/devolverhttps://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.brRefunds one or more settled (aceito) installments of a recurrence, in a batch.
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/jsonShow child attributes
Installment to refund.
Amount.
Responses
202Refunds requested, one per item.
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"