Cancel Withdrawal
Cancels a pending withdrawal request. Only withdrawals with status pending can be cancelled.
Withdrawals in processing status cannot be cancelled.
Request
Bearer token with your API key
The unique identifier of the withdrawal to cancel
Response
Whether the request was successful
Updated status (cancelled)
Amount returned to available balance
curl -X POST https://api.swiftpay.cx/api/withdrawals/wd_abc123/cancel \
-H "Authorization: Bearer mp_live_your_api_key"
{
"success": true,
"data": {
"id": "wd_abc123",
"status": "cancelled",
"amountInCents": 50000
}
}
Cancellation Rules
| Current Status | Can Cancel? |
|---|
pending | ✅ Yes |
processing | ❌ No |
completed | ❌ No |
failed | ❌ No |
cancelled | ❌ No |
When a withdrawal is cancelled, the funds are immediately returned to your
available balance.