Skip to main content
POST
/
tsq
/
api
/
v1
/
query
/
refund-reversal
Query Refund Reversal
curl --request POST \
  --url https://dev.waftpay.io/tsq/api/v1/query/refund-reversal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "request_uuid": "A333RTYUT"
}
'
import requests

url = "https://dev.waftpay.io/tsq/api/v1/query/refund-reversal"

payload = { "request_uuid": "A333RTYUT" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({request_uuid: 'A333RTYUT'})
};

fetch('https://dev.waftpay.io/tsq/api/v1/query/refund-reversal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.waftpay.io/tsq/api/v1/query/refund-reversal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'request_uuid' => 'A333RTYUT'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://dev.waftpay.io/tsq/api/v1/query/refund-reversal"

payload := strings.NewReader("{\n \"request_uuid\": \"A333RTYUT\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://dev.waftpay.io/tsq/api/v1/query/refund-reversal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"request_uuid\": \"A333RTYUT\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://dev.waftpay.io/tsq/api/v1/query/refund-reversal")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"request_uuid\": \"A333RTYUT\"\n}"

response = http.request(request)
puts response.read_body
{
  "code": 102,
  "status": "SUCCESS",
  "description": "Transaction success",
  "data": {}
}

Overview

Use this endpoint to check the status of a refund or reversal request that was previously initiated in the platform.
Auth: Requires a Collection token (Authorization: Bearer <collection_token>).
Need to initiate a refund or reversal? See Initiate Refund/Reversal.

Endpoint

POST {BASE_URL}/tsq/api/v1/query/refund-reversal

Request body

Provide the request_uuid you received when the refund/reversal was created.
{
  "request_uuid": "A333RTYUT"
}

Example response

{
  "code": 102,
  "status": "SUCCESS",
  "description": "Transaction success",
  "results": {
    "result_code": "21",
    "result_description": "The service request is processed successfully",
    "amount": "1015.00",
    "total_charges": "0.00",
    "total_amount": "1015.00",
    "account": "254792452002",
    "original_payment_uuid": "882231418121042119",
    "original_transaction_reference": "TNC0009886898418",
    "original_external_reference": "1V1OPZZGHQ",
    "external_reference": "1V33UUE1IR",
    "time_processed": "2025-08-26T05:20:27Z"
  }
}

Notes

  • If the refund/reversal is not found, the response body will include a NOT FOUND status.
  • Errors follow the standard error shape. See Errors.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
request_uuid
string
required

Refund/reversal request UUID returned when the refund/reversal was created.

Example:

"A333RTYUT"

Response

Refund reversal status payload

code
integer
required

Application code for the query result (e.g., 102=SUCCESS, 103=FAILED, 401/404 represented in body where applicable).

status
string
required

Outcome label (e.g., SUCCESS, FAILED, FAILED AUTHORIZATION, NOT FOUND).

description
string
required

Human-readable description of the outcome.

results
object
required

Provider/platform response fields for a refund reversal query. Fields are optional and may vary by provider.