Users
User info
Returns user info
GET https://rest.any.cash/v1/user-info
This method is intended to allow a user to check their user details on Any.Cash side, namely:
- validate if API key passed in the request matches Any.Cash Wallet ID, - return FULL NAME of a user as per KYC, - user API key permissions, - return KYC-level of the user in Any.Cash.
first_name
String
user name as per KYC
last_name
String
user last name as per KYC
wallet_id
String
user`s Any.Cash wallet ID (e.g. AC522346)
{
"first_name": "Elon",
"last_name": "Musk",
"wallet_id": "AC734568",
"kyc_status": "VERIFIED_NAME",
"api_key_permissions": ["ALLOW_BILL_CREATION", "ALLOW_WITHDRAWAL_CREATION"]
}Returns current wallet currencies' balances
GET https://rest.any.cash/v1/balances
This method is intended to allow a user to query their balance in fiat & crypto currencies on Any.Cash side. If a specific currency is passed in the query (query string), then only the balance of that currency will be returned. If it is not passed, then all balances will be returned.
Query Parameters
currencies
String
currencies for which the balances are requested (if not specified, all wallet currencies' balances will be returned)
balances
Array
array of balance objects
currency
String
currency code
balance
String
current balance of the currency
{
"balances": [
{
"currency": "USD",
"balance": "2500"
},
{
"currency": "UAH",
"balance": "8000.05"
},
{
"currency": "BTC",
"balance": "1.9876005"
}
]
}
Last updated