Войти
Регистрация
  • Русский
  • English
Войти
Регистрация
  • Русский
  • English
  • С ЧЕГО НАЧАТЬ
  • GITHUB
    • 🐘 SDK PHP
    • 👨‍💻DK GOLANG
    • ✳ SDK NODE JS
  • АУТЕНТИФИКАЦИЯ
    • 👨‍💼утентификация пользователя
    • 👨‍💼егистрация пользователя
    • 🔐 Восстановление пароля
  • ИНФОРМАЦИЯ
    • 🆕 Добавление нового адреса
    • 🆎 Получение информации по адресу
    • 🔍 Поиск поддерживаемых криптовалют по адресу
    • 💰 Доступные валюты
  • ПРОВЕРКА РИСКА
    • 📑 Получение списка быстрых проверок
    • 🆕 Добавление новой быстрой проверки
    • 📊 Получение информации по быстрой проверке
    • 🔄 Запуск быстрой проверки
  • РАССЛЕДОВАНИЕ
    • 📝 Получение списка расследований
    • 🕵‍♂ Создание расследования
    • 📋 Получение информации по расследованию
    • 📊 Получение данных по графу расследования
    • 🧐 Углубленное исследование в рамках расследования
    • 🔄 Запуск расследования
  • БАЛАНСЫ
    • 💰 Получение баланса пользователя
    • 📜 Создание счета на оплату
    • 💵 Валюты разрешенные для пополнения

UrlPay API V1 v1.0.0

Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

Прием платежей и выплаты через UrlPay

Base URLs:

  • https://urlpay.io/api

Authentication

  • API Key (api-key)
    • Parameter Name: Authorization, in: header. API Key аутентификация. Тип - Bearer API ключ можно получить в личном кабинете в настройках магазина

Платежи

Создание платежа

Code samples

POST /v2/payments

Body parameter

{
  "currency": "rub",
  "amount": "1000.50",
  "uuid": "invoice_123",
  "shopId": 5,
  "description": "Покупка булочек",
  "website_url": "https://example.com",
  "subscribe": null,
  "holdTime": null,
  "language": "ru",
  "items": [
    {
      "description": "string",
      "quantity": 0,
      "price": 0,
      "vat_code": 0,
      "payment_subject": 1,
      "payment_mode": 1,
      "product_code": "string",
      "country_of_origin_code": "string",
      "customs_declaration_number": "string",
      "excise": "string",
      "measurement_unit": 0
    }
  ],
  "sign": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyPaymentRequestfalsenone

Example responses

201 Response

{
  "success": true,
  "paymentUrl": "https://site.ru/",
  "id": 1
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

422 Response

{
  "error": "param is missing or the value is empty: article",
  "status": 422
}

Responses

StatusMeaningDescriptionSchema
201CreatedПлатежInline
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

Status Code 201

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenoneФлаг успеха
» paymentUrlstringfalsenoneURL для оплаты
» idintegerfalsenoneID платежа
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Получение списка платежей

Code samples

GET /v2/payments

Example responses

200 Response

{
  "items": [
    {
      "id": 1,
      "uuid": "string",
      "amount": "string",
      "currency": "string",
      "description": "string",
      "status": 3
    }
  ]
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

422 Response

{
  "error": "param is missing or the value is empty: article",
  "status": 422
}

Responses

StatusMeaningDescriptionSchema
200OKСписок платежейInline
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» items[Payment]falsenone[Платеж]
»» idintegerfalsenoneID платежа
»» uuidstringfalsenonenone
»» amountstringfalsenonenone
»» currencystringfalsenonenone
»» descriptionstringfalsenonenone
»» statusintegerfalsenoneСтатус платежа:
- 0: Создан
- 1: В обработке
- 2: Отменен
- 3: Обработан
- 4: Ошибка
- 5: Холд
- 6: Холд

Enumerated Values

PropertyValue
status0
status1
status2
status3
status4
status5
status6
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Получение данных по платежу

Code samples

GET /v2/payments/{id}

Example responses

200 Response

{
  "success": true,
  "payment": {
    "id": 1,
    "uuid": "string",
    "amount": "string",
    "currency": "string",
    "description": "string",
    "status": 3
  }
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

422 Response

{
  "error": "param is missing or the value is empty: article",
  "status": 422
}

Responses

StatusMeaningDescriptionSchema
200OKПлатежInline
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenoneФлаг успеха
» paymentPaymentfalsenoneПлатеж
»» idintegerfalsenoneID платежа
»» uuidstringfalsenonenone
»» amountstringfalsenonenone
»» currencystringfalsenonenone
»» descriptionstringfalsenonenone
»» statusintegerfalsenoneСтатус платежа:
- 0: Создан
- 1: В обработке
- 2: Отменен
- 3: Обработан
- 4: Ошибка
- 5: Холд
- 6: Холд

Enumerated Values

PropertyValue
status0
status1
status2
status3
status4
status5
status6
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Подтверждение списания средств

Code samples

PUT /v2/payments/{id}/hold

Example responses

200 Response

{
  "success": true
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

422 Response

{
  "error": "param is missing or the value is empty: article",
  "status": 422
}

Responses

StatusMeaningDescriptionSchema
200OKOKNone
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: api-key

Отмена списания средств

Code samples

DELETE /v2/payments/{id}/hold

Example responses

200 Response

{
  "success": true
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

422 Response

{
  "error": "param is missing or the value is empty: article",
  "status": 422
}

Responses

StatusMeaningDescriptionSchema
200OKOKNone
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: api-key

Возврат платежа

Code samples

PUT /v2/payments/{id}/refund

Example responses

200 Response

{
  "success": true
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

422 Response

{
  "error": "param is missing or the value is empty: article",
  "status": 422
}

Responses

StatusMeaningDescriptionSchema
200OKOKNone
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: api-key

Чеки

Получение данных о чеке

Code samples

GET /v2/payments/{id}/receipt

Parameters

NameInTypeRequiredDescription
idpathintegertrueID платежа, для которого нужно получить чек

Example responses

200 Response

{
  "status": "success",
  "items": [
    {
      "id": 1,
      "daemon_code": "DAEMON123",
      "device_code": "DEVICE456",
      "warnings": [
        "Warning 1",
        "Warning 2"
      ],
      "error": [
        "Error 1",
        "Error 2"
      ],
      "ecr_registration_number": "REG123456",
      "fiscal_document_attribute": 1,
      "fiscal_document_number": 1001,
      "fiscal_receipt_number": 5001,
      "fn_number": "FN123456",
      "fns_site": "https://fns.ru",
      "receipt_datetime": "2023-10-01T12:00:00Z",
      "shift_number": 1,
      "total": 1000.5,
      "ofd_inn": "1234567890",
      "ofd_receipt_url": "https://ofd.example.com/receipt/1",
      "status": "success",
      "uuid": "invoice_123",
      "created_at": "2023-10-01T12:00:00Z",
      "updated_at": "2023-10-01T12:00:00Z"
    }
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKУспешное получение данных о чекеInline
401UnauthorizedНеавторизованный доступInline
404Not FoundЧек не найденInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» statusstringfalsenonenone
» items[Receipt]falsenonenone
»» idintegerfalsenoneУникальный идентификатор чека
»» daemon_codestringfalsenoneКод демона, если применимо
»» device_codestringfalsenoneКод устройства, если применимо
»» warnings[string]falsenoneСписок предупреждений, связанных с чеком
»» error[string]falsenoneСписок ошибок, связанных с чеком
»» ecr_registration_numberstringfalsenoneРегистрационный номер ККТ
»» fiscal_document_attributeintegerfalsenoneАтрибут фискального документа
»» fiscal_document_numberintegerfalsenoneНомер фискального документа
»» fiscal_receipt_numberintegerfalsenoneНомер фискального чека
»» fn_numberstringfalsenoneНомер фискального накопителя
»» fns_sitestringfalsenoneСайт ФНС
»» receipt_datetimestring(date-time)falsenoneДата и время создания чека
»» shift_numberintegerfalsenoneНомер смены
»» totalnumber(float)falsenoneОбщая сумма чека
»» ofd_innstringfalsenoneИНН ОФД
»» ofd_receipt_urlstringfalsenoneURL для получения чека у ОФД
»» statusstringfalsenoneСтатус чека
»» uuidstringfalsenoneУникальный идентификатор заказа
»» created_atstring(date-time)falsenoneДата и время создания записи о чеке
»» updated_atstring(date-time)falsenoneДата и время последнего обновления записи о чеке

Status Code 401

NameTypeRequiredRestrictionsDescription
» statusstringfalsenonenone
» messagestringfalsenonenone

Status Code 404

NameTypeRequiredRestrictionsDescription
» statusstringfalsenonenone
» messagestringfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Подписки

Получение списка подписок

Code samples

GET /v2/subscribes

Example responses

200 Response

{
  "items": [
    {
      "id": 1,
      "description": "string",
      "status": 0,
      "currency": "rub",
      "amount": "1000.50",
      "start_date": "string",
      "next_pay_date": "string",
      "interval": null
    }
  ]
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

422 Response

{
  "error": "param is missing or the value is empty: article",
  "status": 422
}

Responses

StatusMeaningDescriptionSchema
200OKСписок подписокInline
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» items[Subscribe]falsenone[Подписка]
»» idintegerfalsenoneID подписки
»» descriptionstringfalsenonenone
»» statusintegerfalsenonenone
»» currencystringfalsenoneВалюта оплаты (rub)
»» amountstringfalsenoneСумма оплаты с копейками строкой 100.50
»» start_datestringfalsenoneСтартовая дата
»» next_pay_datestringfalsenoneСледующая дата оплаты
»» intervalstringfalsenoneИнтервал списания, варианты данных - Day, Week, Month
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Отмена подписки

Code samples

DELETE /v2/subscribes/{id}

Example responses

200 Response

{
  "success": true
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

422 Response

{
  "error": "param is missing or the value is empty: article",
  "status": 422
}

Responses

StatusMeaningDescriptionSchema
200OKOKNone
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: api-key

callbacks

Отправить запрос на callback для ресурса Payment

Code samples

POST /payments/callback

Отправляет запрос на callback по настроенному URL продавца (магазина), если он задан.

Body parameter

{
  "id": 12345,
  "amount": 100.5,
  "currency": "RUB",
  "uuid": "external-uuid-123",
  "payment_status": "success"
}

Parameters

NameInTypeRequiredDescription
bodybodyobjecttruenone
» idbodyintegerfalseID платежа
» amountbodynumber(float)falseСумма платежа
» currencybodystringfalseВалюта платежа (например, RUB)
» uuidbodystringfalseВнешний идентификатор платежа
» payment_statusbodystringfalseСтатус платежа для колбэка (например, 'success')

Enumerated Values

ParameterValue
» payment_statussuccess
» payment_statuscancel

Responses

StatusMeaningDescriptionSchema
200OKЗапрос обратного вызова успешно отправленNone
400Bad RequestНекорректные данные о платеже или отсутствует URL для обратного вызоваNone
404Not FoundПлатеж не найденNone
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Балансы

Получение балансов магазина

Code samples

GET /v2/shops/{shopId}/balances

Parameters

NameInTypeRequiredDescription
shopIdpathintegertrueID магазина

Example responses

200 Response

{
  "success": true,
  "data": {
    "balances": [
      {
        "shop_id": 5,
        "currency": "rub",
        "balance": 1000.5,
        "hold": 200,
        "available": 800.5
      }
    ]
  }
}

401 Response

{
  "error": "unauthorized",
  "status": 401
}

403 Response

{
  "success": false,
  "message": "Магазин не найден или не принадлежит текущему пользователю"
}

422 Response

{
  "success": false,
  "message": "Ошибка валидации",
  "errors": {
    "shop_id": [
      "Поле shop_id должно быть целым числом."
    ]
  }
}

Responses

StatusMeaningDescriptionSchema
200OKСписок балансов магазинаInline
401UnauthorizedUnauthorizedNone
403ForbiddenForbiddenNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenoneФлаг успеха
» dataobjectfalsenonenone
»» balances[Balance]falsenone[Баланс магазина]
»»» shop_idintegerfalsenoneID магазина
»»» currencystringfalsenoneВалюта баланса
»»» balancenumber(float)falsenoneОбщий баланс
»»» holdnumber(float)falsenoneСумма на холде
»»» availablenumber(float)falsenoneДоступная сумма (balance - hold)
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Выплаты

Получение списка выплат

Code samples

GET /v2/card-payouts

Parameters

NameInTypeRequiredDescription
shop_idqueryintegerfalseID магазина для фильтрации
statusquerystringfalseСтатус выплаты для фильтрации
currencyquerystringfalseВалюта для фильтрации
payout_typequerystringfalseТип выплаты для фильтрации
date_fromquerystring(date)falseДата начала периода
date_toquerystring(date)falseДата окончания периода
per_pagequeryintegerfalseКоличество элементов на странице (1-100)
pagequeryintegerfalseНомер страницы
searchquerystringfalseПоиск по external_id, имени получателя, номеру карты/счета, описанию

Enumerated Values

ParameterValue
payout_typecard
payout_typeaccount

Example responses

200 Response

{
  "success": true,
  "data": [
    {
      "id": 1,
      "user_id": 1,
      "shop_id": 5,
      "external_id": "payout_123",
      "payout_type": "card",
      "recipient_card_number": "1234****3456",
      "recipient_account_number": "40817810099910004312",
      "recipient_bank_code": "044525225",
      "recipient_name": "Иванов Иван Иванович",
      "recipient_phone": "+79001234567",
      "amount": 1000.5,
      "amount_with_fee": 1005.5,
      "currency": "rub",
      "status": "pending",
      "description": "Выплата за услуги",
      "comment": "Дополнительная информация",
      "metadata": {},
      "cancelled_reason": "Запрос от клиента",
      "processed_at": "2023-10-01T12:00:00Z",
      "created_at": "2023-10-01T10:00:00Z",
      "updated_at": "2023-10-01T12:00:00Z",
      "user": {
        "id": 1,
        "name": "Иван Иванов",
        "email": "user@example.com"
      },
      "shop": {
        "id": 5,
        "name": "Мой магазин",
        "url": "https://myshop.com"
      }
    }
  ],
  "pagination": {
    "current_page": 1,
    "last_page": 10,
    "per_page": 15,
    "total": 150
  }
}

Responses

StatusMeaningDescriptionSchema
200OKСписок выплатInline
401UnauthorizedUnauthorizedNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» data[CardPayout]falsenone[Выплата]
»» idintegerfalsenoneID выплаты
»» user_idintegerfalsenoneID пользователя
»» shop_idintegerfalsenoneID магазина
»» external_idstringfalsenoneВнешний ID выплаты
»» payout_typestringfalsenoneТип выплаты
»» recipient_card_numberstringfalsenoneНомер карты получателя
»» recipient_account_numberstringfalsenoneНомер счета получателя
»» recipient_bank_codestringfalsenoneКод банка получателя
»» recipient_namestringfalsenoneФИО получателя
»» recipient_phonestringfalsenoneТелефон получателя
»» amountnumber(float)falsenoneСумма выплаты
»» amount_with_feenumber(float)falsenoneСумма выплаты с комиссией
»» currencystringfalsenoneВалюта выплаты
»» statusstringfalsenoneСтатус выплаты
»» descriptionstringfalsenoneОписание выплаты
»» commentstringfalsenoneКомментарий к выплате
»» metadataobjectfalsenoneДополнительные данные
»» cancelled_reasonstringfalsenoneПричина отмены
»» processed_atstring(date-time)falsenoneДата обработки
»» created_atstring(date-time)falsenoneДата создания
»» updated_atstring(date-time)falsenoneДата обновления
»» userobjectfalsenoneИнформация о пользователе
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» emailstringfalsenonenone
»» shopobjectfalsenoneИнформация о магазине
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» urlstringfalsenonenone
» paginationPaginationfalsenoneИнформация о пагинации
»» current_pageintegerfalsenoneТекущая страница
»» last_pageintegerfalsenoneПоследняя страница
»» per_pageintegerfalsenoneЭлементов на странице
»» totalintegerfalsenoneОбщее количество элементов

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Создание новой выплаты

Code samples

POST /v2/card-payouts

Body parameter

{
  "shop_id": 5,
  "external_id": "payout_123",
  "payout_type": "card",
  "recipient_card_number": "1234567890123456",
  "recipient_account_number": "40817810099910004312",
  "recipient_bank_code": "044525225",
  "recipient_name": "Иванов Иван Иванович",
  "recipient_phone": "+79001234567",
  "amount": 1000.5,
  "currency": "rub",
  "description": "Выплата за услуги",
  "comment": "Дополнительная информация",
  "metadata": {
    "order_id": "12345",
    "department": "sales"
  }
}

Parameters

NameInTypeRequiredDescription
bodybodyCardPayoutRequesttruenone

Example responses

201 Response

{
  "success": true,
  "message": "Выплата успешно создана",
  "data": {
    "id": 1,
    "user_id": 1,
    "shop_id": 5,
    "external_id": "payout_123",
    "payout_type": "card",
    "recipient_card_number": "1234****3456",
    "recipient_account_number": "40817810099910004312",
    "recipient_bank_code": "044525225",
    "recipient_name": "Иванов Иван Иванович",
    "recipient_phone": "+79001234567",
    "amount": 1000.5,
    "amount_with_fee": 1005.5,
    "currency": "rub",
    "status": "pending",
    "description": "Выплата за услуги",
    "comment": "Дополнительная информация",
    "metadata": {},
    "cancelled_reason": "Запрос от клиента",
    "processed_at": "2023-10-01T12:00:00Z",
    "created_at": "2023-10-01T10:00:00Z",
    "updated_at": "2023-10-01T12:00:00Z",
    "user": {
      "id": 1,
      "name": "Иван Иванов",
      "email": "user@example.com"
    },
    "shop": {
      "id": 5,
      "name": "Мой магазин",
      "url": "https://myshop.com"
    }
  }
}

Responses

StatusMeaningDescriptionSchema
201CreatedВыплата успешно созданаInline
401UnauthorizedUnauthorizedNone
403ForbiddenВыплаты для магазина отключеныNone
404Not FoundМагазин не найденNone
422Unprocessable EntityОшибка валидации данныхNone
500Internal Server ErrorОшибка при создании выплатыNone

Response Schema

Status Code 201

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» messagestringfalsenonenone
» dataCardPayoutfalsenoneВыплата
»» idintegerfalsenoneID выплаты
»» user_idintegerfalsenoneID пользователя
»» shop_idintegerfalsenoneID магазина
»» external_idstringfalsenoneВнешний ID выплаты
»» payout_typestringfalsenoneТип выплаты
»» recipient_card_numberstringfalsenoneНомер карты получателя
»» recipient_account_numberstringfalsenoneНомер счета получателя
»» recipient_bank_codestringfalsenoneКод банка получателя
»» recipient_namestringfalsenoneФИО получателя
»» recipient_phonestringfalsenoneТелефон получателя
»» amountnumber(float)falsenoneСумма выплаты
»» amount_with_feenumber(float)falsenoneСумма выплаты с комиссией
»» currencystringfalsenoneВалюта выплаты
»» statusstringfalsenoneСтатус выплаты
»» descriptionstringfalsenoneОписание выплаты
»» commentstringfalsenoneКомментарий к выплате
»» metadataobjectfalsenoneДополнительные данные
»» cancelled_reasonstringfalsenoneПричина отмены
»» processed_atstring(date-time)falsenoneДата обработки
»» created_atstring(date-time)falsenoneДата создания
»» updated_atstring(date-time)falsenoneДата обновления
»» userobjectfalsenoneИнформация о пользователе
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» emailstringfalsenonenone
»» shopobjectfalsenoneИнформация о магазине
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» urlstringfalsenonenone

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Массовое создание выплат

Code samples

POST /v2/card-payouts/bulk

Body parameter

{
  "shop_id": 5,
  "payouts": [
    {
      "external_id": "payout_123",
      "payout_type": "card",
      "recipient_card_number": "1234567890123456",
      "recipient_account_number": "40817810099910004312",
      "recipient_bank_code": "044525225",
      "recipient_name": "Иванов Иван Иванович",
      "recipient_phone": "+79001234567",
      "amount": 1000.5,
      "currency": "rub",
      "description": "Выплата за услуги",
      "comment": "Дополнительная информация",
      "metadata": {}
    }
  ]
}

Parameters

NameInTypeRequiredDescription
bodybodyBulkCardPayoutRequesttruenone

Example responses

201 Response

{
  "success": true,
  "message": "Выплаты успешно созданы",
  "data": {
    "created_count": 5,
    "payouts": [
      {
        "id": 1,
        "user_id": 1,
        "shop_id": 5,
        "external_id": "payout_123",
        "payout_type": "card",
        "recipient_card_number": "1234****3456",
        "recipient_account_number": "40817810099910004312",
        "recipient_bank_code": "044525225",
        "recipient_name": "Иванов Иван Иванович",
        "recipient_phone": "+79001234567",
        "amount": 1000.5,
        "amount_with_fee": 1005.5,
        "currency": "rub",
        "status": "pending",
        "description": "Выплата за услуги",
        "comment": "Дополнительная информация",
        "metadata": {},
        "cancelled_reason": "Запрос от клиента",
        "processed_at": "2023-10-01T12:00:00Z",
        "created_at": "2023-10-01T10:00:00Z",
        "updated_at": "2023-10-01T12:00:00Z",
        "user": {
          "id": 1,
          "name": "Иван Иванов",
          "email": "user@example.com"
        },
        "shop": {
          "id": 5,
          "name": "Мой магазин",
          "url": "https://myshop.com"
        }
      }
    ]
  }
}

Responses

StatusMeaningDescriptionSchema
201CreatedВыплаты успешно созданыInline
401UnauthorizedUnauthorizedNone
403ForbiddenВыплаты для магазина отключеныNone
404Not FoundМагазин не найденNone
422Unprocessable EntityОшибка валидации данныхNone
500Internal Server ErrorОшибка при создании выплатNone

Response Schema

Status Code 201

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» messagestringfalsenonenone
» dataobjectfalsenonenone
»» created_countintegerfalsenonenone
»» payouts[CardPayout]falsenone[Выплата]
»»» idintegerfalsenoneID выплаты
»»» user_idintegerfalsenoneID пользователя
»»» shop_idintegerfalsenoneID магазина
»»» external_idstringfalsenoneВнешний ID выплаты
»»» payout_typestringfalsenoneТип выплаты
»»» recipient_card_numberstringfalsenoneНомер карты получателя
»»» recipient_account_numberstringfalsenoneНомер счета получателя
»»» recipient_bank_codestringfalsenoneКод банка получателя
»»» recipient_namestringfalsenoneФИО получателя
»»» recipient_phonestringfalsenoneТелефон получателя
»»» amountnumber(float)falsenoneСумма выплаты
»»» amount_with_feenumber(float)falsenoneСумма выплаты с комиссией
»»» currencystringfalsenoneВалюта выплаты
»»» statusstringfalsenoneСтатус выплаты
»»» descriptionstringfalsenoneОписание выплаты
»»» commentstringfalsenoneКомментарий к выплате
»»» metadataobjectfalsenoneДополнительные данные
»»» cancelled_reasonstringfalsenoneПричина отмены
»»» processed_atstring(date-time)falsenoneДата обработки
»»» created_atstring(date-time)falsenoneДата создания
»»» updated_atstring(date-time)falsenoneДата обновления
»»» userobjectfalsenoneИнформация о пользователе
»»»» idintegerfalsenonenone
»»»» namestringfalsenonenone
»»»» emailstringfalsenonenone
»»» shopobjectfalsenoneИнформация о магазине
»»»» idintegerfalsenonenone
»»»» namestringfalsenonenone
»»»» urlstringfalsenonenone

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Получение статистики по выплатам

Code samples

GET /v2/card-payouts/statistics

Parameters

NameInTypeRequiredDescription
shop_idqueryintegerfalseID магазина для фильтрации
date_fromquerystring(date)falseДата начала периода
date_toquerystring(date)falseДата окончания периода

Example responses

200 Response

{
  "success": true,
  "data": {
    "total_count": 150,
    "total_amount": 50000,
    "by_status": {
      "property1": {
        "text": "Ожидает обработки",
        "count": 25,
        "amount": 10000
      },
      "property2": {
        "text": "Ожидает обработки",
        "count": 25,
        "amount": 10000
      }
    },
    "by_currency": {
      "property1": {
        "text": "Российский рубль",
        "count": 150,
        "amount": 50000
      },
      "property2": {
        "text": "Российский рубль",
        "count": 150,
        "amount": 50000
      }
    },
    "by_type": {
      "property1": {
        "text": "На карту",
        "count": 100,
        "amount": 35000
      },
      "property2": {
        "text": "На карту",
        "count": 100,
        "amount": 35000
      }
    }
  }
}

Responses

StatusMeaningDescriptionSchema
200OKСтатистика по выплатамInline
401UnauthorizedUnauthorizedNone
404Not FoundМагазин не найденNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» dataPayoutStatisticsfalsenoneСтатистика по выплатам
»» total_countintegerfalsenoneОбщее количество выплат
»» total_amountnumber(float)falsenoneОбщая сумма выплат
»» by_statusobjectfalsenoneСтатистика по статусам
»»» additionalPropertiesobjectfalsenonenone
»»»» textstringfalsenonenone
»»»» countintegerfalsenonenone
»»»» amountnumber(float)falsenonenone
»» by_currencyobjectfalsenoneСтатистика по валютам
»»» additionalPropertiesobjectfalsenonenone
»»»» textstringfalsenonenone
»»»» countintegerfalsenonenone
»»»» amountnumber(float)falsenonenone
»» by_typeobjectfalsenoneСтатистика по типам
»»» additionalPropertiesobjectfalsenonenone
»»»» textstringfalsenonenone
»»»» countintegerfalsenonenone
»»»» amountnumber(float)falsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Получение доступных валют для выплат

Code samples

GET /v2/card-payouts/currencies

Example responses

200 Response

{
  "success": true,
  "data": {
    "rub": "Российский рубль"
  }
}

Responses

StatusMeaningDescriptionSchema
200OKСписок доступных валютInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» dataobjectfalsenonenone
»» additionalPropertiesstringfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Получение доступных типов выплат

Code samples

GET /v2/card-payouts/types

Example responses

200 Response

{
  "success": true,
  "data": {
    "card": "На карту",
    "account": "На счет"
  }
}

Responses

StatusMeaningDescriptionSchema
200OKСписок доступных типов выплатInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» dataobjectfalsenonenone
»» additionalPropertiesstringfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Получение доступных статусов выплат

Code samples

GET /v2/card-payouts/statuses

Example responses

200 Response

{
  "success": true,
  "data": {
    "property1": "string",
    "property2": "string"
  }
}

Responses

StatusMeaningDescriptionSchema
200OKСписок доступных статусовInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» dataobjectfalsenonenone
»» additionalPropertiesstringfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Получение выплаты по внешнему ID

Code samples

GET /v2/card-payouts/external/{external_id}

Parameters

NameInTypeRequiredDescription
external_idpathstringtrueВнешний ID выплаты
shop_idqueryintegerfalseID магазина для дополнительной фильтрации

Example responses

200 Response

{
  "success": true,
  "data": {
    "id": 1,
    "user_id": 1,
    "shop_id": 5,
    "external_id": "payout_123",
    "payout_type": "card",
    "recipient_card_number": "1234****3456",
    "recipient_account_number": "40817810099910004312",
    "recipient_bank_code": "044525225",
    "recipient_name": "Иванов Иван Иванович",
    "recipient_phone": "+79001234567",
    "amount": 1000.5,
    "amount_with_fee": 1005.5,
    "currency": "rub",
    "status": "pending",
    "description": "Выплата за услуги",
    "comment": "Дополнительная информация",
    "metadata": {},
    "cancelled_reason": "Запрос от клиента",
    "processed_at": "2023-10-01T12:00:00Z",
    "created_at": "2023-10-01T10:00:00Z",
    "updated_at": "2023-10-01T12:00:00Z",
    "user": {
      "id": 1,
      "name": "Иван Иванов",
      "email": "user@example.com"
    },
    "shop": {
      "id": 5,
      "name": "Мой магазин",
      "url": "https://myshop.com"
    }
  }
}

Responses

StatusMeaningDescriptionSchema
200OKДанные выплатыInline
401UnauthorizedUnauthorizedNone
404Not FoundВыплата не найденаNone
422Unprocessable EntityОшибка валидации данныхNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» dataCardPayoutfalsenoneВыплата
»» idintegerfalsenoneID выплаты
»» user_idintegerfalsenoneID пользователя
»» shop_idintegerfalsenoneID магазина
»» external_idstringfalsenoneВнешний ID выплаты
»» payout_typestringfalsenoneТип выплаты
»» recipient_card_numberstringfalsenoneНомер карты получателя
»» recipient_account_numberstringfalsenoneНомер счета получателя
»» recipient_bank_codestringfalsenoneКод банка получателя
»» recipient_namestringfalsenoneФИО получателя
»» recipient_phonestringfalsenoneТелефон получателя
»» amountnumber(float)falsenoneСумма выплаты
»» amount_with_feenumber(float)falsenoneСумма выплаты с комиссией
»» currencystringfalsenoneВалюта выплаты
»» statusstringfalsenoneСтатус выплаты
»» descriptionstringfalsenoneОписание выплаты
»» commentstringfalsenoneКомментарий к выплате
»» metadataobjectfalsenoneДополнительные данные
»» cancelled_reasonstringfalsenoneПричина отмены
»» processed_atstring(date-time)falsenoneДата обработки
»» created_atstring(date-time)falsenoneДата создания
»» updated_atstring(date-time)falsenoneДата обновления
»» userobjectfalsenoneИнформация о пользователе
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» emailstringfalsenonenone
»» shopobjectfalsenoneИнформация о магазине
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» urlstringfalsenonenone

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Получение информации о выплате

Code samples

GET /v2/card-payouts/{id}

Parameters

NameInTypeRequiredDescription
idpathintegertrueID выплаты

Example responses

200 Response

{
  "success": true,
  "data": {
    "id": 1,
    "user_id": 1,
    "shop_id": 5,
    "external_id": "payout_123",
    "payout_type": "card",
    "recipient_card_number": "1234****3456",
    "recipient_account_number": "40817810099910004312",
    "recipient_bank_code": "044525225",
    "recipient_name": "Иванов Иван Иванович",
    "recipient_phone": "+79001234567",
    "amount": 1000.5,
    "amount_with_fee": 1005.5,
    "currency": "rub",
    "status": "pending",
    "description": "Выплата за услуги",
    "comment": "Дополнительная информация",
    "metadata": {},
    "cancelled_reason": "Запрос от клиента",
    "processed_at": "2023-10-01T12:00:00Z",
    "created_at": "2023-10-01T10:00:00Z",
    "updated_at": "2023-10-01T12:00:00Z",
    "user": {
      "id": 1,
      "name": "Иван Иванов",
      "email": "user@example.com"
    },
    "shop": {
      "id": 5,
      "name": "Мой магазин",
      "url": "https://myshop.com"
    }
  }
}

Responses

StatusMeaningDescriptionSchema
200OKДанные выплатыInline
401UnauthorizedUnauthorizedNone
404Not FoundВыплата не найденаNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» dataCardPayoutfalsenoneВыплата
»» idintegerfalsenoneID выплаты
»» user_idintegerfalsenoneID пользователя
»» shop_idintegerfalsenoneID магазина
»» external_idstringfalsenoneВнешний ID выплаты
»» payout_typestringfalsenoneТип выплаты
»» recipient_card_numberstringfalsenoneНомер карты получателя
»» recipient_account_numberstringfalsenoneНомер счета получателя
»» recipient_bank_codestringfalsenoneКод банка получателя
»» recipient_namestringfalsenoneФИО получателя
»» recipient_phonestringfalsenoneТелефон получателя
»» amountnumber(float)falsenoneСумма выплаты
»» amount_with_feenumber(float)falsenoneСумма выплаты с комиссией
»» currencystringfalsenoneВалюта выплаты
»» statusstringfalsenoneСтатус выплаты
»» descriptionstringfalsenoneОписание выплаты
»» commentstringfalsenoneКомментарий к выплате
»» metadataobjectfalsenoneДополнительные данные
»» cancelled_reasonstringfalsenoneПричина отмены
»» processed_atstring(date-time)falsenoneДата обработки
»» created_atstring(date-time)falsenoneДата создания
»» updated_atstring(date-time)falsenoneДата обновления
»» userobjectfalsenoneИнформация о пользователе
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» emailstringfalsenonenone
»» shopobjectfalsenoneИнформация о магазине
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» urlstringfalsenonenone

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Обновление выплаты (только для статуса pending)

Code samples

PUT /v2/card-payouts/{id}

Body parameter

{
  "recipient_card_number": "1234567890123456",
  "recipient_account_number": "40817810099910004312",
  "recipient_bank_code": "044525225",
  "recipient_name": "Иванов Иван Иванович",
  "recipient_phone": "+79001234567",
  "amount": 1000.5,
  "description": "Выплата за услуги",
  "comment": "Дополнительная информация",
  "metadata": {}
}

Parameters

NameInTypeRequiredDescription
idpathintegertrueID выплаты
bodybodyCardPayoutUpdateRequesttruenone

Example responses

200 Response

{
  "success": true,
  "message": "Выплата успешно обновлена",
  "data": {
    "id": 1,
    "user_id": 1,
    "shop_id": 5,
    "external_id": "payout_123",
    "payout_type": "card",
    "recipient_card_number": "1234****3456",
    "recipient_account_number": "40817810099910004312",
    "recipient_bank_code": "044525225",
    "recipient_name": "Иванов Иван Иванович",
    "recipient_phone": "+79001234567",
    "amount": 1000.5,
    "amount_with_fee": 1005.5,
    "currency": "rub",
    "status": "pending",
    "description": "Выплата за услуги",
    "comment": "Дополнительная информация",
    "metadata": {},
    "cancelled_reason": "Запрос от клиента",
    "processed_at": "2023-10-01T12:00:00Z",
    "created_at": "2023-10-01T10:00:00Z",
    "updated_at": "2023-10-01T12:00:00Z",
    "user": {
      "id": 1,
      "name": "Иван Иванов",
      "email": "user@example.com"
    },
    "shop": {
      "id": 5,
      "name": "Мой магазин",
      "url": "https://myshop.com"
    }
  }
}

Responses

StatusMeaningDescriptionSchema
200OKВыплата успешно обновленаInline
401UnauthorizedUnauthorizedNone
403ForbiddenМожно редактировать только выплаты со статусом "Ожидает обработки"None
404Not FoundВыплата не найденаNone
422Unprocessable EntityОшибка валидации данныхNone
500Internal Server ErrorОшибка при обновлении выплатыNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» messagestringfalsenonenone
» dataCardPayoutfalsenoneВыплата
»» idintegerfalsenoneID выплаты
»» user_idintegerfalsenoneID пользователя
»» shop_idintegerfalsenoneID магазина
»» external_idstringfalsenoneВнешний ID выплаты
»» payout_typestringfalsenoneТип выплаты
»» recipient_card_numberstringfalsenoneНомер карты получателя
»» recipient_account_numberstringfalsenoneНомер счета получателя
»» recipient_bank_codestringfalsenoneКод банка получателя
»» recipient_namestringfalsenoneФИО получателя
»» recipient_phonestringfalsenoneТелефон получателя
»» amountnumber(float)falsenoneСумма выплаты
»» amount_with_feenumber(float)falsenoneСумма выплаты с комиссией
»» currencystringfalsenoneВалюта выплаты
»» statusstringfalsenoneСтатус выплаты
»» descriptionstringfalsenoneОписание выплаты
»» commentstringfalsenoneКомментарий к выплате
»» metadataobjectfalsenoneДополнительные данные
»» cancelled_reasonstringfalsenoneПричина отмены
»» processed_atstring(date-time)falsenoneДата обработки
»» created_atstring(date-time)falsenoneДата создания
»» updated_atstring(date-time)falsenoneДата обновления
»» userobjectfalsenoneИнформация о пользователе
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» emailstringfalsenonenone
»» shopobjectfalsenoneИнформация о магазине
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» urlstringfalsenonenone

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Отмена выплаты

Code samples

POST /v2/card-payouts/{id}/cancel

Body parameter

{
  "reason": "Запрос от клиента"
}

Parameters

NameInTypeRequiredDescription
idpathintegertrueID выплаты
bodybodyobjectfalsenone
» reasonbodystringfalseПричина отмены

Example responses

200 Response

{
  "success": true,
  "message": "Выплата успешно отменена",
  "data": {
    "id": 1,
    "user_id": 1,
    "shop_id": 5,
    "external_id": "payout_123",
    "payout_type": "card",
    "recipient_card_number": "1234****3456",
    "recipient_account_number": "40817810099910004312",
    "recipient_bank_code": "044525225",
    "recipient_name": "Иванов Иван Иванович",
    "recipient_phone": "+79001234567",
    "amount": 1000.5,
    "amount_with_fee": 1005.5,
    "currency": "rub",
    "status": "pending",
    "description": "Выплата за услуги",
    "comment": "Дополнительная информация",
    "metadata": {},
    "cancelled_reason": "Запрос от клиента",
    "processed_at": "2023-10-01T12:00:00Z",
    "created_at": "2023-10-01T10:00:00Z",
    "updated_at": "2023-10-01T12:00:00Z",
    "user": {
      "id": 1,
      "name": "Иван Иванов",
      "email": "user@example.com"
    },
    "shop": {
      "id": 5,
      "name": "Мой магазин",
      "url": "https://myshop.com"
    }
  }
}

Responses

StatusMeaningDescriptionSchema
200OKВыплата успешно отмененаInline
401UnauthorizedUnauthorizedNone
403ForbiddenМожно отменить только выплаты в статусе ожидания или обработкиNone
404Not FoundВыплата не найденаNone
422Unprocessable EntityОшибка валидации данныхNone
500Internal Server ErrorОшибка при отмене выплатыNone

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» successbooleanfalsenonenone
» messagestringfalsenonenone
» dataCardPayoutfalsenoneВыплата
»» idintegerfalsenoneID выплаты
»» user_idintegerfalsenoneID пользователя
»» shop_idintegerfalsenoneID магазина
»» external_idstringfalsenoneВнешний ID выплаты
»» payout_typestringfalsenoneТип выплаты
»» recipient_card_numberstringfalsenoneНомер карты получателя
»» recipient_account_numberstringfalsenoneНомер счета получателя
»» recipient_bank_codestringfalsenoneКод банка получателя
»» recipient_namestringfalsenoneФИО получателя
»» recipient_phonestringfalsenoneТелефон получателя
»» amountnumber(float)falsenoneСумма выплаты
»» amount_with_feenumber(float)falsenoneСумма выплаты с комиссией
»» currencystringfalsenoneВалюта выплаты
»» statusstringfalsenoneСтатус выплаты
»» descriptionstringfalsenoneОписание выплаты
»» commentstringfalsenoneКомментарий к выплате
»» metadataobjectfalsenoneДополнительные данные
»» cancelled_reasonstringfalsenoneПричина отмены
»» processed_atstring(date-time)falsenoneДата обработки
»» created_atstring(date-time)falsenoneДата создания
»» updated_atstring(date-time)falsenoneДата обновления
»» userobjectfalsenoneИнформация о пользователе
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» emailstringfalsenonenone
»» shopobjectfalsenoneИнформация о магазине
»»» idintegerfalsenonenone
»»» namestringfalsenonenone
»»» urlstringfalsenonenone

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
To perform this operation, you must be authenticated by means of one of the following methods: api-key

Schemas

CardPayoutRequest

{
  "shop_id": 5,
  "external_id": "payout_123",
  "payout_type": "card",
  "recipient_card_number": "1234567890123456",
  "recipient_account_number": "40817810099910004312",
  "recipient_bank_code": "044525225",
  "recipient_name": "Иванов Иван Иванович",
  "recipient_phone": "+79001234567",
  "amount": 1000.5,
  "currency": "rub",
  "description": "Выплата за услуги",
  "comment": "Дополнительная информация",
  "metadata": {
    "order_id": "12345",
    "department": "sales"
  }
}

Запрос создания выплаты

Properties

NameTypeRequiredRestrictionsDescription
shop_idintegertruenoneID магазина
external_idstringfalsenoneВнешний ID выплаты (должен быть уникальным)
payout_typestringtruenoneТип выплаты
recipient_card_numberstringfalsenoneНомер карты получателя (обязательно для типа card)
recipient_account_numberstringfalsenoneНомер счета получателя (обязательно для типа account)
recipient_bank_codestringfalsenoneКод банка получателя
recipient_namestringtruenoneФИО получателя
recipient_phonestringfalsenoneТелефон получателя
amountnumber(float)truenoneСумма выплаты
currencystringtruenoneВалюта выплаты
descriptionstringfalsenoneОписание выплаты
commentstringfalsenoneКомментарий к выплате
metadataobjectfalsenoneДополнительные данные

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
currencyrub

CardPayoutUpdateRequest

{
  "recipient_card_number": "1234567890123456",
  "recipient_account_number": "40817810099910004312",
  "recipient_bank_code": "044525225",
  "recipient_name": "Иванов Иван Иванович",
  "recipient_phone": "+79001234567",
  "amount": 1000.5,
  "description": "Выплата за услуги",
  "comment": "Дополнительная информация",
  "metadata": {}
}

Запрос обновления выплаты

Properties

NameTypeRequiredRestrictionsDescription
recipient_card_numberstringfalsenonenone
recipient_account_numberstringfalsenonenone
recipient_bank_codestringfalsenonenone
recipient_namestringfalsenonenone
recipient_phonestringfalsenonenone
amountnumber(float)falsenonenone
descriptionstringfalsenonenone
commentstringfalsenonenone
metadataobjectfalsenonenone

BulkCardPayoutRequest

{
  "shop_id": 5,
  "payouts": [
    {
      "external_id": "payout_123",
      "payout_type": "card",
      "recipient_card_number": "1234567890123456",
      "recipient_account_number": "40817810099910004312",
      "recipient_bank_code": "044525225",
      "recipient_name": "Иванов Иван Иванович",
      "recipient_phone": "+79001234567",
      "amount": 1000.5,
      "currency": "rub",
      "description": "Выплата за услуги",
      "comment": "Дополнительная информация",
      "metadata": {}
    }
  ]
}

Запрос массового создания выплат

Properties

NameTypeRequiredRestrictionsDescription
shop_idintegertruenoneID магазина
payouts[object]truenoneМассив выплат для создания
» external_idstringfalsenonenone
» payout_typestringtruenonenone
» recipient_card_numberstringfalsenonenone
» recipient_account_numberstringfalsenonenone
» recipient_bank_codestringfalsenonenone
» recipient_namestringtruenonenone
» recipient_phonestringfalsenonenone
» amountnumber(float)truenonenone
» currencystringtruenonenone
» descriptionstringfalsenonenone
» commentstringfalsenonenone
» metadataobjectfalsenonenone

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount
currencyrub

CardPayout

{
  "id": 1,
  "user_id": 1,
  "shop_id": 5,
  "external_id": "payout_123",
  "payout_type": "card",
  "recipient_card_number": "1234****3456",
  "recipient_account_number": "40817810099910004312",
  "recipient_bank_code": "044525225",
  "recipient_name": "Иванов Иван Иванович",
  "recipient_phone": "+79001234567",
  "amount": 1000.5,
  "amount_with_fee": 1005.5,
  "currency": "rub",
  "status": "pending",
  "description": "Выплата за услуги",
  "comment": "Дополнительная информация",
  "metadata": {},
  "cancelled_reason": "Запрос от клиента",
  "processed_at": "2023-10-01T12:00:00Z",
  "created_at": "2023-10-01T10:00:00Z",
  "updated_at": "2023-10-01T12:00:00Z",
  "user": {
    "id": 1,
    "name": "Иван Иванов",
    "email": "user@example.com"
  },
  "shop": {
    "id": 5,
    "name": "Мой магазин",
    "url": "https://myshop.com"
  }
}

Выплата

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenoneID выплаты
user_idintegerfalsenoneID пользователя
shop_idintegerfalsenoneID магазина
external_idstringfalsenoneВнешний ID выплаты
payout_typestringfalsenoneТип выплаты
recipient_card_numberstringfalsenoneНомер карты получателя
recipient_account_numberstringfalsenoneНомер счета получателя
recipient_bank_codestringfalsenoneКод банка получателя
recipient_namestringfalsenoneФИО получателя
recipient_phonestringfalsenoneТелефон получателя
amountnumber(float)falsenoneСумма выплаты
amount_with_feenumber(float)falsenoneСумма выплаты с комиссией
currencystringfalsenoneВалюта выплаты
statusstringfalsenoneСтатус выплаты
descriptionstringfalsenoneОписание выплаты
commentstringfalsenoneКомментарий к выплате
metadataobjectfalsenoneДополнительные данные
cancelled_reasonstringfalsenoneПричина отмены
processed_atstring(date-time)falsenoneДата обработки
created_atstring(date-time)falsenoneДата создания
updated_atstring(date-time)falsenoneДата обновления
userobjectfalsenoneИнформация о пользователе
» idintegerfalsenonenone
» namestringfalsenonenone
» emailstringfalsenonenone
shopobjectfalsenoneИнформация о магазине
» idintegerfalsenonenone
» namestringfalsenonenone
» urlstringfalsenonenone

Enumerated Values

PropertyValue
payout_typecard
payout_typeaccount

PayoutStatistics

{
  "total_count": 150,
  "total_amount": 50000,
  "by_status": {
    "property1": {
      "text": "Ожидает обработки",
      "count": 25,
      "amount": 10000
    },
    "property2": {
      "text": "Ожидает обработки",
      "count": 25,
      "amount": 10000
    }
  },
  "by_currency": {
    "property1": {
      "text": "Российский рубль",
      "count": 150,
      "amount": 50000
    },
    "property2": {
      "text": "Российский рубль",
      "count": 150,
      "amount": 50000
    }
  },
  "by_type": {
    "property1": {
      "text": "На карту",
      "count": 100,
      "amount": 35000
    },
    "property2": {
      "text": "На карту",
      "count": 100,
      "amount": 35000
    }
  }
}

Статистика по выплатам

Properties

NameTypeRequiredRestrictionsDescription
total_countintegerfalsenoneОбщее количество выплат
total_amountnumber(float)falsenoneОбщая сумма выплат
by_statusobjectfalsenoneСтатистика по статусам
» additionalPropertiesobjectfalsenonenone
»» textstringfalsenonenone
»» countintegerfalsenonenone
»» amountnumber(float)falsenonenone
by_currencyobjectfalsenoneСтатистика по валютам
» additionalPropertiesobjectfalsenonenone
»» textstringfalsenonenone
»» countintegerfalsenonenone
»» amountnumber(float)falsenonenone
by_typeobjectfalsenoneСтатистика по типам
» additionalPropertiesobjectfalsenonenone
»» textstringfalsenonenone
»» countintegerfalsenonenone
»» amountnumber(float)falsenonenone

Pagination

{
  "current_page": 1,
  "last_page": 10,
  "per_page": 15,
  "total": 150
}

Информация о пагинации

Properties

NameTypeRequiredRestrictionsDescription
current_pageintegerfalsenoneТекущая страница
last_pageintegerfalsenoneПоследняя страница
per_pageintegerfalsenoneЭлементов на странице
totalintegerfalsenoneОбщее количество элементов

PaymentRequest

{
  "currency": "rub",
  "amount": "1000.50",
  "uuid": "invoice_123",
  "shopId": 5,
  "description": "Покупка булочек",
  "website_url": "https://example.com",
  "subscribe": null,
  "holdTime": null,
  "language": "ru",
  "items": [
    {
      "description": "string",
      "quantity": 0,
      "price": 0,
      "vat_code": 0,
      "payment_subject": 1,
      "payment_mode": 1,
      "product_code": "string",
      "country_of_origin_code": "string",
      "customs_declaration_number": "string",
      "excise": "string",
      "measurement_unit": 0
    }
  ],
  "sign": "string"
}

Запрос платежа

Properties

NameTypeRequiredRestrictionsDescription
currencystringtruenoneВалюта оплаты (rub)
amountnumbertruenoneСумма оплаты с копейками строкой 100.50
uuidstringtruenoneUuid заказа на строное магазина
shopIdintegertruenoneID магазина из ЛК
descriptionstringtruenoneОписание платежа
website_urlstringfalsenoneСсылка на сайт магазина
subscribestringfalsenoneПодписка, если не требуется то null, варианты данных - Day, Week, Month
holdTimeintegerfalsenoneВремя в секундах, на которое происходит холд денег клиента. После гое истечения происходит отмена. Либо нужно подтвердить списание
languagestringfalsenoneЯзык формы оплаты
items[object]truenonenone
» descriptionstringtruenoneОписание товара
» quantitynumbertruenoneКоличество товара
» pricenumbertruenoneЦена товара
» vat_codeintegertruenoneКод ставки НДС. Возможные значения:
- 0: Без НДС
- 1: НДС по ставке 0%
- 2: НДС чека по ставке 10%
- 3: НДС чека по ставке 18%
- 4: НДС чека по расчетной ставке 10/110
- 5: НДС чека по расчетной ставке 18/118
- 6: НДС чека по ставке 20%
- 7: НДС чека по расчетной ставке 20/120
» payment_subjectintegertruenoneКод предмета платежа. Возможные значения:

- 1: Товар
- 2: Подакцизный товар
- 3: Работа
- 4: Услуга
- 5: Ставка азартной игры
- 6: Выигрыш азартной игры
- 7: Лотерейный билет
- 8: Выигрыш лотереи
- 9: Предоставление РИД
- 10: Платеж
- 11: Агентское вознаграждение
- 12: Выплата
- 13: Иной предмет расчета
- 14: Имущественное право
- 15: Внереализационный доход
- 16: Иные платежи и взносы
- 17: Торговый сбор
- 19: Залог
- 20: Расход
- 21: Взносы на обязательное пенсионное страхование ИП
- 22: Взносы на обязательное пенсионное страхование
- 23: Взносы на обязательное медицинское страхование ИП
- 24: Взносы на обязательное медицинское страхование
- 25: Взносы на обязательное социальное страхование
- 26: Платеж казино
» payment_modeintegertruenoneКод метода платежа
- 1: Полная предоплата
- 2: Частичная предоплата
- 3: Аванс
- 4: Полный расчет
- 5: Частичный расчет и кредит
- 6: Кредит
- 7: Выплата по кредиту
» product_codestring¦nullfalsenonenone
» country_of_origin_codestring¦nullfalsenonenone
» customs_declaration_numberstring¦nullfalsenonenone
» excisestring¦nullfalsenonenone
» measurement_unitinteger¦nullfalsenoneКод единицы измерения. Возможные значения:
- 0: Штука или единица (шт. или ед.)
- 10: Грамм (г)
- 11: Килограмм (кг)
- 12: Тонна (т)
- 20: Сантиметр (см)
- 21: Дециметр (дм)
- 22: Метр (м)
- 30: Квадратный сантиметр (кв. см)
- 31: Квадратный дециметр (кв. дм)
- 32: Квадратный метр (кв. м)
- 40: Миллилитр (мл)
- 41: Литр (л)
- 42: Кубический метр (куб. м)
- 50: Киловатт час (кВт · ч)
- 51: Гигакалория (Гкал)
- 70: Сутки (сутки)
- 71: Час (час)
- 72: Минута (мин)
- 73: Секунда (с)
- 80: Килобайт (Кбайт)
- 81: Мегабайт (Мбайт)
- 82: Гигабайт (Гбайт)
- 83: Терабайт (Тбайт)
- 255: Применяется при использовании иных единиц измерения, не поименованных в п. п. 1 - 23
signstringtruenoneПодпись данных состоящая из конкатенации параметров currency, amount, shopId и секретного ключа из ЛК хешированная в sha1

Enumerated Values

PropertyValue
currencyrub
subscribeDay
subscribeWeek
subscribeMonth
vat_code0
vat_code1
vat_code2
vat_code3
vat_code4
vat_code5
vat_code6
vat_code7
payment_subject1
payment_subject2
payment_subject3
payment_subject4
payment_subject5
payment_subject6
payment_subject7
payment_subject8
payment_subject9
payment_subject10
payment_subject11
payment_subject12
payment_subject13
payment_subject14
payment_subject15
payment_subject16
payment_subject17
payment_subject19
payment_subject20
payment_subject21
payment_subject22
payment_subject23
payment_subject24
payment_subject25
payment_subject26
payment_mode1
payment_mode2
payment_mode3
payment_mode4
payment_mode5
payment_mode6
payment_mode7
measurement_unit0
measurement_unit10
measurement_unit11
measurement_unit12
measurement_unit20
measurement_unit21
measurement_unit22
measurement_unit30
measurement_unit31
measurement_unit32
measurement_unit40
measurement_unit41
measurement_unit42
measurement_unit50
measurement_unit51
measurement_unit70
measurement_unit71
measurement_unit72
measurement_unit73
measurement_unit80
measurement_unit81
measurement_unit82
measurement_unit83
measurement_unit255

Payment

{
  "id": 1,
  "uuid": "string",
  "amount": "string",
  "currency": "string",
  "description": "string",
  "status": 3
}

Платеж

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenoneID платежа
uuidstringfalsenonenone
amountstringfalsenonenone
currencystringfalsenonenone
descriptionstringfalsenonenone
statusintegerfalsenoneСтатус платежа:
- 0: Создан
- 1: В обработке
- 2: Отменен
- 3: Обработан
- 4: Ошибка
- 5: Холд
- 6: Холд

Enumerated Values

PropertyValue
status0
status1
status2
status3
status4
status5
status6

Subscribe

{
  "id": 1,
  "description": "string",
  "status": 0,
  "currency": "rub",
  "amount": "1000.50",
  "start_date": "string",
  "next_pay_date": "string",
  "interval": null
}

Подписка

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenoneID подписки
descriptionstringfalsenonenone
statusintegerfalsenonenone
currencystringfalsenoneВалюта оплаты (rub)
amountstringfalsenoneСумма оплаты с копейками строкой 100.50
start_datestringfalsenoneСтартовая дата
next_pay_datestringfalsenoneСледующая дата оплаты
intervalstringfalsenoneИнтервал списания, варианты данных - Day, Week, Month

ArticleFlareTag

{
  "name": "string",
  "bg_color_hex": "string",
  "text_color_hex": "string"
}

Flare tag of the article

Properties

NameTypeRequiredRestrictionsDescription
namestringfalsenonenone
bg_color_hexstring¦nullfalsenoneBackground color (hexadecimal)
text_color_hexstring¦nullfalsenoneText color (hexadecimal)

Receipt

{
  "id": 1,
  "daemon_code": "DAEMON123",
  "device_code": "DEVICE456",
  "warnings": [
    "Warning 1",
    "Warning 2"
  ],
  "error": [
    "Error 1",
    "Error 2"
  ],
  "ecr_registration_number": "REG123456",
  "fiscal_document_attribute": 1,
  "fiscal_document_number": 1001,
  "fiscal_receipt_number": 5001,
  "fn_number": "FN123456",
  "fns_site": "https://fns.ru",
  "receipt_datetime": "2023-10-01T12:00:00Z",
  "shift_number": 1,
  "total": 1000.5,
  "ofd_inn": "1234567890",
  "ofd_receipt_url": "https://ofd.example.com/receipt/1",
  "status": "success",
  "uuid": "invoice_123",
  "created_at": "2023-10-01T12:00:00Z",
  "updated_at": "2023-10-01T12:00:00Z"
}

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenoneУникальный идентификатор чека
daemon_codestringfalsenoneКод демона, если применимо
device_codestringfalsenoneКод устройства, если применимо
warnings[string]falsenoneСписок предупреждений, связанных с чеком
error[string]falsenoneСписок ошибок, связанных с чеком
ecr_registration_numberstringfalsenoneРегистрационный номер ККТ
fiscal_document_attributeintegerfalsenoneАтрибут фискального документа
fiscal_document_numberintegerfalsenoneНомер фискального документа
fiscal_receipt_numberintegerfalsenoneНомер фискального чека
fn_numberstringfalsenoneНомер фискального накопителя
fns_sitestringfalsenoneСайт ФНС
receipt_datetimestring(date-time)falsenoneДата и время создания чека
shift_numberintegerfalsenoneНомер смены
totalnumber(float)falsenoneОбщая сумма чека
ofd_innstringfalsenoneИНН ОФД
ofd_receipt_urlstringfalsenoneURL для получения чека у ОФД
statusstringfalsenoneСтатус чека
uuidstringfalsenoneУникальный идентификатор заказа
created_atstring(date-time)falsenoneДата и время создания записи о чеке
updated_atstring(date-time)falsenoneДата и время последнего обновления записи о чеке

Balance

{
  "shop_id": 5,
  "currency": "rub",
  "balance": 1000.5,
  "hold": 200,
  "available": 800.5
}

Баланс магазина

Properties

NameTypeRequiredRestrictionsDescription
shop_idintegerfalsenoneID магазина
currencystringfalsenoneВалюта баланса
balancenumber(float)falsenoneОбщий баланс
holdnumber(float)falsenoneСумма на холде
availablenumber(float)falsenoneДоступная сумма (balance - hold)
Next
GITHUB