Skip to main content
POST
/
api
/
withdrawals
/
:id
/
cancel
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
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.swiftpay.cx/llms.txt

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

Cancel Withdrawal

Cancels a pending withdrawal request. Only withdrawals with status pending can be cancelled.
Withdrawals in processing status cannot be cancelled.

Request

Authorization
string
required
Bearer token with your API key
id
string
required
The unique identifier of the withdrawal to cancel

Response

success
boolean
Whether the request was successful
data
object
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 StatusCan 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.