refund request
in case you need to full refund or partial refund your order, you can use this API to send your request to us. We will arrange the refund accordingly.
request for refund sample
var data = JSON.stringify({
"orderID": "<divit order uuid>",
"refundType": "partial", // or "full"
"refundAmount": 0,
"remarks": "string"
});
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://sandbox-api.divit.dev/paynow/orders/refund/request");
xhr.setRequestHeader("api-key", "<your api-key, e.g. dvt_rREeGJ4FXp69nQEJ7Arq08stvtacFyPrTzKr>");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.send(data);
note: the refund process requires 10 business days to complete