Официальный сайт
Demo
Официальный сайт
Demo
  • Домой
  • Базовые Настройки
    • 📊 Аналитика оборотов
    • 🛡 Центр проверки пользователей
    • ⚙ Сценарии обработки сделок
    • 💳 Установка направлений
    • 🌐 Глобальная конфигурация
    • ✈ Telegram-интеграции
    • 🔍 AML проверка
  • Курсы и расчёт
    • 📊 Получение валют и направлений
    • 🧮 Расчёт суммы обмена
  • Заявки
    • 📝 Создание заявки
    • 📋 Получение заявки
  • Схемы данных
    • 📦 Все схемы

📊 Получение списка валют, направлений и городов

Code samples

GET /api/rates

Публичный эндпоинт. Возвращает активные валюты, направления обмена и города.

Example responses

200 Response

{
  "currencies": [
    {
      "id": 0,
      "code": "USDT",
      "name": "Tether",
      "type": "crypto",
      "network": "TRC20"
    }
  ],
  "directions": [
    {
      "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"
      }
    }
  ],
  "cities": [
    {
      "id": 0,
      "name": "Москва",
      "is_active": true,
      "sort_order": 0
    }
  ]
}

🔁 Ответы

StatusMeaningDescriptionSchema
200OKУспешный ответInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» currencies[Currency]falsenonenone
»» idintegerfalsenonenone
»» codestringfalsenonenone
»» namestringfalsenonenone
»» typestringfalsenonenone
»» networkstring¦nullfalsenonenone
» directions[Direction]falsenonenone
»» idintegerfalsenonenone
»» currency_from_idintegerfalsenonenone
»» currency_to_idintegerfalsenonenone
»» rate_marginnumberfalsenonenone
»» commission_percentnumberfalsenonenone
»» commission_fixednumberfalsenonenone
»» min_amountnumberfalsenonenone
»» reservenumberfalsenoneРезерв направления в валюте получения
»» show_crypto_addressbooleanfalsenonenone
»» require_crypto_addressbooleanfalsenonenone
»» show_card_numberbooleanfalsenonenone
»» require_card_numberbooleanfalsenonenone
»» show_full_namebooleanfalsenonenone
»» require_full_namebooleanfalsenonenone
»» show_phonebooleanfalsenonenone
»» require_phonebooleanfalsenonenone
»» show_emailbooleanfalsenonenone
»» require_emailbooleanfalsenonenone
»» show_telegrambooleanfalsenonenone
»» require_telegrambooleanfalsenonenone
»» show_citybooleanfalsenonenone
»» require_citybooleanfalsenonenone
»» currency_fromCurrencyfalsenonenone
»» currency_toCurrencyfalsenonenone
» cities[City]falsenonenone
»» idintegerfalsenonenone
»» namestringfalsenonenone
»» is_activebooleanfalsenonenone
»» sort_orderintegerfalsenonenone
This operation does not require authentication
Prev
Базовые Настройки
Next
Заявки