Skip to content

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

FieldTypeRequiredConstraintDescription
currencystringYesSee CurrencyWithdraw currency
amountdoubleYes> 0; precision in CurrencyWithdraw amount
receive_account_nostringYesSee List receive accountsReceive account number

Response fields (data)

FieldTypeDescription
currencystringWithdraw currency
amountdoubleSubmitted withdraw amount
receive_account_nostringReceive account number
withdraw_fee_from_payoutobjectFee details when deducted from payout; structure below
withdraw_fee_from_balanceobjectFee details when deducted from balance; structure below

Fee detail fields (withdraw_fee_from_payout / withdraw_fee_from_balance)

FieldTypeDescription
fee_charge_typeint32See Fee charge type
withdraw_amountdoubleWithdraw amount
withdraw_feedoubleFee
receive_amountdoubleExpected receive amount
deduct_amountdoubleActual wallet deduct amount; may be echoed on create for comparison (validated when > 0)
currencystringCurrency; 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"
    }
  }
}