transactionReference is your idempotency key: resending a completed reference returns the original result without a second debit.| code | HTTP | message | when |
|---|---|---|---|
| 26 | 400 | Validation message, for example Amount must be greater than zero | Validation failed. |
| 60 | 400 | Wallet feature is not enabled for this merchant | Feature not enabled. |
| 63 | 404 | Wallet not found | Unknown wallet id or not yours. |
| 61 | 400 | Wallet is not active | Wallet is Frozen or Closed. |
| 64 | 400 | Amount exceeds the single transaction limit / Daily wallet debit limit exceeded | Limit reached. |
| 62 | 400 | Insufficient wallet balance | Available balance below amount plus fee. |
| 26 | 401 | Signature messages (see Authentication) | Signature or timestamp invalid. |
| 39 | 400 | Unable to verify the destination account | Name enquiry failed. |
| 37 | 400 | Withdrawal failed; funds were returned to the wallet | Provider failed; hold reversed. |
| 21 | 400 | Withdrawal could not be confirmed; it will be finalised automatically | Outcome unknown; stays Pending. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/wallets/withdraw' \
--header 'X-Timestamp: {{timestamp}}' \
--header 'X-Signature-Version: 2' \
--header 'X-Signature: {{signature}}' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"walletId": "7c1f3e2a9b4d4f6e8a0b1c2d3e4f5a6b",
"amount": 20000,
"destinationAccount": "0123456789",
"destinationBankCode": "000014",
"transactionReference": "WD-2026-000118",
"narration": "Customer cash-out"
}'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"walletId": "7c1f3e2a9b4d4f6e8a0b1c2d3e4f5a6b",
"transactionReference": "WD-2026-000118",
"status": "Successful",
"amount": 20000,
"fee": 53.75,
"gatewayFee": 26.88,
"vantPayFee": 16.87,
"merchantFee": 10,
"destinationAccount": "0123456789",
"accountName": "OKAFOR CHIDI"
}
}