curl --request POST \
--url https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel \
--header 'SWICH-API-Key: pk_test_xxxxxxxx'
const response = await fetch(
'https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel',
{
method: 'POST',
headers: {
'SWICH-API-Key': 'pk_test_xxxxxxxx'
}
}
);
const data = await response.json();
import requests
response = requests.post(
'https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel',
headers={
'SWICH-API-Key': 'pk_test_xxxxxxxx'
}
)
true
false
Refund Endpoints
Cancel Refund
Cancel a pending refund request
POST
/
Gateway
/
v
{version}
/
Refunds
/
{id}
/
cancel
curl --request POST \
--url https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel \
--header 'SWICH-API-Key: pk_test_xxxxxxxx'
const response = await fetch(
'https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel',
{
method: 'POST',
headers: {
'SWICH-API-Key': 'pk_test_xxxxxxxx'
}
}
);
const data = await response.json();
import requests
response = requests.post(
'https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel',
headers={
'SWICH-API-Key': 'pk_test_xxxxxxxx'
}
)
true
false
Overview
Cancel a refund that is in pending status. Once a refund is approved or processed, it cannot be cancelled.Path Parameters
uuid
required
Refund ID to cancel
string
required
API version (e.g., “1”)
Response
boolean
Returns
true if the refund was successfully cancelled, false otherwisecurl --request POST \
--url https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel \
--header 'SWICH-API-Key: pk_test_xxxxxxxx'
const response = await fetch(
'https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel',
{
method: 'POST',
headers: {
'SWICH-API-Key': 'pk_test_xxxxxxxx'
}
}
);
const data = await response.json();
import requests
response = requests.post(
'https://gateway.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel',
headers={
'SWICH-API-Key': 'pk_test_xxxxxxxx'
}
)
true
false