To work with user API, you must release secret key in user profile.
Request Example:
curl -X POST 'https://demo.exchanger-cms.com/user-api-get-info' \
--header 'X-Authorization: SECRET_KEY'
/user-api-get-info
Returns a user object.
/user-api-get-orders
Optional Search Parameters: "id", "token", "status", "exchange_id", "send_currency_id", "receive_currency_id".
Returns order object.
/user-api-get-referral-orders
Optional Search Parameters: "id", "token", "status", "exchange_id", "send_currency_id", "receive_currency_id".
Returns order object.
/user-api-get-investments
Optional Search Parameters: "id", "token", "active".
Returns investment object.
/user-api-create-investments
Parameter | Description |
---|---|
tariff | Tariff ID |
amount | Amount |
two_factor_authentication_password | 2FA Password (if 2FA is enabled) |
Returns investment object.
/user-api-get-details
Optional Search Parameters: "currency_id", "value".
Returns a user payment detail object.
/user-api-create-details
Parameter | Description |
---|---|
currency_id | Currency ID |
value | Payment Detail |
Returns a user payment detail object.
/user-api-delete-details
Parameter | Description |
---|---|
ids[] | ID or IDs |
/user-api-get-verification
Returns a verification request object.
/user-api-submit-verification
To verify a bank card, the required fields are bank card number, first name, last name and photos.
Parameter | Description |
---|---|
id_type | Document ID |
id_number | Document Number |
card_number | Card Number |
first_name | First Name |
last_name | Last Name |
middle_name | Middle Name |
birth_date | Date of Birth (format: dd.mm.yyyy) |
phone | Phone Number |
country | Country |
city | City |
address | Address |
zip_code | Postcode |
photos[] | Photos (maximum: 9000 kb.) |
Returns a verification request object.
/user-api-spend-balance
Parameter | Description |
---|---|
token | Order Token |
two_factor_authentication_password | 2FA Password (if 2FA is enabled) |
/user-api-change-password
Parameter | Description |
---|---|
password | Current Password |
new_password | New Password |
two_factor_authentication_password | 2FA Password (if 2FA is enabled) |
/user-api-setup-two-factor-authentication
Parameter | Description |
---|---|
two_factor_authentication_token | Secret Key |
two_factor_authentication_enable | Status (1: enable, 0: disable) |
two_factor_authentication_password | 2FA Password |
/user-api-get-inputs
Returns an array with exchange direction inputs ID as a key and its contents.