curl --request POST \ --url https://gateway.dev.waypay.live/Gateway/v1/Refunds \ --header 'SWICH-API-Key: pk_test_xxxxxxxx' \ --header 'Content-Type: application/json' \ --data '{ "trxnRef": "TXN20251212123456", "amount": 250, "reason": "Customer requested refund", "signature": "d4e5f6789012345678abcdef1234567" }'
{ "id": "550e8400-e29b-41d4-a716-446655440000", "paymentIntentId": "660e8400-e29b-41d4-a716-446655440001", "amount": 250, "currency": "PKR", "reason": "Customer requested refund", "status": 0, "isLive": true, "requestedAt": "2025-12-12T10:30:00Z", "approvedAt": null, "processedAt": null, "attemptCount": 0 }
Create a refund request for a processed transaction
0
1
2
3
4
5
6
7