Забронированные товары
Все документы, держащие товар склада («Бронь» в списке товаров): подборы продавцов с бронью, черновики кассы и перемещения, ожидающие подтверждения. Числа совпадают с колонкой «Бронь» — обе читают одни и те же строки. Снять бронь со страницы можно с подборов в статусе picking, а директор компании — и с отправленных на кассу (sent); у подбора сохраняется, кто, когда и почему его отменил (canceled_by, canceled_at, cancel_reason, cancel_comment).
| Метод | Адрес | Назначение |
|---|---|---|
| GET | /company/trade/reservation | Брони по документам |
| POST | /company/trade/reservation/cancel | Снять бронь |
| GET | /company/trade/reservation/{type}/{id} | Документ брони |
Брони по документам
Строка на документ: type (seller_cart, temporary_cart, transfer), код, статус, склад, строки (items), количество и сумма, клиент, создатель, can_cancel с причиной запрета cancel_block_reason и is_stale (старше 24 часов). По умолчанию сверху самая старая. Фильтры: type, status, stock_id, creator_id, product_id, product (название или штрихкод), created_at, older_than_hours, has_client.
/company/trade/reservationЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры запроса
| Параметр | Описание |
|---|---|
filter[id] | ID — одно значение или список filter[id][] |
filter[type] | Тип — одно значение или список filter[type][] |
filter[status] | Статус — одно значение или список filter[status][] |
filter[company_id] | Компания — одно значение или список filter[company_id][] |
filter[stock_id] | Склад — одно значение или список filter[stock_id][] |
filter[creator_id] | Создатель — одно значение или список filter[creator_id][] |
filter[client_id] | Клиент — одно значение или список filter[client_id][] |
filter[code] | Код — поиск по части строки |
filter[created_at] | Создано — период: [0] — с, [1] — по (Y-m-d) |
sort[] | Сортировка, - — по убыванию: id, -id, created_at, -created_at, updated_at, -updated_at, total_quantity, -total_quantity, total_amount, -total_amount |
with[] | Подгрузить связи: stock, company, client, creator.profile |
page | Номер страницы, с 1 |
page-size | Записей на странице, не больше 20 |
GET /company/trade/reservation?with[0]=stock&with[1]=creator.profile&with[2]=clientОтвет · 200
Постраничный ответ: записи в data[], пагинация в links и meta.
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
data | object[] | Данные |
data[].type | string | Тип |
data[].id | integer | ID |
data[].company_id | integer | Компания |
data[].stock_id | integer | Склад |
data[].code | string | Код |
data[].status | string | Статус |
data[].client_id | integer | Клиент |
data[].creator_id | integer | Создатель |
data[].total_quantity | integer | |
data[].total_amount | integer | |
data[].lines_count | integer | |
data[].created_at | string | Создано |
data[].updated_at | string | Обновлено |
data[].items | object[] | Состав |
data[].items[].product_id | integer | Продукт |
data[].items[].name | string | Название |
data[].items[].barcode | string | Штрих-код |
data[].items[].quantity | integer | Количество |
data[].items[].price | integer | Цена |
data[].can_cancel | boolean | |
data[].cancel_block_reason | string | |
data[].is_stale | boolean | |
data[].stock | object | |
data[].stock.id | integer | ID |
data[].stock.creator_id | integer | Создатель |
data[].stock.company_id | integer | Компания |
data[].stock.name | string | Название |
data[].stock.is_available | boolean | Доступен |
data[].stock.created_at | string | Создано |
data[].stock.updated_at | string | Обновлено |
data[].stock.is_deleted | boolean | Удалена |
data[].creator | object | |
data[].creator.id | integer | ID |
data[].creator.type | string | Тип |
data[].creator.role_id | integer | Роль |
data[].creator.company_id | integer | Компания |
data[].creator.partner_id | null | Партнёр |
data[].creator.username | string | Логин |
data[].creator.pinfl | null | ПИНФЛ |
data[].creator.phone | string | Телефон |
data[].creator.sipuni_sip_number | string | VoIP - Sipuni (SIP-номер) |
data[].creator.is_confirmed | boolean | |
data[].creator.are_all_companies_available | boolean | |
data[].creator.last_login_at | null | Последний вход |
data[].creator.created_at | string | Создано |
data[].creator.updated_at | string | Обновлено |
data[].creator.is_deleted | boolean | Удалена |
data[].creator.profile | object | |
data[].creator.profile.first_name | null | Имя |
data[].creator.profile.last_name | null | Фамилия |
data[].creator.profile.position | null | Должность |
data[].creator.profile.birth_date | null | Дата рождения |
data[].creator.profile.gender | null | Пол |
data[].creator.profile.is_discount_limited | boolean | |
data[].creator.profile.max_item_discount_percent | null | |
data[].creator.profile.max_check_discount_percent | null | |
data[].creator.profile.is_device_limited | boolean | |
data[].creator.profile.max_devices | integer | |
data[].creator.profile.is_mobile_login_allowed | boolean | |
data[].creator.profile.last_device_number | integer | |
data[].creator.profile.full_name | string | ФИО |
data[].client | object | |
data[].client.id | integer | ID |
data[].client.creator_id | integer | Создатель |
data[].client.company_id | integer | Компания |
data[].client.bonus_tariff_id | integer | Бонусный тариф |
data[].client.source_id | null | Источник |
data[].client.bonus_entries_amount | integer | Сумма бонусных записей |
data[].client.bonus_accumulations_amount | integer | Бонусный баланс |
data[].client.cashback_entered_at | null | |
data[].client.cashback_entry_sale_id | null | |
data[].client.full_name | string | ФИО |
data[].client.gender | string | Пол |
data[].client.birth_date | string | Дата рождения |
data[].client.image | string | Изображение |
data[].client.image_thumbs | object | |
data[].client.image_thumbs.widen_100 | object | |
data[].client.image_thumbs.widen_100.raw | string | |
data[].client.image_thumbs.widen_100.webp | string | |
data[].client.image_thumbs.widen_500 | object | |
data[].client.image_thumbs.widen_500.raw | string | |
data[].client.image_thumbs.widen_500.webp | string | |
data[].client.image_thumbs.original | object | |
data[].client.image_thumbs.original.raw | string | |
data[].client.image_thumbs.original.webp | string | |
data[].client.main_phone | string | Основной телефон |
data[].client.additional_phones | array | Дополнительные телефоны |
data[].client.languages | array | Языки |
data[].client.address | null | Адрес |
data[].client.latitude | null | Широта |
data[].client.longitude | null | Долгота |
data[].client.region_id | null | Регион |
data[].client.district | null | Район |
data[].client.street | null | Улица |
data[].client.landmark | null | Ориентир |
data[].client.socials | object | Соц-сети |
data[].client.socials.other | string | |
data[].client.socials.facebook | string | |
data[].client.socials.telegram | string | |
data[].client.socials.instagram | string | |
data[].client.is_imported | boolean | |
data[].client.is_wholesale | boolean | |
data[].client.created_at | string | Создано |
data[].client.updated_at | string | Обновлено |
data[].client.is_deleted | boolean | Удалена |
data[].type_label | string | |
data[].status_label | string |
{
"data": [
{
"type": "temporary_cart",
"id": 1,
"company_id": 1,
"stock_id": 1,
"code": "1",
"status": "draft",
"client_id": 1,
"creator_id": 2,
"total_quantity": 3,
"total_amount": 22400,
"lines_count": 2,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"items": [
{
"product_id": 1,
"name": "Product 1",
"barcode": "0000000000001",
"quantity": 2,
"price": 8700
},
{
"product_id": 2,
"name": "Product 1-1",
"barcode": "0000000000011",
"quantity": 1,
"price": 5000
}
],
"can_cancel": false,
"cancel_block_reason": "Черновик кассы закрывает кассир",
"is_stale": false,
"stock": {
"id": 1,
"creator_id": 2,
"company_id": 1,
"name": "Stock 1",
"is_available": true,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"is_deleted": false
},
"creator": {
"id": 2,
"type": "director",
"role_id": 2,
"company_id": 1,
"partner_id": null,
"username": "director_1@local.host",
"pinfl": null,
"phone": "998020000001",
"sipuni_sip_number": "210",
"is_confirmed": true,
"are_all_companies_available": false,
"last_login_at": null,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"is_deleted": false,
"profile": {
"first_name": null,
"last_name": null,
"position": null,
"birth_date": null,
"gender": null,
"is_discount_limited": false,
"max_item_discount_percent": null,
"max_check_discount_percent": null,
"is_device_limited": true,
"max_devices": 2,
"is_mobile_login_allowed": true,
"last_device_number": 0,
"full_name": " "
}
},
"client": {
"id": 1,
"creator_id": 2,
"company_id": 1,
"bonus_tariff_id": 1,
"source_id": null,
"bonus_entries_amount": 1000,
"bonus_accumulations_amount": 1000,
"cashback_entered_at": null,
"cashback_entry_sale_id": null,
"full_name": "Full name 1",
"gender": "male",
"birth_date": "1990-01-01",
"image": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"image_thumbs": {
"widen_100": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
},
"widen_500": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
},
"original": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
}
},
"main_phone": "998000000001",
"additional_phones": [
"998000000011",
"998000000012"
],
"languages": [
"ru",
"uz"
],
"address": null,
"latitude": null,
"longitude": null,
"region_id": null,
"district": null,
"street": null,
"landmark": null,
"socials": {
"other": "6b06c98844807",
"facebook": "6b06c98844806",
"telegram": "6b06c98844804",
"instagram": "6b06c98844805"
},
"is_imported": false,
"is_wholesale": false,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:51:33",
"is_deleted": false
},
"type_label": "Черновик кассы",
"status_label": "Черновик"
},
{
"type": "temporary_cart",
"id": 2,
"company_id": 1,
"stock_id": 1,
"code": "2",
"status": "draft",
"client_id": null,
"creator_id": 2,
"total_quantity": 3,
"total_amount": 27000,
"lines_count": 1,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"items": [
{
"product_id": 1,
"name": "Product 1",
"barcode": "0000000000001",
"quantity": 3,
"price": 9000
}
],
"can_cancel": false,
"cancel_block_reason": "Черновик кассы закрывает кассир",
"is_stale": false,
"stock": {
"id": 1,
"creator_id": 2,
"company_id": 1,
"name": "Stock 1",
"is_available": true,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"is_deleted": false
},
"creator": {
"id": 2,
"type": "director",
"role_id": 2,
"company_id": 1,
"partner_id": null,
"username": "director_1@local.host",
"pinfl": null,
"phone": "998020000001",
"sipuni_sip_number": "210",
"is_confirmed": true,
"are_all_companies_available": false,
"last_login_at": null,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"is_deleted": false,
"profile": {
"first_name": null,
"last_name": null,
"position": null,
"birth_date": null,
"gender": null,
"is_discount_limited": false,
"max_item_discount_percent": null,
"max_check_discount_percent": null,
"is_device_limited": true,
"max_devices": 2,
"is_mobile_login_allowed": true,
"last_device_number": 0,
"full_name": " "
}
},
"client": null,
"type_label": "Черновик кассы",
"status_label": "Черновик"
}
],
"links": {
"first": "https://api.wasyt.uz/company/trade/reservation?page=1",
"last": "https://api.wasyt.uz/company/trade/reservation?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/trade/reservation",
"per_page": 20,
"to": 4,
"total": 4
}
}Снять бронь
Снимает бронь с документов items (до 100): каждый — отдельной транзакцией под блокировкой строки, неудача одного не останавливает остальные; ответ — результат по каждому (ok, status, error). reason обязателен, при other — ещё comment. updated_at документа из списка: если он изменился — 409. Отменить можно подбор в picking, директор компании — и отправленный на кассу (sent); остальное — 422; продавец получает уведомление в Telegram-бот. Одиночный запрос отвечает статусом своего документа.
/company/trade/reservation/cancelЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
items | object[] | Да | Состав. Мин. 1 элементов. Макс. 100 элементов |
items[].type | string | Да | Тип. Допустимые значения: seller_cart, temporary_cart, transfer |
items[].id | integer | Да | ID. Не меньше 1 |
items[].updated_at | string (date) | Нет | Обновлено |
reason | string | Да | Причина. Допустимые значения: duplicate, client_refused, expired, other |
comment | string | Нет | Комментарий. Макс. 1000 символов |
Ответ
Пример ответа пока не записан тестами.
Документ брони
Один документ со строками и историей (history: создан, отправлен, отменён — кто, когда, причина). Документ, с которого бронь уже снята, тоже открывается. Документ чужой компании — 404.
/company/trade/reservation/{type}/{id}Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
type | Тип (см. описание метода) |
id | ID |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
type | string | Тип |
id | integer | ID |
company_id | integer | Компания |
stock_id | integer | Склад |
code | string | Код |
status | string | Статус |
client_id | null | Клиент |
creator_id | integer | Создатель |
total_quantity | integer | |
total_amount | integer | |
lines_count | integer | |
created_at | string | Создано |
updated_at | string | Обновлено |
items | object[] | Состав |
items[].product_id | integer | Продукт |
items[].name | string | Название |
items[].barcode | string | Штрих-код |
items[].quantity | integer | Количество |
items[].price | integer | Цена |
can_cancel | boolean | |
cancel_block_reason | string | |
is_stale | boolean | |
history | object[] | |
history[].event | string | |
history[].at | string | |
history[].user_id | integer | Пользователь |
history[].user | object | |
history[].user.id | integer | ID |
history[].user.name | string | Название |
stock | object | |
stock.id | integer | ID |
stock.creator_id | integer | Создатель |
stock.company_id | integer | Компания |
stock.name | string | Название |
stock.is_available | boolean | Доступен |
stock.created_at | string | Создано |
stock.updated_at | string | Обновлено |
stock.is_deleted | boolean | Удалена |
company | object | Компания |
company.id | integer | ID |
company.parent_id | null | Родитель |
company.partner_id | integer | Партнёр |
company.district_id | integer | Район |
company.industry_id | integer | Сфера деятельности |
company.name | string | Название |
company.company_name | string | Компания |
company.logo | object | Логотип |
company.logo.original | object | |
company.logo.original.raw | string | |
company.logo.original.webp | string | |
company.logo.widen_25 | object | |
company.logo.widen_25.raw | string | |
company.logo.widen_25.webp | string | |
company.logo.widen_100 | object | |
company.logo.widen_100.raw | string | |
company.logo.widen_100.webp | string | |
company.logo.widen_500 | object | |
company.logo.widen_500.raw | string | |
company.logo.widen_500.webp | string | |
company.inn | string | ИНН |
company.mfo | string | МФО |
company.address | string | Адрес |
company.latitude | null | Широта |
company.longitude | null | Долгота |
company.comment | string | Комментарий |
company.telegram_phone | string | Телефон в Telegram |
company.director_full_name | string | ФИО директора |
company.bank | string | Банк |
company.payment_account | string | Расчётный счёт |
company.agreement_number | string | Номер договора |
company.agreement_date | null | |
company.atmos_terminal_id | integer | ID терминала в Atmos |
company.uniaccess_auto_payment_credit_overdue_days | integer | |
company.uniaccess_branch_id | integer | Branch ID в Uniaccess |
company.field_of_activity | string | Направление |
company.vat_percent | string | НДС (%) |
company.is_using_new_my_uzcard_auto_payment_by_pinfl | boolean | Использует новый метод MyUzcard для автосписания по ПИНФЛ |
company.bonus_entry_period | integer | Период учёта бонусов (в месяцах) |
company.abc_segment_a | integer | |
company.abc_segment_b | integer | |
company.abc_segment_c | integer | |
company.is_pos_window_enabled | boolean | |
company.is_multi_currency_sale | boolean | |
company.cashbox_shift_settings | object | |
company.cashbox_shift_settings.is_enabled | boolean | Включено |
company.pos_layout_settings | null | |
company.manual_discount_settings | null | |
company.is_manual_sale_price | boolean | |
company.wholesale_settings | null | |
company.product_settings | null | |
company.has_bank_payment_type | boolean | |
company.payment_type_names | null | |
company.is_ican_turned_on | boolean | ICAN включён |
company.created_at | string | Создано |
company.updated_at | string | Обновлено |
company.is_deleted | boolean | Удалена |
client | null | |
creator | object | |
creator.id | integer | ID |
creator.type | string | Тип |
creator.role_id | integer | Роль |
creator.company_id | integer | Компания |
creator.partner_id | null | Партнёр |
creator.username | string | Логин |
creator.pinfl | null | ПИНФЛ |
creator.phone | string | Телефон |
creator.sipuni_sip_number | string | VoIP - Sipuni (SIP-номер) |
creator.is_confirmed | boolean | |
creator.are_all_companies_available | boolean | |
creator.last_login_at | null | Последний вход |
creator.created_at | string | Создано |
creator.updated_at | string | Обновлено |
creator.is_deleted | boolean | Удалена |
creator.profile | object | |
creator.profile.first_name | string | Имя |
creator.profile.last_name | string | Фамилия |
creator.profile.position | string | Должность |
creator.profile.birth_date | null | Дата рождения |
creator.profile.gender | null | Пол |
creator.profile.is_discount_limited | boolean |
{
"type": "seller_cart",
"id": 12,
"company_id": 1,
"stock_id": 1,
"code": "0001",
"status": "sent",
"client_id": null,
"creator_id": 4,
"total_quantity": 3,
"total_amount": 3300,
"lines_count": 1,
"created_at": "2026-11-25 16:51:32",
"updated_at": "2026-11-25 16:51:32",
"items": [
{
"product_id": 1,
"name": "Product 1",
"barcode": "0000000000001",
"quantity": 3,
"price": 1100
}
],
"can_cancel": true,
"cancel_block_reason": null,
"is_stale": false,
"history": [
{
"event": "created",
"at": "2026-11-25 16:51:32",
"user_id": 4,
"user": {
"id": 4,
"name": "First name 1 Last name 1"
}
},
{
"event": "sent",
"at": "2026-11-25 16:51:32",
"user_id": 4,
"user": {
"id": 4,
"name": "First name 1 Last name 1"
}
}
],
"stock": {
"id": 1,
"creator_id": 2,
"company_id": 1,
"name": "Stock 1",
"is_available": true,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"is_deleted": false
},
"company": {
"id": 1,
"parent_id": null,
"partner_id": 1,
"district_id": 1,
"industry_id": 1,
"name": "Company 1",
"company_name": "Company 1",
"logo": {
"original": {
"raw": "https://api.wasyt.uz/test_data/images/1.png",
"webp": "https://api.wasyt.uz/storage/thumbs/original/cac08f877f130e3c368a053b62984ee51778568717.webp"
},
"widen_25": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.png",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.webp"
},
"widen_100": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.png",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.webp"
},
"widen_500": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.png",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.webp"
}
},
"inn": "000000001",
"mfo": "00001",
"address": "Address 1",
"latitude": null,
"longitude": null,
"comment": "Comment 1",
"telegram_phone": "998000000001",
"director_full_name": "Director 1",
"bank": "Bank 1",
"payment_account": "00000000000000000001",
"agreement_number": "001/2026",
"agreement_date": null,
"atmos_terminal_id": 97007302,
"uniaccess_auto_payment_credit_overdue_days": 3,
"uniaccess_branch_id": 1,
"field_of_activity": "trading",
"vat_percent": "12.00",
"is_using_new_my_uzcard_auto_payment_by_pinfl": true,
"bonus_entry_period": 12,
"abc_segment_a": 75,
"abc_segment_b": 15,
"abc_segment_c": 10,
"is_pos_window_enabled": true,
"is_multi_currency_sale": false,
"cashbox_shift_settings": {
"is_enabled": true
},
"pos_layout_settings": null,
"manual_discount_settings": null,
"is_manual_sale_price": false,
"wholesale_settings": null,
"product_settings": null,
"has_bank_payment_type": false,
"payment_type_names": null,
"is_ican_turned_on": true,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:43:30",
"is_deleted": false
},
"client": null,
"creator": {
"id": 4,
"type": "employee",
"role_id": 4,
"company_id": 1,
"partner_id": null,
"username": "employee_1_1@local.host",
"pinfl": null,
"phone": "998030000001",
"sipuni_sip_number": "211",
"is_confirmed": true,
"are_all_companies_available": false,
"last_login_at": null,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:43:31",
"is_deleted": false,
"profile": {
"first_name": "First name 1",
"last_name": "Last name 1",
"position": "Position 1",
"birth_date": null,
"gender": null,
"is_discount_limited": false,
"max_item_discount_percent": null,
"max_check_discount_percent": null,
"is_device_limited": true,
"max_devices": 2,
"is_mobile_login_allowed": true,
"last_device_number": 0,
"full_name": "Last name 1 First name 1"
}
},
"type_label": "Подбор продавца",
"status_label": "На кассе"
}
