Skip to main content
POST
/
transaction
/
refund
Refund
curl --request POST \
  --url https://gateway.3xpay.co/transaction/refund \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --header 'api_secret: <api-key>' \
  --data '
{
  "transaction_id": "aafee9f5-94b3-4e3d-ab6a-416d0a1218cb"
}
'
{
"transaction_id": "aafee9f5-94b3-4e3d-ab6a-416d0a1218cb",
"status": "IN_PROCESSING",
"value": 100.5,
"e2e_id": "E23114447202304181826HJNwY577YDX",
"payer": {
"name": "<string>",
"document": "<string>",
"bankCode": "<string>",
"bankName": "<string>",
"bankIspb": "<string>"
}
}

Authorizations

api_key
string
header
required
api_secret
string
header
required

Body

application/json
transaction_id
string
required

ID da transação a ser estornada

Example:

"aafee9f5-94b3-4e3d-ab6a-416d0a1218cb"

Response

Estorno iniciado com sucesso

transaction_id
string

ID da transação de estorno

Example:

"aafee9f5-94b3-4e3d-ab6a-416d0a1218cb"

status
string

Status do estorno

Example:

"IN_PROCESSING"

value
number

Valor do estorno em reais

Example:

100.5

e2e_id
string | null

Identificador end-to-end da transação PIX

Example:

"E23114447202304181826HJNwY577YDX"

payer
object

Dados do pagador