POST

purchaserequests/{id}/refund/void

https://[api-endpoint-environment]/purchaserequests/{id}/refund/void
Voids (reverses) a refund. This will ensure that any captures of the customer's account are marked as void. To support error scenarios you do not need to know the refund id to void, only the original purchase request id and the unique merchant refund reference code created by the caller at the time of the refund request.
{
  "refCode": "6ifb67bf76faaa",
  "refundAmount": 4.99,
  "originator": {
    "locationId": "{{locationId}}",
    "deviceRefCode": "205203",
    "staffActor": {
      "refCode": "3071"
    }
  }
}