POST
/
api
/
mitigation
/
refund
curl --request POST \
  --url https://test.paysight.io/api/mitigation/refund \
  --header 'Authorization: <api-key>' \
  --header 'ClientId: <clientid>' \
  --header 'Content-Type: application/json' \
  --header 'UserEmail: <useremail>' \
  --data '{
  "transactionId": "c0ffeec0-ffee-c0ff-eec0-ffeec0ffhec0",
  "amount": 20,
  "refundItems": [
    {
      "itemId": "item123",
      "quantity": 1
    }
  ],
  "sendUserCommunication": true,
  "alertSource": "ChargebackHelp",
  "alertType": "RDR"
}'
{
  "success": true,
  "message": "<string>",
  "refundId": "<string>"
}

Authorizations

Authorization
string
header
required

Your Paysight API key

Headers

ClientId
string
required

Your Paysight Tenant/Client Id. This is the id of the parent company listed in https://app.paysight.io/management/companies. Alternatively, this will be provided by Paysight

UserEmail
string
required

The email address of the party or group making the request

Body

application/json

Request payload for issuing a refund

Response

200
application/json

Refund result

Response payload returned after processing a refund. Note in the case of RDR, the refund will only be recorded as it is already completed.