Reference
Models
VerifyMetaData
VerifyMetaData
The model containing information about the next step to confirm actions.
Name
Type
Description
key
String
Public key for verification
codeLength
Int
Number of characters in the code
timeout
Int
The period between requesting a new confirmation code
recipient
String?
Recipient of confirmation code
VerifyMetaData.NextStep
VerifyMetaData.NextStep
Model pointing to the next step of the flow.
Type
Description
PHONE
Code sent via text message
Code sent via email
SET_PASSWORD
Need to set password
SET_EMAIL
Need to set email
SET_PERSONAL_DATA
Need to add personal data
Wallet
Wallet
Model containing data about the wallet balance.
Name
Type
Description
currency
String
Name of cryptocurrency
balance
Double
Balance in crypto
fiatCurrency
String
Name of fiat currency
fiatBalance
Double
Balance in fiat
MercuryoUser
MercuryoUser
Model containing info about the user.
Name
Type
Description
uuid
String
Unique identifier of the user
firstName
String
First name of the user
lastName
String
Last name of the user
fullName
String
Full name of the user
birthday
String
Date of birth, format is dd-MM-yyyy
String
Email of the user
referral
String
Referral code of the user
countryCode
String
Country code of the user
phone
String
Phone of the user
sendPromo
Boolean
Consent to receive information about promotions
fiatCurrency
String
Saved fiat currency of the user
SanctionStatusType
SanctionStatusType
Sanctions status of the user. Choices are INCOMPLETE
, UNDER_REVIEW
, COMPLETED
, FAILED
.
VerificationStatusType
VerificationStatusType
Identification status of the user. Choices are INCOMPLETE
, UNDER_REVIEW
, COMPLETED
, FAILED
.
DocumentDetails
DocumentDetails
Model containing data regarding possible errors in submitted verification documents.
Name
Type
Description
checkEnable
Boolean
Ability to pass verification again
DocumentDetails.Error
DocumentDetails.Error
Name
Typ
Description
documentType
String
Document caused the failure
message
String
Description of the error
Card
Card
Model containing data about card.
Name
Type
Description
id
String
Card ID
createdAt
Long
Timestamp of creation
paymentSystem
String
Payment system
number
String
Last 4 digits of card number
expirationMonth
String
Month of expiration date
expirationYear
String
Year of expiration date
Bank
Bank
Model containing data about bank.
Bank.Color
Bank.Color
Name
Type
Description
background
String
Background color of bank card
foreground
String
Color of text and info of bank card
ConverterResult
ConverterResult
Model containing buying token, selling token and additional info about the state of converter.
Name
Type
Description
token
String
Buying or selling token
currency
String
Crypto currency
amount
String
Amount of crypto
fiatCurrency
String
Fiat currency
fiatAmount
String
Amount of fiat
Rate
Rate
Model containing data about exchange rates.
Name
Type
Description
from
String
Source currency
to
String
Destination currency
type
String
Type of operation buy
, sell
rate
String
Exchange rate to
/from
TransactionStatus
TransactionStatus
Model containing data about the transaction such as ID and status. Intermediate status states with one of the optional fields are possible, for example, Redirect
may come for a purchase indicating the need to go through 3ds, or isVerifyDescription
indicating the need to enter a descriptor to complete the transaction.
Name
Type
Description
id
String
Mercuryo ID of transction
status
String
Status of transaction
isVerifyDescription
Boolean
Flag showing whether user needs to enter descriptor on the next step
Redirect
Redirect
Model containing data about the need to be redirected to the specified URL.
Name
Type
Description
form
List<FormItem>
List of additional data items for URL composing
requestType
String
Type of request GET
or POST
uriTemplate
String
Address
Redirect.FormItem
Redirect.FormItem
Model containing data about additional parameters for URL.
Name
Type
Description
key
String
Key
template
String
Info about the key
TransactionType
TransactionType
Type
Description
DEPOSIT
Deposit of crypto from another wallet
BUY
Buying crypto with card
SELL
Selling crypto to card
WITHDRAW
Withdrawal of crypto to another wallet
REFERRAL
Top-up of crypto using referral program
EstimateWithdrawFee
EstimateWithdrawFee
Model containing the list of available transaction Fees.
Name
Type
Description
cryptoCurrency
String
Crypto currency
fiatCurrency
String
Fiat currency
Fee
Fee
Model containing data about fees.
Name
Type
Description
id
String
ID of the fee
level
String
Possible types of transaction, choices are slow
, medium
, fast
fee
String
Fee in crypto
fiatAmount
String
Fee in fiat
isPaidByUser
Boolean
Shows whether fee is deducted from user's balance
estimatedTime
EstimatedTime
Expected time of transaction
EstimatedTime
EstimatedTime
Model containing data about estimated time of transaction.
Name
Type
Description
max
Int?
Max transaction time
min
Int?
Min transaction time
Limit
Limit
Model containting data about the user's limits.
Name
Type
Description
initDay
Double
Daily limit of the user
day
Double
Balance of daily limit
initWeek
Double
Weekly limit of the user
week
Double
Balance of weekly limit
initMonth
Double
Monthly limit of the user
month
Double
Balance of monthly limit
operationMin
Double
System-wide minimum transaction amount for any user
operationMax
Double
System-wide maximum transaction amount for any user
LimitPair
LimitPair
Pair of limits for fiat and crypto currencies.
Last updated
Was this helpful?