Skip to main content
POST
/
Gateway
/
v
{version}
/
Refunds
/
{id}
/
cancel
curl --request POST \
  --url https://gateway.dev.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel \
  --header 'SWICH-API-Key: pk_test_xxxxxxxx'
true

Documentation Index

Fetch the complete documentation index at: https://docs.waypay.live/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Cancel a refund that is in pending status. Once a refund is approved or processed, it cannot be cancelled.

Path Parameters

id
uuid
required
Refund ID to cancel
version
string
required
API version (e.g., “1”)

Response

success
boolean
Returns true if the refund was successfully cancelled, false otherwise
curl --request POST \
  --url https://gateway.dev.waypay.live/Gateway/v1/Refunds/550e8400-e29b-41d4-a716-446655440000/cancel \
  --header 'SWICH-API-Key: pk_test_xxxxxxxx'
true