Gateway
POST /v1/gateway/payment/{id}/cancel
Request
- Base URLhttps://api.pay.walletconnect.com
- Auth
- API key in header Api-Key
- or API key in header Api-Key
- or API key in header App-Id
Path parameters
idstring required
Payment ID
Example:pay_7fa2ecc101ARZ3NDEKTSV4RRFFQ69G5FAV
Headers
Api-Keystring nullable
App-Idstring nullable
Client-Idstring nullable
WCP-Versionstring nullable
Sdk-Namestring nullable
Sdk-Versionstring nullable
Sdk-Platformstring nullable
Response
Payment cancelled successfully
Example response
{
"cancelledAt": "2025-01-14T10:30:00Z",
"cancelledReason": "cancelled_by_user",
"paymentId": "pay_c4a2ecc101KQFN7X7RZACHTYV7JX5C4QET",
"status": "cancelled"
}Changes
No recorded changes to this operation across all 1 revision of this API.