Skip to main content

Pix Refund

A Pix refund can be made up to 90 days from its receipt.

Request

ENDPOINT
/account/ACCOUNT_KEY/alias/ALIAS_KEY/pix_transfer/PIX_TRANSFER_KEY/reversal
METHOD
POST

Request Path Params

FieldTypeDescriptionCharacters
account_keystringUnique account key (UUIDv4)36
alias_keystringUnique alias key (UUIDv4)36
pix_transfer_keystringUnique identification key of the Pix transfer in the QI system (UUIDv4)36
Request Body
{
"request_control_key": "303393bf-8f2e-4ff0-b326-ee7ad612e8ca",
"reversal_amount": 147.00,
"reversal_reason": "client_request",
"reversal_message": "Mensagem Pix da Devolução"
}

Request Body

FieldTypeDescriptionCharacters
request_control_key *stringUniqueness key for the request (UUIDv4)36
reversal_amount *numberRefund amount11
reversal_reason *stringReason for the refundEnumerator reversal_reason
reversal_messagestringRefund message140

Enumerator reversal_reason

EnumeratorDescription
client_requestIf requested by the account owner
reconciliationFor reconciliation due to operational error

Response

Response Body

FieldTypeDescriptionCharacters
reversal_statusstringEnumerator for the reversal transaction status. Can be 'pending', 'sent', or 'rejected'36
transfer_amountnumberRefund transfer amount11
pix_transfer_keystringKey of the executed Pix transaction for the refund (UUIDv4)36
end_to_end_idstringIdempotency key of a Pix transaction within the SPI (Instant Payment System)32
request_control_keystringUnique identification key for the client's request (UUIDv4)36
created_atstringDate and time of the refund---
STATUS
201 created
Response Body: Reversão Enviada
{
"reversal_status": "sent",
"transfer_amount": 147.00,
"pix_transfer_key": "cdcf0d25-08a1-46e3-902a-6d7ca75e6c48",
"end_to_end_id": "E32402502202407112211Id9JbxoaiTf",
"request_control_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0c",
"created_at": "2021-10-22T20:30:23.459Z"
}
STATUS
202
Information

If a pix_transfer_status is returned in the pending state, the Pix request should not be retried. This transfer will be reprocessed. It is necessary to check the transfer status through the pix transfer query.

Response Body: Reversal pending
{
"reversal_status": "pending",
"transfer_amount": 147.00,
"pix_transfer_key": "cdcf0d25-08a1-46e3-902a-6d7ca75e6c48",
"end_to_end_id": "E32402502202407112211Id9JbxoaiTf",
"request_control_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0c",
"created_at": "2021-10-22T20:30:23.459Z"
}
STATUS
4XX
Response Body: Reversal rejected
{
"title": "titulo",
"description": "description in English",
"translation": "description in portuguese",
"code": "codigo",
"extra_fields": {
"pix_transfer_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"end_to_end_id": "E32402502202407112211Id9JbxoaiTf",
"pix_transfer_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
}
STATUS
400
Information

In addition to the errors listed below, the Pix refund may encounter other errors established in Pix Transaction.

HTTP CodeQI Code
code
Title
title
Description (eng)
Description
Description (ptbr)
translation
400QIT000001Bad RequestSchema ErrorErro de Schema
404PXT000018Reversal Original Transfer not FoundReversal original pix transfer not found.Transferência original da devolução não foi encontrada.
400PXT000017Reversal Too GreatReversal transfers sum amount surpasses that of original pix transfer.A soma das transferências de devolução ultrapassam o valor da transferência pix original.
400PXT000015Reversal date expiredReversal original transaction is older than 90 daysA data de criação da transação original é mais antiga que 90 dias
400PXT0000127Invalid Reversal ReasonReversal reason {reversal_reason} is not validRazão de reversão {reversal_reason} não é válida