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

Refund installments

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

Refunds 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

identificadorPagamentostringrequired

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

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

Body

application/json
devolucoesobject[]required
Show child attributes
endToEndIdstringrequired

Installment to refund.

valorstringrequired

Amount.

Responses

202Refunds requested, one per item.
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"