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.
Create Withdrawal
Creates a new withdrawal request to transfer funds from your available balance.
You can only withdraw from your available balance. Reserved funds cannot
be withdrawn until released.
Request
Bearer token with your API key
Amount to withdraw in dollars (e.g., 50.00). Must not exceed available
balance.
Type of withdrawal: paypal or crypto
Required if destinationType is paypal. The PayPal email address to
receive funds.
Required if destinationType is crypto. The coin to withdraw (e.g.,
USDT, USDC).
Required if destinationType is crypto. The network (e.g., ERC20,
TRC20).
Required if destinationType is crypto. The destination wallet
address.
Optional internal notes for the withdrawal.
Response
Whether the request was successful
Unique withdrawal identifier (e.g., wd_abc123)
Withdrawal amount in cents
Withdrawal status: pending, processing, completed, failed,
cancelled
Type of withdrawal: paypal or crypto
JSON string containing destination details
ISO 8601 creation timestamp
# PayPal Withdrawal
curl -X POST https://api.swiftpay.cx/api/withdrawals \
-H "Authorization: Bearer mp_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"amount": 50.00,
"destinationType": "paypal",
"destinationDetails": {
"paypalEmail": "user@example.com"
}
}'
# Crypto Withdrawal
curl -X POST https://api.swiftpay.cx/api/withdrawals \
-H "Authorization: Bearer mp_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"amount": 100.00,
"destinationType": "crypto",
"destinationDetails": {
"cryptoCoin": "USDT",
"cryptoNetwork": "TRC20",
"cryptoAddress": "Txxxxxxxxxxxxxxxxxxxxxxx"
}
}'
{
"success": true,
"data": {
"id": "wd_abc123",
"amountInCents": 5000,
"status": "pending",
"destinationType": "paypal",
"destinationDetails": "{\"paypalEmail\":\"user@example.com\"}",
"requestedAt": "2024-01-15T10:30:00Z"
}
}
Withdrawal Flow
- Pending: Withdrawal request created, awaiting processing
- Processing: Funds being transferred to your account
- Completed: Funds successfully transferred
- Failed: Transfer failed (contact support)
- Cancelled: Withdrawal cancelled (funds returned to balance)
Before Withdrawing
Set Up Withdrawal Method
Add a PayPal or crypto wallet in your dashboard settings
Create Withdrawal
Submit withdrawal request with amount and method
Pending and processing withdrawals reduce your available balance to prevent
over-withdrawal.