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.kub.com/'
success_url:
type: string
description: 'Вызывается в случае успешной оплаты. В параметрах GET запроса передаются: transaction - идентификатор транзакции, order - внешний идентификатор транзакции.'
example: 'http://lindgren.info/est-iusto-corrupti-laborum-quis'
fail_url:
type: string
description: 'Вызывается в случае ошибки в оплате. В параметрах GET запроса передаются: transaction - идентификатор транзакции, order - внешний идентификатор транзакции.'
example: 'http://www.pacocha.biz/doloremque-est-velit-id-tempore'
card_token:
type: string
description: 'Токен карты (для рекуррентных платежей)'
example: rem
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: nblick@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
country_code:
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_javascript_enabled:
type: string
description: 'Признак работы с Javascript (для 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: '-180'
device_browser_tz_name:
type: string
description: 'Название часового пояса браузера (для 3DS 2.0)'
example: Europe/Moscow
device_browser_user_agent:
type: string
description: 'Пользовательский агент браузера (для 3DS 2.0)'
example: null
challenge_window_size:
type: string
description: 'Размер окна для challenge (для 3DS 2.0)'
example: null
challenge_window_size_height:
type: string
description: 'Высота окна для challenge (для 3DS 2.0)'
example: null
challenge_window_size_width:
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: 091a4a46-b4cb-3893-a6a2-055ac07cbed4
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: 0.84731
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 / bank_account.'
example: usdt_trc20
address:
type: string
description: 'Адрес для перевода (для type = usdt_trc20)'
example: TCgBa3WVrrcQoBfd6bZdiFLatZ....
wallet:
type: string
description: 'Номер кошелька для перевода (для type = wallet)'
example: TCgBa3WVrrcQoBfd6bZdiFLatZ....
bank_account:
type: string
description: 'Номер счета для перевода (для type = bank_account)'
example: 912723874....
phone:
type: string
description: 'Номер телефона для перевода (для type = phone)'
example: '79991115566'
mobile_provider:
type: string
description: 'Идентификатор оператора мобильной связи пользователя (для type = phone) или индентификатор банка для выплат по СБП (полный список см. здесь).'
example: 'MTS, 1000000112'
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://greenfelder.com/molestiae-nihil-sapiente-laudantium-minus-minus-explicabo-qui-sed.html'
callback_method:
type: string
description: 'Определяет метод вызова callback. Возможные значения: POST, GET'
example: POST
addition_data:
type: object
description: 'Дополнительные данные для оплаты (не обязательно)'
example: []
properties:
email:
type: string
description: 'Email клиента'
example: kuhlman.dahlia@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: 854ba363-39c0-3a13-a6c9-f5f7bef032ff
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: c5246928-ab7d-302b-a338-70d72c4ede80
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: 8de00deb-93b9-3842-9163-e20cbade8943
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: db2b5750-8b5c-30c9-9412-1d01f53b6a02
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: e4354817-e02d-3b56-b7dd-9c83cffebe76
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: 426def5f-e14c-3bd3-a9bf-133b930254f0
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: 259b56e4-43ab-3b0f-b2ef-136472a7dcb4
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: 72c6cfa7-11a2-3a18-8b72-821b85f628bd
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: db60496e-792c-37dc-84ed-c10f17ff0f44
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: 93950b67-52a6-35b5-bf4a-08ab1ed914fa
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: 694f2ed4-31a6-326c-84fe-576d91bda38f
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: 96176147-bd64-36d6-b65a-3122dc4c0630
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: []