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

Refund a Pix

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

Refunds an aceito Pix, fully or partially. There can be several refunds up to the amount paid. The response is 202 with status: pendente; completion arrives through the webhook tipo: devolucao.

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
valorstringrequired

Amount to refund.

Example: "1.00"

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"