API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Received Pix and refunds

Request a refund

PUT/v2/pix/{e2eId}/devolucao/{id}
Base URL: https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.br

Requests a full or partial refund of a received Pix. The id is yours and cannot repeat for the same Pix. The refund starts EM_PROCESSAMENTO and the result arrives through the key's webhook.

In homologation, a refund of R$ 0.01 is always rejected (NAO_REALIZADO); others are confirmed (DEVOLVIDO). Pix with split use PUT /v2/gn/split/pix/:e2eid/devolucao/:id.

Scope: pix.write.

Authorization

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

Path parameters

e2eIdstringrequired

End-to-end id (endToEndId) of the received Pix.

idstringrequired

Refund id chosen by you (^[a-zA-Z0-9]{1,35}$).

Body

application/json
valorstringrequired

Amount in BRL, a string with two decimals (\d{1,10}\.\d{2}).

Example: "1.00"

Responses

201Refund requested.
idstring

Identifier.

Example: "D001"
rtrIdstring

Refund id in the SPI (32 characters, starts with D).

Example: "D09089356202610212340HpsrIQO2Rcf"
valorstring

Amount in BRL, a string with two decimals (\d{1,10}\.\d{2}).

Example: "1.00"
horarioobject

Payment date and time.

Show child attributes
solicitacaostring

Request date and time.

Example: "2026-10-21T23:40:17.898Z"
statusstring

Refund status: EM_PROCESSAMENTO, DEVOLVIDO or NAO_REALIZADO (with motivo).

EM_PROCESSAMENTODEVOLVIDONAO_REALIZADO
Example: "EM_PROCESSAMENTO"
400pix_nao_encontrado, valor_invalido (above the amount still refundable) or insufficient balance.
nomestringrequired

Error code in snake_case, for example cobranca_nao_encontrada.

Example: "cobranca_nao_encontrada"
mensagemstringrequired

Error message in Portuguese.

Example: "Nenhuma cobrança encontrada para o txid informado"
errosobject[]

Schema validation details (only on json_invalido).

Show child attributes
chavestring

Keyword of the violated rule, for example required, pattern or enum.

Example: "pattern"
caminhostring

Path of the invalid field, for example .body.valor.original.

Example: ".body.valor.original"
mensagemstring

Description of the violation.

401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"
403The token lacks the required scope (insufficient_scope).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"
409devolucao_id_duplicado: the id was already used by another refund.
nomestringrequired

Error code in snake_case, for example cobranca_nao_encontrada.

Example: "cobranca_nao_encontrada"
mensagemstringrequired

Error message in Portuguese.

Example: "Nenhuma cobrança encontrada para o txid informado"
errosobject[]

Schema validation details (only on json_invalido).

Show child attributes
chavestring

Keyword of the violated rule, for example required, pattern or enum.

Example: "pattern"
caminhostring

Path of the invalid field, for example .body.valor.original.

Example: ".body.valor.original"
mensagemstring

Description of the violation.