Przejdź do głównej zawartości

Get Available Withdrawal Currencies

GET
/withdrawal/available-currencies/

Get a list of currencies that are available for withdrawal based on your current balance and tenant configuration.

Authentication

Requires OAuth 2.0 authentication with read and write scopes.

Example Request

curl -X GET {{BASE_URL}}/withdrawal/available-currencies/ \
-H "Authorization: Bearer your_access_token"

Response

Success Response (200 OK)

{
"currencies": [
{
"currency": "USDTTRC20",
"name": "Tether USD",
"blockchain": "TRX",
"token": "USDT",
"balance": "1500.00000000",
"min_withdrawal": "10.00000000",
"max_withdrawal": "1500.00000000"
},
{
"currency": "USDTERC20",
"name": "Tether USD",
"blockchain": "ETH",
"token": "USDT",
"balance": "750.50000000",
"min_withdrawal": "10.00000000",
"max_withdrawal": "750.50000000"
}
],
"total": 2
}

Response Fields

FieldTypeDescription
currenciesarrayList of available currencies
currencies[].currencystringCombined currency code
currencies[].namestringCurrency full name
currencies[].blockchainstringBlockchain network
currencies[].tokenstringToken symbol
currencies[].balancestringCurrent available balance
currencies[].min_withdrawalstringMinimum withdrawal amount
currencies[].max_withdrawalstringMaximum withdrawal amount (limited by balance)
totalintegerTotal number of available currencies

Error Responses

400 Bad Request

{
"error": {
"code": "invalid_request",
"message": "Withdrawal currencies not configured",
"details": {}
}
}

Notes

  • Only shows currencies with positive balance
  • max_withdrawal is the lesser of configured limit or available balance
  • Currencies must be enabled for withdrawals in tenant configuration