📦 Схемы данных
City
{
"id": 0,
"name": "Москва",
"is_active": true,
"sort_order": 0
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer | false | none | none |
| name | string | false | none | none |
| is_active | boolean | false | none | none |
| sort_order | integer | false | none | none |
Currency
{
"id": 0,
"code": "USDT",
"name": "Tether",
"type": "crypto",
"network": "TRC20"
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer | false | none | none |
| code | string | false | none | none |
| name | string | false | none | none |
| type | string | false | none | none |
| network | string¦null | false | none | none |
Direction
{
"id": 0,
"currency_from_id": 0,
"currency_to_id": 0,
"rate_margin": 0,
"commission_percent": 0,
"commission_fixed": 0,
"min_amount": 0,
"reserve": 1000,
"show_crypto_address": true,
"require_crypto_address": true,
"show_card_number": true,
"require_card_number": true,
"show_full_name": true,
"require_full_name": true,
"show_phone": true,
"require_phone": true,
"show_email": true,
"require_email": true,
"show_telegram": true,
"require_telegram": true,
"show_city": true,
"require_city": true,
"currency_from": {
"id": 0,
"code": "USDT",
"name": "Tether",
"type": "crypto",
"network": "TRC20"
},
"currency_to": {
"id": 0,
"code": "USDT",
"name": "Tether",
"type": "crypto",
"network": "TRC20"
}
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer | false | none | none |
| currency_from_id | integer | false | none | none |
| currency_to_id | integer | false | none | none |
| rate_margin | number | false | none | none |
| commission_percent | number | false | none | none |
| commission_fixed | number | false | none | none |
| min_amount | number | false | none | none |
| reserve | number | false | none | Резерв направления в валюте получения |
| show_crypto_address | boolean | false | none | none |
| require_crypto_address | boolean | false | none | none |
| show_card_number | boolean | false | none | none |
| require_card_number | boolean | false | none | none |
| show_full_name | boolean | false | none | none |
| require_full_name | boolean | false | none | none |
| show_phone | boolean | false | none | none |
| require_phone | boolean | false | none | none |
| show_email | boolean | false | none | none |
| require_email | boolean | false | none | none |
| show_telegram | boolean | false | none | none |
| require_telegram | boolean | false | none | none |
| show_city | boolean | false | none | none |
| require_city | boolean | false | none | none |
| currency_from | Currency | false | none | none |
| currency_to | Currency | false | none | none |
CryptoAddress
{
"id": 0,
"currency_id": 0,
"address": "string",
"provider": "string",
"balance": 0,
"is_active": true
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer | false | none | none |
| currency_id | integer | false | none | none |
| address | string | false | none | none |
| provider | string¦null | false | none | none |
| balance | number | false | none | none |
| is_active | boolean | false | none | none |
Order
{
"id": 0,
"user_id": 0,
"direction_id": 0,
"crypto_address_id": 0,
"amount_in": "100.00000000",
"amount_out": "7500.00000000",
"currency_in": "USDT",
"currency_out": "RUB",
"rate": "75.00000000",
"commission": "0.00000000",
"status": "new",
"to_address": "",
"card_number": "string",
"full_name": "string",
"phone": "string",
"sbp_phone": "string",
"email": "string",
"telegram": "string",
"city_id": 0,
"tx_hash": "string",
"provider_data": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"direction": {
"id": 0,
"currency_from_id": 0,
"currency_to_id": 0,
"rate_margin": 0,
"commission_percent": 0,
"commission_fixed": 0,
"min_amount": 0,
"reserve": 1000,
"show_crypto_address": true,
"require_crypto_address": true,
"show_card_number": true,
"require_card_number": true,
"show_full_name": true,
"require_full_name": true,
"show_phone": true,
"require_phone": true,
"show_email": true,
"require_email": true,
"show_telegram": true,
"require_telegram": true,
"show_city": true,
"require_city": true,
"currency_from": {
"id": 0,
"code": "USDT",
"name": "Tether",
"type": "crypto",
"network": "TRC20"
},
"currency_to": {
"id": 0,
"code": "USDT",
"name": "Tether",
"type": "crypto",
"network": "TRC20"
}
},
"crypto_address": {
"id": 0,
"currency_id": 0,
"address": "string",
"provider": "string",
"balance": 0,
"is_active": true
}
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer | false | none | none |
| user_id | integer¦null | false | none | none |
| direction_id | integer | false | none | none |
| crypto_address_id | integer¦null | false | none | none |
| amount_in | string | false | none | none |
| amount_out | string | false | none | none |
| currency_in | string | false | none | none |
| currency_out | string | false | none | none |
| rate | string | false | none | none |
| commission | string | false | none | none |
| status | string | false | none | none |
| to_address | string | false | none | none |
| card_number | string¦null | false | none | none |
| full_name | string¦null | false | none | none |
| phone | string¦null | false | none | none |
| sbp_phone | string¦null | false | none | none |
| string¦null | false | none | none | |
| telegram | string¦null | false | none | none |
| city_id | integer¦null | false | none | none |
| tx_hash | string¦null | false | none | none |
| provider_data | object¦null | false | none | none |
| created_at | string(date-time) | false | none | none |
| updated_at | string(date-time) | false | none | none |
| direction | Direction | false | none | none |
| crypto_address | CryptoAddress | false | none | none |