English
Calculate Withdraw Fee
- Method:
POST - Path:
/coin/v1/withdraw/calc - Parameters: JSON Body
Optional endpoint for previewing fees and deduct amounts under both charge types. You may pass deduct_amount into the create API for comparison; if it does not match the actual deduct amount, create will fail.
Request fields
| Field | Type | Required | Constraint | Description |
|---|---|---|---|---|
currency | string | Yes | See Currency | Withdraw currency |
amount | double | Yes | > 0; precision in Currency | Withdraw amount |
receive_account_no | string | Yes | See List receive accounts | Receive account number |
Response fields (data)
| Field | Type | Description |
|---|---|---|
currency | string | Withdraw currency |
amount | double | Submitted withdraw amount |
receive_account_no | string | Receive account number |
withdraw_fee_from_payout | object | Fee details when deducted from payout; structure below |
withdraw_fee_from_balance | object | Fee details when deducted from balance; structure below |
Fee detail fields (withdraw_fee_from_payout / withdraw_fee_from_balance)
| Field | Type | Description |
|---|---|---|
fee_charge_type | int32 | See Fee charge type |
withdraw_amount | double | Withdraw amount |
withdraw_fee | double | Fee |
receive_amount | double | Expected receive amount |
deduct_amount | double | Actual wallet deduct amount; may be echoed on create for comparison (validated when > 0) |
currency | string | Currency; same as request currency |
Success response example
json
{
"status": 200,
"msg": "SUCCESS",
"data": {
"currency": "USDT",
"amount": 100,
"receive_account_no": "MWAxxxxxxxxxxxUT",
"withdraw_fee_from_payout": {
"fee_charge_type": 1,
"withdraw_amount": 100,
"withdraw_fee": 1,
"receive_amount": 99,
"deduct_amount": 100,
"currency": "USDT"
},
"withdraw_fee_from_balance": {
"fee_charge_type": 2,
"withdraw_amount": 100,
"withdraw_fee": 1,
"receive_amount": 100,
"deduct_amount": 101,
"currency": "USDT"
}
}
}