Getting a commission for making a withdrawal
Last updated
Last updated
The method allows you to get data on the commission that will be debited during the withdrawal
Public API-key
Signing the request body with a private API-key
Request content type
application/json
Request body for receiving commission
Identifier of the address from which you want to withdraw
c4179377-b199-455b-ab08-16c517bb3f1b
Amount you want to withdraw
200
Deduct the gas fee (network fee) from the native balance of the address (available for payment addresses, PAY_OUT type)
(Relevant for withdrawing coins) Deduct the network commission from the withdrawal amount or from the payer's funds. By default, the network commission is deducted from the withdrawal amount.
POST /api-gateway/withdrawal-fee-token HTTP/1.1
Host: app.apollopayment.io
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"addressId": "c4179377-b199-455b-ab08-16c517bb3f1b",
"amount": "200",
"native": true,
"feeInAmount": true
}
{
"success": true,
"response": {
"blockchainFeeCurrencyUSDRate": "12.764",
"blockchainFeeCurrency": "USDT",
"withdrawalCurrencyUSDRate": "12.764",
"blockchainFeeSource": "advanced_balance",
"blockchainFee": "8.88",
"blockchainFeeUSD": "8.88",
"serviceFee": "1.2",
"serviceFeeUSD": "1.2",
"withdrawalMin": "2.0000",
"token": "U2FsdGVkX1+iHoPdDkTfi7NPHR4zUvZlWbnt2gwTDsUrdlIEnaZD6K85m//ImYdw2vL0Y7px2EQ8nRUn85Ysd30sajgAU72yqLmBE+LmNI26EFGCADm/zZDgMVc3sbRyd79gagJPPfA2RQ1SsETlXmnqYLNidjO7eI+JRfNCTXI=",
"until": "2025-06-09T13:18:29.422Z"
}
}