openapi: 3.0.3 info: title: 'MagicPayments API' description: 'MagicPayments API' version: 1.0.0 servers: - url: 'https://api.magic-payments.com' paths: '/api/{wallet_uuid}/invoice': post: summary: Пополнение operationId: '' description: "Запрос на пополнение кошелька\n\n" parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: status: success comission: 12.5 total: 487.5 amount: 500 url: 'https://example.com/redirect' transaction: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: status: type: string example: success description: 'Статус запроса' comission: type: number example: 12.5 description: Комиссия total: type: number example: 487.5 description: 'Сумма к зачислению' amount: type: integer example: 500 description: 'Сумма к оплате' url: type: string example: 'https://example.com/redirect' description: 'URL для перенаправления на страницу оплаты' transaction: type: object properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 amount: type: integer example: 500 type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null description: 'Маска карты (может быть null)' 400: description: '' content: application/json: schema: type: object example: status: error error: 'Данный канал не поддерживает рекуррентные платежи' code: recurrent_not_supported properties: status: type: string example: error description: 'Статус запроса' error: type: string example: 'Данный канал не поддерживает рекуррентные платежи' code: type: string example: recurrent_not_supported 422: description: '' content: application/json: schema: type: object example: status: error error: amount: - 'Поле amount должно быть числом.' properties: status: type: string example: error description: 'Статус запроса' error: type: object properties: amount: type: array example: - 'Поле amount должно быть числом.' items: type: string tags: - Операции requestBody: required: true content: application/json: schema: type: object properties: amount: type: number description: 'Сумма к пополнению' example: 1000.0 currency: type: string description: 'Код валюты в ISO 4217' example: USD order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null calculate: type: boolean description: 'Рассчитать комиссию' example: true tokenize_card: type: boolean description: 'Получить токен карты (для рекуррентных платежей)' example: true tag: type: string description: 'Тэг терминала.' example: trusted callback_method: type: string description: 'Определяет метод вызова callback. Возможные значения: POST, GET' example: POST callback_url: type: string description: 'Callback url вызывается GET/POST (определяется в поле callback_method) запросом, когда статус транзакции меняет статус. В параметрах GET запроса передаются: transaction - идентификатор транзакции, order - внешний идентификатор транзакции. В теле POST запроса передается текущая транзакция в виде JSON.' example: 'http://www.keeling.com/odio-adipisci-labore-perferendis-quia.html' success_url: type: string description: 'Вызывается в случае успешной оплаты. В параметрах GET запроса передаются: transaction - идентификатор транзакции, order - внешний идентификатор транзакции.' example: 'http://gusikowski.com/quae-excepturi-atque-nobis-quis.html' fail_url: type: string description: 'Вызывается в случае ошибки в оплате. В параметрах GET запроса передаются: transaction - идентификатор транзакции, order - внешний идентификатор транзакции.' example: 'http://www.daugherty.net/reprehenderit-amet-rerum-quos-dolor.html' card_token: type: string description: 'Токен карты (для рекуррентных платежей)' example: nisi payin_address: type: object description: 'Адрес для пополнения (для оплаты host2host)' example: null properties: type: type: string description: 'Тип адреса для перевода. Возможные значения: phone.' example: phone phone: type: string description: 'Номер телефона для перевода' example: '79991115566' mobile_provider: type: string description: 'Идентификатор оператора мобильной связи пользователя' example: MTS card: type: object description: 'Данные карты (для оплаты host2host)' example: [] properties: pan: type: string description: 'Номер карты (для оплаты host2host)' example: '4111111111111111' cardholder: type: string description: 'Держатель карты (для оплаты host2host)' example: 'IVAN IVANOV' month: type: string description: 'Месяц срока действия карты (2 цифры) (для оплаты host2host)' example: '01' year: type: string description: 'Год срока действия карты (2 цифры) (для оплаты host2host)' example: '28' cvv: type: string description: 'CVV карты (3 цифры) (для оплаты host2host)' example: '123' addition_data: type: object description: 'Дополнительные данные для оплаты (не обязательно)' example: [] properties: email: type: string description: 'Email клиента' example: quinton.champlin@example.org phone: type: string description: 'Телефон клиента' example: null mobile_provider: type: string description: 'Идентификатор оператора мобильной связи пользователя' example: null address: type: string description: 'Адрес клиента' example: null city: type: string description: 'Город клиента' example: null state: type: string description: 'Штат/область клиента' example: null country: type: string description: 'Страна клиента' example: null zip_code: type: string description: 'Почтовый индекс клиента' example: null customer_ip: type: string description: 'IP адрес клиента' example: null customer_id: type: string description: 'ID клиента' example: null customer_first_name: type: string description: 'Имя клиента' example: null customer_last_name: type: string description: 'Фамилия клиента' example: null customer_doc_number: type: string description: 'Номер документа удостоверяющего личность' example: null customer_date_birth: type: string description: 'Дата рождения в формате ДД-ММ-ГГГГ' example: null device_browser_accept_header: type: string description: 'Принимаемый контент (для 3DS 2.0)' example: null device_browser_java_enabled: type: string description: 'Признак работы с Java (для 3DS 2.0)' example: null device_browser_language: type: string description: 'Язык браузера (для 3DS 2.0)' example: null device_browser_color_depth: type: string description: 'Глубина цвета браузера (для 3DS 2.0)' example: null device_browser_screen_height: type: string description: 'Высота экрана (для 3DS 2.0)' example: null device_browser_screen_width: type: string description: 'Ширина экрана (для 3DS 2.0)' example: null device_browser_window_height: type: string description: 'Высота окна браузера (для 3DS 2.0)' example: null device_browser_window_width: type: string description: 'Ширина окна браузера (для 3DS 2.0)' example: null device_browser_tz: type: string description: 'Часовой пояс браузера в минутах от UTC (для 3DS 2.0)' example: null device_browser_user_agent: type: string description: 'Пользовательский агент браузера (для 3DS 2.0)' example: null challenge_window_size: type: string description: 'Размер окна для challenge (для 3DS 2.0)' example: null payment_system_id: type: string description: 'ID платежной системы' example: Sberbank required: - amount parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: 0eae84d3-b5f9-34f0-9b02-8d14e237fd98 required: true schema: type: string '/api/{wallet_uuid}/withdrawal': post: summary: Выплата operationId: '' description: "Запрос выплаты на карту с кошелька\n" parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: status: success comission: 12.5 total: 487.5 amount: 500 transaction: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: status: type: string example: success description: 'Статус запроса' comission: type: number example: 12.5 description: Комиссия total: type: number example: 487.5 description: 'Сумма к зачислению' amount: type: integer example: 500 description: 'Сумма к оплате' transaction: type: object properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 amount: type: integer example: 500 type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null description: 'Маска карты (может быть null)' 400: description: '' content: application/json: schema: type: object example: status: error error: 'Ошибка доступа' code: access_denied properties: status: type: string example: error description: 'Статус запроса' error: type: string example: 'Ошибка доступа' code: type: string example: access_denied 422: description: '' content: application/json: schema: type: object example: status: error error: amount: - 'Поле amount должно быть числом.' properties: status: type: string example: error description: 'Статус запроса' error: type: object properties: amount: type: array example: - 'Поле amount должно быть числом.' items: type: string tags: - Операции requestBody: required: true content: application/json: schema: type: object properties: amount: type: number description: 'Сумма к выплате' example: 211094519.08 currency: type: string description: 'Код валюты в ISO 4217' example: USD order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null card: type: string description: 'Карта для выплаты (16-19 цифр)' example: '4111111111111111' payout_address: type: object description: 'Адрес для перевода' example: null properties: type: type: string description: 'Тип адреса для перевода. Возможные значения: usdt_trc20 / phone / wallet.' example: usdt_trc20 address: type: string description: 'Адрес для перевода (для type = usdt_trc20)' example: TCgBa3WVrrcQoBfd6bZdiFLatZ.... wallet: type: string description: 'Номер кошелька для перевода (для type = wallet)' example: TCgBa3WVrrcQoBfd6bZdiFLatZ.... phone: type: string description: 'Номер телефона для перевода (для type = phone)' example: '79991115566' mobile_provider: type: string description: 'Идентификатор оператора мобильной связи пользователя (для type = phone)' example: MTS calculate: type: boolean description: 'Рассчитать комиссию' example: true tag: type: string description: 'Тэг терминала.' example: trusted callback_url: type: string description: 'Callback url вызывается GET запросом, когда статус транзакции меняется на completed. В параметрах GET запроса передаются: transaction - идентификатор транзакции, order - внешний идентификатор транзакции' example: 'http://aufderhar.com/ipsum-repellendus-fugit-accusantium-placeat-distinctio-culpa-dignissimos-molestiae' callback_method: type: string description: 'Определяет метод вызова callback. Возможные значения: POST, GET' example: POST addition_data: type: object description: 'Дополнительные данные для оплаты (не обязательно)' example: [] properties: email: type: string description: 'Email клиента' example: batz.montana@example.net phone: type: string description: 'Телефон клиента' example: null address: type: string description: 'Адрес клиента' example: null city: type: string description: 'Город клиента' example: null state: type: string description: 'Штат/область клиента' example: null country: type: string description: 'Страна клиента' example: null zip_code: type: string description: 'Почтовый индекс клиента' example: null customer_ip: type: string description: 'IP адрес клиента' example: null customer_id: type: string description: 'ID клиента' example: null customer_first_name: type: string description: 'Имя клиента' example: null customer_last_name: type: string description: 'Фамилия клиента' example: null customer_doc_number: type: string description: 'Номер документа удостоверяющего личность' example: null customer_date_birth: type: string description: 'Дата рождения в формате ДД-ММ-ГГГГ' example: null card_expiration_year: type: string description: 'Год строка действия карты' example: null card_expiration_month: type: string description: 'Месяц строка действия карты' example: null cardholder: type: string description: 'Держатель карты' example: 'IVAN IVANOV' payment_system_id: type: string description: 'ID платежной системы' example: Sberbank required: - amount - card parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: 73384f2b-c1f2-3919-9cfd-42cb2fddeb77 required: true schema: type: string '/api/{wallet_uuid}/status': post: summary: 'Статус операции' operationId: '' description: 'Запрос статуса по операции (выплата/пополнение) (транзакцию можно получить по ее uuid или по внешнему идентификатору order)' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' description: 'Дата создания в UTC' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 description: 'Сумма зачисления' amount: type: integer example: 500 description: 'Сумма заказа' type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null description: 'Маска карты (может быть null)' tags: - Операции requestBody: required: false content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: deae37b2-0246-3ed5-8cbd-d33eb1717697 required: true schema: type: string '/api/{wallet_uuid}/refund': post: summary: Refund operationId: refund description: "Оформить refund по операции.\nВ ответ возвращается refund транзакция." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' description: 'Дата создания в UTC' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 description: 'Сумма зачисления' amount: type: integer example: 500 description: 'Сумма заказа' type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null tags: - Операции requestBody: required: false content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: e427f173-9dbd-3459-86f8-acc9a1190b51 required: true schema: type: string '/api/{wallet_uuid}/chargeback': post: summary: Chargeback operationId: chargeback description: "Оформить chargeback по операции.\nВ ответ возвращается chargeback транзакция." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' description: 'Дата создания в UTC' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 description: 'Сумма зачисления' amount: type: integer example: 500 description: 'Сумма заказа' type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null tags: - Операции requestBody: required: true content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null arn: type: string description: 'Уникальный номер операции в клиринговом обмене между банками' example: null reason_code: type: string description: 'Характеризует причину возникновения Chargeback' example: null required: - arn parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: c1069307-328d-3312-8b55-d894a9b813d8 required: true schema: type: string '/api/{wallet_uuid}/additional_data': post: summary: 'Отправка дополнительных параметров по транзакции' operationId: '' description: "Дополнительные поля:\nUZS: sms_code" parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' description: 'Дата создания в UTC' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 description: 'Сумма зачисления' amount: type: integer example: 500 description: 'Сумма заказа' type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null description: 'Маска карты (может быть null)' tags: - Операции requestBody: required: false content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null addition_data: type: object description: 'Дополнительные параметры' example: [] properties: sms_code: type: string description: 'Код из смс (для UZS)' example: null parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: e7f0876c-f8f8-3eb0-bb12-ed21848a54c4 required: true schema: type: string '/api/{wallet_uuid}/paid': post: summary: 'Оплата счета' operationId: '' description: 'Отправка чека и реквизитов плательщика по оплаченному счету' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' description: 'Дата создания в UTC' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 description: 'Сумма зачисления' amount: type: integer example: 500 description: 'Сумма заказа' type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null description: 'Маска карты (может быть null)' tags: - Операции requestBody: required: true content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null receipt: type: object description: Чек example: [] properties: sender: type: string description: 'Реквизиты плательщика' example: 'Иван Иванович 4432' file_base64: type: string description: 'Файл чека в base64' example: null file_extension: type: string description: 'Расширение файла чека' example: jpg file_name: type: string description: 'Имя файла чека' example: image required: - receipt parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: 3079abaf-fc22-39ab-a79f-024ddd9e83bc required: true schema: type: string '/api/{wallet_uuid}/cancel': post: summary: 'Отмена оплаты по счету' operationId: '' description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' description: 'Дата создания в UTC' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 description: 'Сумма зачисления' amount: type: integer example: 500 description: 'Сумма заказа' type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null description: 'Маска карты (может быть null)' tags: - Операции requestBody: required: false content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: f66cb70d-0d5a-37ec-b4ee-8383a7469f32 required: true schema: type: string '/api/{wallet_uuid}/dispute': post: summary: 'Начать спор по пополнению' operationId: '' description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' description: 'Дата создания в UTC' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 description: 'Сумма зачисления' amount: type: integer example: 500 description: 'Сумма заказа' type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null description: 'Маска карты (может быть null)' tags: - Операции requestBody: required: false content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: 5769a08f-80ba-3175-a9a5-669aa8fa46d2 required: true schema: type: string '/api/{wallet_uuid}/dispute/messages': post: summary: 'Получение сообщений по спору' operationId: '' description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: array items: type: object example: - created_at: '2024-01-01T12:00:00Z' direction: INCOME type: TEXT message: 'Не пришли деньги' - created_at: '2024-01-01T12:01:00Z' type: IMAGE direction: INCOME base64_content: 0L/RgNC40LzQtdGA filename: photo extension: .jpg - created_at: '2024-01-01T12:03:00Z' direction: OUTCOME type: TEXT message: Разобрались tags: - Операции requestBody: required: false content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: b10afab4-99c7-3be0-aee9-bf19cf15e72e required: true schema: type: string '/api/{wallet_uuid}/dispute/messages/send': post: summary: 'Отправка сообщения по спору' operationId: '' description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: currency: RUB order: '73450234' uuid: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea created_at: '2024-01-26T09:59:01.000000Z' status_transaction: created total: 487.5 amount: 500 type_alias: payin card_mask: null properties: currency: type: string example: RUB description: 'Код валюты в ISO 4217' order: type: string example: '73450234' description: 'Внешний идентификатор' uuid: type: string example: 26549f4f-fcea-44bb-a65b-f4bf2ae78aea description: 'UUID транзакции' created_at: type: string example: '2024-01-26T09:59:01.000000Z' description: 'Дата создания в UTC' status_transaction: type: string example: created description: 'Статус транзакции (created - создан, working - в обработке, completed - исполнен, error - ошибка)' total: type: number example: 487.5 description: 'Сумма зачисления' amount: type: integer example: 500 description: 'Сумма заказа' type_alias: type: string example: payin description: 'Тип транзакции (payin - пополнение, payout - выплата, refund - Refund, chargeback - Chargeback)' card_mask: type: string example: null description: 'Маска карты (может быть null)' tags: - Операции requestBody: required: true content: application/json: schema: type: object properties: transaction: type: string description: 'UUID транзакции' example: null order: type: string description: 'Внешний идентификатор (макс 100 символов)' example: null message: type: object description: Сообщение example: [] properties: type: type: string description: 'Тип сообщения. Возможные значения: TEXT - текстовое сообщение, IMAGE - изображение' example: image message: type: string description: 'Текст сообщения. Обязательно, если message.type = TEXT' example: 'Не пришли деньги' base64_content: type: string description: 'Изображение в кодировке base64. Обязательно, если message.type = IMAGE' example: 0L/RgNC40LzQtdGA filename: type: string description: 'Название файла. Обязательно, если message.type = IMAGE' example: photo extension: type: string description: 'Тип файла. Обязательно, если message.type = IMAGE' example: .jpg required: - message parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: 6f110b89-ce3c-3963-a42c-536e4808c207 required: true schema: type: string /api/profile: get: summary: Профиль operationId: '' description: 'Получение информации по всем кошелькам' parameters: [] responses: 200: description: '' content: application/json: schema: type: array items: type: object example: - uuid: 52a38a2b-fe45-45c8-850c-11f02d7d1620 currency: RUB balance: '800.00' - uuid: 18ec8ec9-ebc0-494b-9871-eabef9404375 currency: USD balance: '100.00' tags: - Профиль '/api/{wallet_uuid}/balance': get: summary: Баланс operationId: '' description: "Получение баланса кошелька\nВ блоке detailed перечислены балансы:\nactive - активный баланс (транзакции в статусах Выполнен);\ncurrent - текущий баланс (транзакции в статусах Создан, В обработке, Выполнен);\nfrozen - ролинг-резерв (транзакции с типом Rolling Reserve);\npayout - выплатной баланс (баланс, доступный для проведения выплат);" parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: uuid: 52a38a2b-fe45-45c8-850c-11f02d7d1620 currency: RUB balance: '800.00' detailed: active: '800.00' current: '800.00' frozen: '0.00' payout: '500.00' properties: uuid: type: string example: 52a38a2b-fe45-45c8-850c-11f02d7d1620 currency: type: string example: RUB balance: type: string example: '800.00' detailed: type: object properties: active: type: string example: '800.00' current: type: string example: '800.00' frozen: type: string example: '0.00' payout: type: string example: '500.00' tags: - Профиль parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: 42623128-dc32-3e91-a5ef-0fbdb8472207 required: true schema: type: string '/api/{wallet_uuid}/history': get: summary: Транзакции operationId: '' description: 'Получение транзакций за период (используется пагинация)' parameters: - in: query name: date_from description: 'Дата от (UTC) (в формате d.m.Y)' example: null required: false schema: type: string description: 'Дата от (UTC) (в формате d.m.Y)' example: null - in: query name: date_to description: 'Дата до (UTC) (в формате d.m.Y)' example: null required: false schema: type: string description: 'Дата до (UTC) (в формате d.m.Y)' example: null - in: query name: page description: 'Страница пагинации' example: null required: false schema: type: integer description: 'Страница пагинации' example: null responses: 200: description: '' content: text/plain: schema: type: string example: "{\n\"current_page\": 1,\n\"data\": [\n{\n\"uuid\": \"d6a2f3a4-59f2-4a23-a663-e2908bf18020\",\n\"currency\": \"RUB\",\n\"status_transaction\": \"created\",\n\"created_at\": \"2022-03-04T08:17:54.000000Z\",\n\"amount\": \"10342.22\"\n},\n{\n\"uuid\": \"72f9b70c-e51f-4377-8040-77b3a0b0fcd0\",\n\"currency\": \"RUB\",\n\"status_transaction\": \"working\",\n\"created_at\": \"2022-03-04T08:16:54.000000Z\",\n\"amount\": \"194.45\"\n},\n{\n\"uuid\": \"af2c715a-953c-405c-b755-2a11a89a3dad\",\n\"currency\": \"RUB\",\n\"status_transaction\": \"completed\",\n\"created_at\": \"2022-03-04T08:15:54.000000Z\",\n\"amount\": \"99.00\"\n},\n],\n\"first_page_url\": \"http://example.com/api/52a38a2b-fe45-45c8-850c-11f02d7d1620/history?page=1\",\n\"from\": 1,\n\"last_page\": 1,\n\"last_page_url\": \"http://example.com/api/52a38a2b-fe45-45c8-850c-11f02d7d1620/history?page=1\",\n\"next_page_url\": null,\n\"path\": \"http://example.com/api/52a38a2b-fe45-45c8-850c-11f02d7d1620/history\",\n\"per_page\": 50,\n\"prev_page_url\": null,\n\"to\": 20,\n\"total\": 20\n}" tags: - Профиль parameters: - in: path name: wallet_uuid description: 'UUID кошелька' example: 3915eb3f-964c-3b60-a922-cb2cbf364ba0 required: true schema: type: string tags: - name: Операции description: '' - name: Профиль description: '' components: securitySchemes: default: type: http scheme: bearer description: 'You can retrieve your token by visiting your dashboard and clicking Generate API token.' security: - default: []