### Refund Processing API

You can apply for refund through the API. Making sure all the refund applications are successful orders under the same merchant. You can refund all amount by default or set it in param "&amount=10"

`$url = "https://portal.xpresswash.net/rest/v1/transactions/refund/".trim($id)";
$key = "iTsMykEy";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, "Authorization=".base64_encode($key)."&amount=10");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, [
'Authorization: Basic '.base64_encode($key)
]);
print_r($response);
print_r($info);
curl_close($curl);`

Refund submitting URL: https://portal.xpresswash.net/rest/v1/transactions/refund/XXXXXX