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 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 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://flatley.com/rerum-et-odit-ratione-qui-qui.html' success_url: type: string description: 'Вызывается в случае успешной оплаты. В параметрах GET запроса передаются: transaction - идентификатор транзакции, order - внешний идентификатор транзакции.' example: 'https://daugherty.com/aspernatur-quas-qui-non-eaque-ut.html' fail_url: type: string description: 'Вызывается в случае ошибки в оплате. В параметрах GET запроса передаются: transaction - идентификатор транзакции, order - внешний идентификатор транзакции.' example: 'http://www.wisoky.com/et-sed-tempore-sed-aut-voluptatem-error-qui' card_token: type: string description: 'Токен карты (для рекуррентных платежей)' example: officia 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: zmills@example.com 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: 75e9a565-6b36-3b67-9ed1-2050314314f9 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 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: 5309.0 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.' example: usdt_trc20 address: type: string description: 'Адрес для перевода' example: TCgBa3WVrrcQoBfd6bZdiFLatZ.... phone: type: string description: 'Номер телефона для перевода' example: '79991115566' mobile_provider: type: string description: 'Идентификатор оператора мобильной связи пользователя' 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://www.ratke.com/vero-atque-quod-sit-dolore-vero-non-optio.html' callback_method: type: string description: 'Определяет метод вызова callback. Возможные значения: POST, GET' example: POST addition_data: type: object description: 'Дополнительные данные для оплаты (не обязательно)' example: [] properties: email: type: string description: 'Email клиента' example: sandrine.swaniawski@example.com 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: 95095c7b-a0f4-37d5-b343-5c9aab54e55f 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: Валюта 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: 5cac0fef-230c-3b18-8757-ee998a169653 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: Валюта 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: b3f1bf09-4777-35b8-8fdf-391570ddfde5 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: Валюта 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: 5865bd09-ab2f-387e-b20f-4f545d9291e4 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: Валюта 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: 055a61b4-ca06-3cd7-9933-38edb678f8f5 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: Валюта 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: a8542633-b0a2-3a66-b5e3-5345b51e2797 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: Валюта 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: f0e694fe-f782-3a81-a06e-1d69ac150102 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: Валюта 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: 86c337c4-a75b-379e-b299-35ee14e3c595 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: 5f39a807-1644-3e82-9bf6-77e8fed13998 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: Валюта 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: 5af017dd-9237-3efc-bae8-3c4f1cca7841 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: fbec57e9-0531-388d-9ee6-989d58840dec 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: 84d84009-b130-3b09-ac84-6f2e8b285412 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: []