API Reference
Request a refund
/v2/pix/{e2eId}/devolucao/{id}https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brRequests 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
End-to-end id (endToEndId) of the received Pix.
Refund id chosen by you (^[a-zA-Z0-9]{1,35}$).
Body
application/jsonAmount in BRL, a string with two decimals (\d{1,10}\.\d{2}).
"1.00"Responses
201Refund requested.
Identifier.
"D001"Refund id in the SPI (32 characters, starts with D).
"D09089356202610212340HpsrIQO2Rcf"Amount in BRL, a string with two decimals (\d{1,10}\.\d{2}).
"1.00"Payment date and time.
Show child attributes
Request date and time.
"2026-10-21T23:40:17.898Z"Refund status: EM_PROCESSAMENTO, DEVOLVIDO or NAO_REALIZADO (with motivo).
EM_PROCESSAMENTODEVOLVIDONAO_REALIZADO"EM_PROCESSAMENTO"400pix_nao_encontrado, valor_invalido (above the amount still refundable) or insufficient balance.
Error code in snake_case, for example cobranca_nao_encontrada.
"cobranca_nao_encontrada"Error message in Portuguese.
"Nenhuma cobrança encontrada para o txid informado"Schema validation details (only on json_invalido).
Show child attributes
Keyword of the violated rule, for example required, pattern or enum.
"pattern"Path of the invalid field, for example .body.valor.original.
".body.valor.original"Description of the violation.
401Missing, invalid or expired token, or a token issued for another API (invalid_token).
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"403The token lacks the required scope (insufficient_scope).
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"409devolucao_id_duplicado: the id was already used by another refund.
Error code in snake_case, for example cobranca_nao_encontrada.
"cobranca_nao_encontrada"Error message in Portuguese.
"Nenhuma cobrança encontrada para o txid informado"Schema validation details (only on json_invalido).
Show child attributes
Keyword of the violated rule, for example required, pattern or enum.
"pattern"Path of the invalid field, for example .body.valor.original.
".body.valor.original"Description of the violation.