POST
/
payments
/
refund
curl --request POST \
  --url https://sandbox-api.superpagamentos.com/payments/refund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "transactionId": "<string>"
}'
{
"data": {
"id": "0b64746e-d77b-4ff4-8b9d-272b7e5cbbb3",
"status": "REFUNDED",
"paymentMethod": "card",
"currency": "BRL",
"amount": 10000,
"postbackUrl": "",
"installments": 10,
"buyerDetails": {
"firstName": "Cliente",
"lastName": "Teste",
"email": "clienteteste@superpagamentos.com",
"document": "21671880056",
"phone": null,
"street": "Rua B",
"streetNumber": 200,
"neighborhood": "Jardins",
"complement": "Casa 10",
"reference": "Ao lado da padaria",
"city": "São Paulo",
"state": "SP"
},
"cardDetails": {
"brand": "Visa",
"first4Digits": "4716",
"last4Digits": "2104",
"expirationMonth": "10",
"expirationYear": "2031"
},
"splits": [],
"createdAt": "2025-06-09T20:59:45.597Z",
"updatedAt": "2025-06-09T20:59:45.597Z"
},
"message": "Reembolso realizado com sucesso"
}

Authorizations

Authorization
string
header
required

Token JWT gerado na rota de autenticação (/auth). Deve ser enviado no formato: Bearer <token>

Path Parameters

transactionId
string
required

ID da transação que será reembolsada

Body

application/json

Dados necessários para realizar o reembolso

The body is of type object.

Response

200
application/json

Reembolso realizado com sucesso

The response is of type object.