Skip to main content

Request the return of a received Pix

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

Request

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

Path Params

FieldTypeDescriptionCharacters
account_key *uuidv4Unique account identification key.36
pix_transfer_key *uuidv4Unique identification key for the Pix transfer in the QI system.36
Request Body
{
"request_control_key": "303393bf-8f2e-4ff0-b326-ee7ad612e8ca",
"reversal_amount": 147,
"reversal_reason": "client_request",
"reversal_message": "Mensagem Pix da Devolução",
"tfa_info": {
"approver_document_number": "98765432100",
"contact_type": "email"
}
}

Request Params

FieldTypeDescriptionCharacters
request_control_key *uuidv4Uniqueness key for the request.36
reversal_amount *numberRefund amount.11
reversal_reason *stringReason for the refund.Enumerator reversal_reason
reversal_messagestringRefund message.140
tfa_info *ObjectObject containing the document of the account approver and the means of contact.Object tfa_info

Enumerator reversal_reason

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

Object tfa_info

FieldTypeDescriptionCharacters
approver_document_number *stringDocument number of the account approver.11
contact_type *stringMeans of contact with the account approver, can be sms or email

Response

STATUS
202
Response Body: Reversal Requested
{
"reversal_status": "pending_2fa_approval",
"end_to_end_id": "E32402502202405081755SxyT2DDcVwc",
"pix_transfer_key": "cdcf0d25-08a1-46e3-902a-6d7ca75e6c48",
"request_control_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0c",
"created_at": "2021-10-22T20:30:23.459Z"
}

Response Body

FieldTypeDescriptionCharacters
reversal_statusenumeratorEnumerator for the reversal transaction status.Enumerator reversal_status
transfer_amountnumberAmount of the reversal transfer.11
pix_transfer_keyuuidv4Key of the executed pix transaction for the reversal.36
request_control_keyuuidv4Unique identification key for the request used by the client.36
created_atstringDate and time of the reversal.10

Enumerator reversal_status

EnumeratorDescription
sentPix transfer successfully executed.
pendingPix transfer pending.
pending_2fa_approvalPix transfer pending two-factor approval.
rejectedPix transfer rejected.
STATUS
4xx
Response Body: Reversão Rejeitada
{
"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": "E32402502202405081755SxyT2DDcVwc",
"pix_transfer_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
}
Information

In addition to the errors previously listed for Pix transfer, a Pix refund can also return the errors listed below.

HTTP Code
status
QI 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