Корзины продавца-консультанта
Подбор товаров продавцом-консультантом: корзина собирается (picking), отправляется на кассу с номером очереди дня (sent) и закрывается продажей (completed) или отменой. Продавец видит свои корзины, директор — корзины всех продавцов.
| Метод | Адрес | Назначение |
|---|---|---|
| GET | /company/trade/seller-cart/stats | Статистика корзин |
| GET | /company/trade/seller-cart/sales | Продажи продавца |
| GET | /company/trade/seller-cart/sales-stats | Итоги продаж продавца |
| GET | /company/trade/seller-cart/{model}/sale-detail | Детали продажи корзины |
| GET | /company/trade/seller-cart/queue | Очередь корзин на кассе |
| GET | /company/trade/seller-cart/{model}/cheque | Открыть корзину на кассе |
| PATCH | /company/trade/seller-cart/{model}/send | Отправить корзину на кассу |
| PATCH | /company/trade/seller-cart/{model}/cancel | Отменить корзину |
| GET | /company/trade/seller-cart | Мои корзины |
| GET | /company/trade/seller-cart/{model} | Детали корзины |
| POST | /company/trade/seller-cart | Создать корзину |
| PUT | /company/trade/seller-cart/{model} | Изменить корзину |
| DELETE | /company/trade/seller-cart/{model} | Удалить корзину |
Статистика корзин
/company/trade/seller-cart/statsКарточки над «Мои корзины» с учётом фильтров списка: количество в подборе, отправленных и проданных, а также active_amount — сумма корзин, ещё не дошедших до продажи.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
picking_count | integer | |
sent_count | integer | |
completed_count | integer | |
active_amount | integer |
{
"picking_count": 2,
"sent_count": 0,
"completed_count": 0,
"active_amount": 2200
}Продажи продавца
/company/trade/seller-cart/sales«Список продаж» продавца: корзины, дошедшие до кассы, с заработанным бонусом — процентным bonus и фиксированным fsm_bonus — с учётом возвратов и обменов.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры запроса
| Параметр | Описание |
|---|---|
with[] | Подгрузить связи |
GET /company/trade/seller-cart/sales?with[0]=client&with[1]=creator.profileОтвет · 200
Постраничный ответ: записи в data[], пагинация в links и meta.
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
data | object[] | Данные |
data[].id | integer | ID |
data[].creator_id | integer | Создатель |
data[].company_id | integer | Компания |
data[].stock_id | integer | Склад |
data[].client_id | null | Клиент |
data[].sale_id | null | Продажа |
data[].code | string | Код |
data[].currency | string | Валюта |
data[].discount_mode | null | Тип скидки |
data[].discount_value | null | Размер скидки |
data[].is_reserved | boolean | |
data[].amount | integer | Сумма |
data[].discount_amount | integer | |
data[].total_amount | integer | |
data[].products_count | integer | |
data[].status | string | Статус |
data[].sale_status | string | |
data[].sent_at | string | |
data[].created_at | string | Создано |
data[].updated_at | string | Обновлено |
data[].bonus | string | |
data[].fsm_bonus | string | |
data[].client | null | |
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.full_name | string | ФИО |
{
"data": [
{
"id": 29,
"creator_id": 2,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0002",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"products_count": 1,
"status": "canceled",
"sale_status": "canceled",
"sent_at": "2026-09-30 12:55:47",
"created_at": "2026-09-30 12:55:47",
"updated_at": "2026-09-30 12:55:47",
"bonus": "0",
"fsm_bonus": "0",
"client": null,
"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-09-30 12:47:59",
"updated_at": "2026-09-30 12:47:59",
"is_deleted": false,
"profile": {
"first_name": null,
"last_name": null,
"position": null,
"birth_date": null,
"gender": null,
"full_name": " "
}
}
}
],
"links": {
"first": "https://api.wasyt.uz/company/trade/seller-cart/sales?page=1",
"last": "https://api.wasyt.uz/company/trade/seller-cart/sales?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/trade/seller-cart/sales",
"per_page": 20,
"to": 1,
"total": 1
}
}Итоги продаж продавца
/company/trade/seller-cart/sales-statsШапка «Списка продаж»: денежные карточки, счётчики вкладок по sale_status и список продавцов. Вкладка и продавец сужают денежные итоги, но не свои счётчики.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
sale_status | string | Нет | Допустимые значения: completed, partially_canceled, canceled, partially_returned, returned, exchanged |
creator_id | integer | Нет | Создатель |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
total_bonus | integer | |
total_sales | integer | |
status_counts | object | |
status_counts.all | integer | |
status_counts.completed | integer | |
status_counts.partially_canceled | integer | |
status_counts.canceled | integer | |
status_counts.partially_returned | integer | |
status_counts.returned | integer | |
status_counts.exchanged | integer | |
sellers | object[] | |
sellers[].id | integer | ID |
sellers[].full_name | string | ФИО |
sellers[].count | integer | Количество |
{
"total_bonus": 0,
"total_sales": 1100,
"status_counts": {
"all": 2,
"completed": 1,
"partially_canceled": 0,
"canceled": 1,
"partially_returned": 0,
"returned": 0,
"exchanged": 0
},
"sellers": [
{
"id": 2,
"full_name": "director_1@local.host",
"count": 1
}
]
}Детали продажи корзины
/company/trade/seller-cart/{model}/sale-detailБоковая панель продажи: подобранные строки с заработанным по каждой бонусом; строки, убранные кассиром или возвращённые покупателем, отмечены.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
id | integer | ID |
code | string | Код |
status | string | Статус |
sale_status | string | |
sale_id | null | Продажа |
currency | string | Валюта |
created_at | string | Создано |
client | null | |
seller | object | |
seller.id | integer | ID |
seller.full_name | null | ФИО |
cashier | null | |
discount_mode | null | Тип скидки |
discount_value | null | Размер скидки |
discount_amount | integer | |
amount | integer | Сумма |
total_amount | integer | |
bonus | integer | |
fsm_bonus | integer | |
is_bonus_accrued | boolean | |
products | object[] | Продукты |
products[].name | string | Название |
products[].quantity | integer | Количество |
products[].price | integer | Цена |
products[].discount | integer | Скидка |
products[].discount_amount | integer | |
products[].total | integer | Всего записей |
products[].is_canceled | boolean | |
products[].returned_quantity | integer | Возвращённое кол-во |
products[].is_returned | boolean | |
products[].is_exchanged | boolean | |
products[].exchanges | array | |
products[].bonus_percent | null | |
products[].bonus | integer | |
products[].fsm_bonus | integer |
{
"id": 32,
"code": "0001",
"status": "canceled",
"sale_status": "canceled",
"sale_id": null,
"currency": "uzs",
"created_at": "2026-09-30T07:55:47.000000Z",
"client": null,
"seller": {
"id": 2,
"full_name": null
},
"cashier": null,
"discount_mode": null,
"discount_value": null,
"discount_amount": 0,
"amount": 1100,
"total_amount": 1100,
"bonus": 0,
"fsm_bonus": 0,
"is_bonus_accrued": false,
"products": [
{
"name": "Product 1",
"quantity": 1,
"price": 1100,
"discount": 0,
"discount_amount": 0,
"total": 1100,
"is_canceled": true,
"returned_quantity": 0,
"is_returned": false,
"is_exchanged": false,
"exchanges": [],
"bonus_percent": null,
"bonus": 0,
"fsm_bonus": 0
}
]
}Очередь корзин на кассе
/company/trade/seller-cart/queueВсе отправленные на кассу (sent) корзины компании, ожидающие продажи.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры запроса
| Параметр | Описание |
|---|---|
with[] | Подгрузить связи |
GET /company/trade/seller-cart/queue?with[0]=creator.profile&with[1]=clientОтвет · 200
Постраничный ответ: записи в data[], пагинация в links и meta.
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
data | object[] | Данные |
data[].id | integer | ID |
data[].creator_id | integer | Создатель |
data[].company_id | integer | Компания |
data[].stock_id | integer | Склад |
data[].client_id | null | Клиент |
data[].sale_id | null | Продажа |
data[].code | string | Код |
data[].currency | string | Валюта |
data[].discount_mode | null | Тип скидки |
data[].discount_value | null | Размер скидки |
data[].is_reserved | boolean | |
data[].amount | integer | Сумма |
data[].discount_amount | integer | |
data[].total_amount | integer | |
data[].products_count | integer | |
data[].status | string | Статус |
data[].sale_status | null | |
data[].sent_at | string | |
data[].created_at | string | Создано |
data[].updated_at | string | Обновлено |
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 | string | Имя |
data[].creator.profile.last_name | string | Фамилия |
data[].creator.profile.position | string | Должность |
data[].creator.profile.birth_date | null | Дата рождения |
data[].creator.profile.gender | null | Пол |
data[].creator.profile.full_name | string | ФИО |
data[].client | null |
{
"data": [
{
"id": 25,
"creator_id": 4,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0002",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"products_count": 1,
"status": "sent",
"sale_status": null,
"sent_at": "2026-09-30 12:55:46",
"created_at": "2026-09-30 12:55:46",
"updated_at": "2026-09-30 12:55:46",
"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-09-30 12:47:59",
"updated_at": "2026-09-30 12:49:04",
"is_deleted": false,
"profile": {
"first_name": "First name 1",
"last_name": "Last name 1",
"position": "Position 1",
"birth_date": null,
"gender": null,
"full_name": "Last name 1 First name 1"
}
},
"client": null
}
],
"links": {
"first": "https://api.wasyt.uz/company/trade/seller-cart/queue?page=1",
"last": "https://api.wasyt.uz/company/trade/seller-cart/queue?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/trade/seller-cart/queue",
"per_page": 20,
"to": 1,
"total": 1
}
}Открыть корзину на кассе
/company/trade/seller-cart/{model}/chequeОтправленная корзина в виде чека для кассы: количество ограничено текущим остатком, цены пересчитаны по каталогу, с клиентом. Только для корзин в статусе sent.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
id | integer | ID |
creator_id | integer | Создатель |
company_id | integer | Компания |
stock_id | integer | Склад |
client_id | null | Клиент |
sale_id | null | Продажа |
code | string | Код |
currency | string | Валюта |
discount_mode | null | Тип скидки |
discount_value | null | Размер скидки |
is_reserved | boolean | |
amount | integer | Сумма |
discount_amount | integer | |
total_amount | integer | |
products_count | integer | |
status | string | Статус |
sale_status | null | |
sent_at | string | |
created_at | string | Создано |
updated_at | string | Обновлено |
products | object[] | Продукты |
products[].id | integer | ID |
products[].is_service | boolean | |
products[].is_bundle | boolean | |
products[].bundle_id | null | Комплект |
products[].service_id | null | |
products[].name | string | Название |
products[].category | string | Категория |
products[].barcode | string | Штрих-код |
products[].quantity | integer | Количество |
products[].max_quantity | integer | |
products[].price | integer | Цена |
products[].currency | string | Валюта |
products[].img | object | |
products[].img.widen_100 | object | |
products[].img.widen_100.raw | string | |
products[].img.widen_100.webp | string | |
products[].img.widen_500 | object | |
products[].img.widen_500.raw | string | |
products[].img.widen_500.webp | string | |
products[].img.original | object | |
products[].img.original.raw | string | |
products[].img.original.webp | string | |
products[].discount | integer | Скидка |
products[].unit | string | |
products[].unit_accuracy | integer | |
products[].is_free_price | boolean | Продажа по свободной цене |
products[].min_price | integer | |
products[].min_price_currency | string | |
products[].images_list_thumbs | object[] | |
products[].images_list_thumbs[].widen_100 | object | |
products[].images_list_thumbs[].widen_100.raw | string | |
products[].images_list_thumbs[].widen_100.webp | string | |
products[].images_list_thumbs[].widen_500 | object | |
products[].images_list_thumbs[].widen_500.raw | string | |
products[].images_list_thumbs[].widen_500.webp | string | |
products[].images_list_thumbs[].original | object | |
products[].images_list_thumbs[].original.raw | string | |
products[].images_list_thumbs[].original.webp | string | |
products[].description | string | Описание |
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.full_name | string | ФИО |
{
"id": 26,
"creator_id": 4,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0001",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"products_count": 1,
"status": "sent",
"sale_status": null,
"sent_at": "2026-09-30 12:55:46",
"created_at": "2026-09-30 12:55:46",
"updated_at": "2026-09-30 12:55:46",
"products": [
{
"id": 1,
"is_service": false,
"is_bundle": false,
"bundle_id": null,
"service_id": null,
"name": "Product 1",
"category": "Category 1-1-1 ru",
"barcode": "0000000000001",
"quantity": 1,
"max_quantity": 1,
"price": 1100,
"currency": "uzs",
"img": {
"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"
}
},
"discount": 0,
"unit": "Unit 1 ru",
"unit_accuracy": 4,
"is_free_price": false,
"min_price": 0,
"min_price_currency": "uzs",
"images_list_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"
}
},
{
"widen_100": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"widen_500": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"original": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
}
}
],
"description": "Description 1"
}
],
"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-09-30 12:47:59",
"updated_at": "2026-09-30 12:49:04",
"is_deleted": false,
"profile": {
"first_name": "First name 1",
"last_name": "Last name 1",
"position": "Position 1",
"birth_date": null,
"gender": null,
"full_name": "Last name 1 First name 1"
}
}
}Отправить корзину на кассу
/company/trade/seller-cart/{model}/sendПереводит корзину из picking в sent: цены строк фиксируются по каталогу (свободная цена остаётся как есть), количество проверяется по остатку. Ошибка 400 для пустой корзины, при нехватке остатка или если корзина уже отправлена.
Из формы (
multipart/form-data) методPATCHотправляется какPOSTс параметром?_method=PATCH.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
id | integer | ID |
creator_id | integer | Создатель |
company_id | integer | Компания |
stock_id | integer | Склад |
client_id | null | Клиент |
sale_id | null | Продажа |
code | string | Код |
currency | string | Валюта |
discount_mode | null | Тип скидки |
discount_value | null | Размер скидки |
is_reserved | boolean | |
amount | integer | Сумма |
discount_amount | integer | |
total_amount | integer | |
products_count | integer | |
status | string | Статус |
sale_status | null | |
sent_at | string | |
created_at | string | Создано |
updated_at | string | Обновлено |
products | object[] | Продукты |
products[].id | integer | ID |
products[].is_service | boolean | |
products[].is_bundle | boolean | |
products[].bundle_id | null | Комплект |
products[].service_id | null | |
products[].name | string | Название |
products[].category | string | Категория |
products[].barcode | string | Штрих-код |
products[].quantity | integer | Количество |
products[].max_quantity | integer | |
products[].price | integer | Цена |
products[].currency | string | Валюта |
products[].img | object | |
products[].img.widen_100 | object | |
products[].img.widen_100.raw | string | |
products[].img.widen_100.webp | string | |
products[].img.widen_500 | object | |
products[].img.widen_500.raw | string | |
products[].img.widen_500.webp | string | |
products[].img.original | object | |
products[].img.original.raw | string | |
products[].img.original.webp | string | |
products[].discount | integer | Скидка |
products[].unit | string | |
products[].unit_accuracy | integer | |
products[].is_free_price | boolean | Продажа по свободной цене |
products[].min_price | integer | |
products[].min_price_currency | string | |
products[].images_list_thumbs | object[] | |
products[].images_list_thumbs[].widen_100 | object | |
products[].images_list_thumbs[].widen_100.raw | string | |
products[].images_list_thumbs[].widen_100.webp | string | |
products[].images_list_thumbs[].widen_500 | object | |
products[].images_list_thumbs[].widen_500.raw | string | |
products[].images_list_thumbs[].widen_500.webp | string | |
products[].images_list_thumbs[].original | object | |
products[].images_list_thumbs[].original.raw | string | |
products[].images_list_thumbs[].original.webp | string | |
products[].description | string | Описание |
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 | null | Имя |
creator.profile.last_name | null | Фамилия |
creator.profile.position | null | Должность |
creator.profile.birth_date | null | Дата рождения |
creator.profile.gender | null | Пол |
creator.profile.full_name | string | ФИО |
{
"id": 34,
"creator_id": 2,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0001",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"products_count": 1,
"status": "sent",
"sale_status": null,
"sent_at": "2026-09-30 12:55:48",
"created_at": "2026-09-30 12:55:48",
"updated_at": "2026-09-30 12:55:48",
"products": [
{
"id": 1,
"is_service": false,
"is_bundle": false,
"bundle_id": null,
"service_id": null,
"name": "Product 1",
"category": "Category 1-1-1 ru",
"barcode": "0000000000001",
"quantity": 1,
"max_quantity": 1,
"price": 1100,
"currency": "uzs",
"img": {
"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"
}
},
"discount": 0,
"unit": "Unit 1 ru",
"unit_accuracy": 4,
"is_free_price": false,
"min_price": 0,
"min_price_currency": "uzs",
"images_list_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"
}
},
{
"widen_100": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"widen_500": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"original": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
}
}
],
"description": "Description 1"
}
],
"client": null,
"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-09-30 12:47:59",
"updated_at": "2026-09-30 12:47:59",
"is_deleted": false,
"profile": {
"first_name": null,
"last_name": null,
"position": null,
"birth_date": null,
"gender": null,
"full_name": " "
}
}
}Отменить корзину
/company/trade/seller-cart/{model}/cancelПереводит корзину в canceled. Свою корзину может отменить продавец, отправленную — и касса; проданную или уже отменённую отменить нельзя.
Из формы (
multipart/form-data) методPATCHотправляется какPOSTс параметром?_method=PATCH.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
message | string | Сообщение |
{
"message": "Success"
}Мои корзины
/company/trade/seller-cartКорзины продавца с пагинацией и фильтрами; директор видит корзины всех продавцов.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры запроса
| Параметр | Описание |
|---|---|
filter[id] | ID — точное значение |
filter[creator_id] | Создатель — точное значение |
filter[company_id] | Компания — точное значение |
filter[stock_id] | Склад — точное значение |
filter[client_id] | Клиент — точное значение |
filter[sale_id] | Продажа — точное значение |
filter[code] | Код — поиск по части строки |
filter[currency] | Валюта — точное значение |
filter[status] | Статус — одно значение или список filter[status][] |
filter[sale_status] | точное значение |
filter[is_reserved] | точное значение |
filter[sent_at] | период: [0] — с, [1] — по (Y-m-d) |
filter[created_at] | Создано — период: [0] — с, [1] — по (Y-m-d) |
sort[] | Сортировка, - — по убыванию: id, -id, code, -code, sent_at, -sent_at, total_amount, -total_amount, created_at, -created_at |
with[] | Подгрузить связи: creator.profile, company, stock, client, sale, products.product.category, products.product.unit, products.service.category, products.bundle.category, products.bundle.items.product.unit |
page | Номер страницы, с 1 |
page-size | Записей на странице, не больше 20 |
GET /company/trade/seller-cart?with[0]=products.product.unit&with[1]=clientОтвет · 200
Постраничный ответ: записи в data[], пагинация в links и meta.
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
data | object[] | Данные |
data[].id | integer | ID |
data[].creator_id | integer | Создатель |
data[].company_id | integer | Компания |
data[].stock_id | integer | Склад |
data[].client_id | null | Клиент |
data[].sale_id | null | Продажа |
data[].code | null | Код |
data[].currency | string | Валюта |
data[].discount_mode | null | Тип скидки |
data[].discount_value | null | Размер скидки |
data[].is_reserved | boolean | |
data[].amount | integer | Сумма |
data[].discount_amount | integer | |
data[].total_amount | integer | |
data[].status | string | Статус |
data[].sent_at | null | |
data[].created_at | string | Создано |
data[].updated_at | string | Обновлено |
data[].products | object[] | Продукты |
data[].products[].id | integer | ID |
data[].products[].is_service | boolean | |
data[].products[].is_bundle | boolean | |
data[].products[].bundle_id | null | Комплект |
data[].products[].service_id | null | |
data[].products[].name | string | Название |
data[].products[].category | string | Категория |
data[].products[].barcode | string | Штрих-код |
data[].products[].quantity | integer | Количество |
data[].products[].max_quantity | integer | |
data[].products[].price | integer | Цена |
data[].products[].currency | string | Валюта |
data[].products[].img | object | |
data[].products[].img.widen_100 | object | |
data[].products[].img.widen_100.raw | string | |
data[].products[].img.widen_100.webp | string | |
data[].products[].img.widen_500 | object | |
data[].products[].img.widen_500.raw | string | |
data[].products[].img.widen_500.webp | string | |
data[].products[].img.original | object | |
data[].products[].img.original.raw | string | |
data[].products[].img.original.webp | string | |
data[].products[].discount | integer | Скидка |
data[].products[].unit | string | |
data[].products[].unit_accuracy | integer | |
data[].products[].is_free_price | boolean | Продажа по свободной цене |
data[].products[].min_price | integer | |
data[].products[].min_price_currency | string | |
data[].products[].images_list_thumbs | object[] | |
data[].products[].images_list_thumbs[].widen_100 | object | |
data[].products[].images_list_thumbs[].widen_100.raw | string | |
data[].products[].images_list_thumbs[].widen_100.webp | string | |
data[].products[].images_list_thumbs[].widen_500 | object | |
data[].products[].images_list_thumbs[].widen_500.raw | string | |
data[].products[].images_list_thumbs[].widen_500.webp | string | |
data[].products[].images_list_thumbs[].original | object | |
data[].products[].images_list_thumbs[].original.raw | string | |
data[].products[].images_list_thumbs[].original.webp | string | |
data[].client | null |
{
"data": [
{
"id": 12,
"creator_id": 2,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": null,
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"status": "picking",
"sent_at": null,
"created_at": "2026-09-21 10:29:42",
"updated_at": "2026-09-21 10:29:43",
"products": [
{
"id": 1,
"is_service": false,
"is_bundle": false,
"bundle_id": null,
"service_id": null,
"name": "Product 1",
"category": "Category 1-1-1 ru",
"barcode": "0000000000001",
"quantity": 1,
"max_quantity": 0,
"price": 1100,
"currency": "uzs",
"img": {
"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"
}
},
"discount": 0,
"unit": "Unit 1 ru",
"unit_accuracy": 4,
"is_free_price": false,
"min_price": 0,
"min_price_currency": "uzs",
"images_list_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"
}
},
{
"widen_100": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"widen_500": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"original": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
}
}
]
}
],
"client": null
}
],
"links": {
"first": "https://api.wasyt.uz/company/trade/seller-cart?page=1",
"last": "https://api.wasyt.uz/company/trade/seller-cart?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/trade/seller-cart",
"per_page": 20,
"to": 1,
"total": 1
}
}Детали корзины
/company/trade/seller-cart/{model}Одна корзина: номер очереди, статус, клиент, скидка и суммы.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Параметры запроса
| Параметр | Описание |
|---|---|
with[] | Подгрузить связи |
GET /company/trade/seller-cart/23?with[0]=products.product.unitОтвет · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
id | integer | ID |
creator_id | integer | Создатель |
company_id | integer | Компания |
stock_id | integer | Склад |
client_id | null | Клиент |
sale_id | null | Продажа |
code | string | Код |
currency | string | Валюта |
discount_mode | null | Тип скидки |
discount_value | null | Размер скидки |
is_reserved | boolean | |
amount | integer | Сумма |
discount_amount | integer | |
total_amount | integer | |
products_count | integer | |
status | string | Статус |
sale_status | null | |
sent_at | null | |
created_at | string | Создано |
updated_at | string | Обновлено |
products | object[] | Продукты |
products[].id | integer | ID |
products[].is_service | boolean | |
products[].is_bundle | boolean | |
products[].bundle_id | null | Комплект |
products[].service_id | null | |
products[].name | string | Название |
products[].category | string | Категория |
products[].barcode | string | Штрих-код |
products[].quantity | integer | Количество |
products[].max_quantity | integer | |
products[].price | integer | Цена |
products[].currency | string | Валюта |
products[].img | object | |
products[].img.widen_100 | object | |
products[].img.widen_100.raw | string | |
products[].img.widen_100.webp | string | |
products[].img.widen_500 | object | |
products[].img.widen_500.raw | string | |
products[].img.widen_500.webp | string | |
products[].img.original | object | |
products[].img.original.raw | string | |
products[].img.original.webp | string | |
products[].discount | integer | Скидка |
products[].unit | string | |
products[].unit_accuracy | integer | |
products[].is_free_price | boolean | Продажа по свободной цене |
products[].min_price | integer | |
products[].min_price_currency | string | |
products[].images_list_thumbs | object[] | |
products[].images_list_thumbs[].widen_100 | object | |
products[].images_list_thumbs[].widen_100.raw | string | |
products[].images_list_thumbs[].widen_100.webp | string | |
products[].images_list_thumbs[].widen_500 | object | |
products[].images_list_thumbs[].widen_500.raw | string | |
products[].images_list_thumbs[].widen_500.webp | string | |
products[].images_list_thumbs[].original | object | |
products[].images_list_thumbs[].original.raw | string | |
products[].images_list_thumbs[].original.webp | string | |
products[].description | string | Описание |
{
"id": 23,
"creator_id": 2,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0001",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"products_count": 1,
"status": "picking",
"sale_status": null,
"sent_at": null,
"created_at": "2026-09-30 12:55:45",
"updated_at": "2026-09-30 12:55:45",
"products": [
{
"id": 1,
"is_service": false,
"is_bundle": false,
"bundle_id": null,
"service_id": null,
"name": "Product 1",
"category": "Category 1-1-1 ru",
"barcode": "0000000000001",
"quantity": 1,
"max_quantity": 0,
"price": 1100,
"currency": "uzs",
"img": {
"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"
}
},
"discount": 0,
"unit": "Unit 1 ru",
"unit_accuracy": 4,
"is_free_price": false,
"min_price": 0,
"min_price_currency": "uzs",
"images_list_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"
}
},
{
"widen_100": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"widen_500": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"original": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
}
}
],
"description": "Description 1"
}
]
}Создать корзину
/company/trade/seller-cartСоздаёт корзину в статусе picking с номером очереди дня (нумерация своя у каждой компании и начинается заново каждый день). Строки — товары, услуги и комплекты со скидкой не больше цены; общая скидка discount_mode (percent/integer) + discount_value.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
company_id | integer | Да | Компания. ID существующей записи, доступной пользователю |
stock_id | integer | Да | Склад. ID существующей записи, доступной пользователю |
client_id | integer | Нет | Клиент. ID существующей записи, доступной пользователю |
currency | string | Да | Валюта. Допустимые значения: uzs |
discount_mode | string | Если передано discount_value | Тип скидки. Допустимые значения: percent, integer |
discount_value | number | Нет | Размер скидки. До 2 знаков после запятой. Не меньше 0 |
is_reserved | boolean | Нет | Забронировать товары со склада до продажи (остаток становится недоступным для перемещений) |
products | object[] | Нет | Продукты. Макс. 100 элементов |
products[].id | integer | Да | ID. Без повторов |
products[].quantity | number | Да | Количество. До 8 знаков после запятой. Не меньше 0.00000001 |
products[].amount | number | Да | Сумма. До 2 знаков после запятой. Не меньше 0.01. Не больше 999999999999.99 |
products[].discount | number | Нет | Скидка. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99. ≤ products[].amount |
services | object[] | Нет | Макс. 100 элементов |
services[].id | integer | Да | ID. Без повторов |
services[].amount | number | Да | Сумма. До 2 знаков после запятой. Не меньше 0.01. Не больше 999999999999.99 |
services[].discount | number | Нет | Скидка. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99. ≤ services[].amount |
bundles | object[] | Нет | Комплекты. Макс. 100 элементов |
bundles[].id | integer | Да | ID. Без повторов |
bundles[].quantity | integer | Нет | Количество. Не меньше 1. Не больше 1000 |
bundles[].amount | number | Да | Сумма. До 2 знаков после запятой. Не меньше 0.01. Не больше 999999999999.99 |
bundles[].discount | number | Нет | Скидка. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99. ≤ bundles[].amount |
{
"company_id": 1,
"stock_id": 1,
"currency": "uzs",
"products": [
{
"id": 1,
"quantity": 2,
"amount": 1100
}
],
"services": [
{
"id": 1,
"amount": 50000
}
],
"client_id": 1,
"discount_mode": "percent",
"discount_value": 10,
"is_reserved": 1
}curl -X POST "https://api.wasyt.uz/company/trade/seller-cart" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"company_id":1,"stock_id":1,"currency":"uzs","products":[{"id":1,"quantity":2,"amount":1100}],"services":[{"id":1,"amount":50000}],"client_id":1,"discount_mode":"percent","discount_value":10,"is_reserved":1}'Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
company_id | integer | Компания |
stock_id | integer | Склад |
client_id | integer | Клиент |
currency | string | Валюта |
discount_mode | string | Тип скидки |
discount_value | integer | Размер скидки |
is_reserved | boolean | |
code | string | Код |
updated_at | string | Обновлено |
created_at | string | Создано |
creator_id | integer | Создатель |
status | string | Статус |
id | integer | ID |
products_count | integer | |
amount | integer | Сумма |
discount_amount | integer | |
total_amount | integer |
{
"company_id": 1,
"stock_id": 1,
"client_id": 1,
"currency": "uzs",
"discount_mode": "percent",
"discount_value": 10,
"is_reserved": true,
"code": "0001",
"updated_at": "2026-09-30 12:55:42",
"created_at": "2026-09-30 12:55:42",
"creator_id": 2,
"status": "picking",
"id": 10,
"products_count": 2,
"amount": 52200,
"discount_amount": 5220,
"total_amount": 46980
}Пример ошибки · 422
{
"message": "Добавьте хотя бы один товар или услугу",
"errors": {
"products": [
"Добавьте хотя бы один товар или услугу"
]
}
}Изменить корзину
/company/trade/seller-cart/{model}Перезаписывает состав и параметры корзины. Разрешено только своей корзине в статусе picking; после отправки на кассу — ошибка 400.
Из формы (
multipart/form-data) методPUTотправляется какPOSTс параметром?_method=PUT.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
company_id | integer | Да | Компания. ID существующей записи, доступной пользователю |
stock_id | integer | Да | Склад. ID существующей записи, доступной пользователю |
client_id | integer | Нет | Клиент. ID существующей записи, доступной пользователю |
currency | string | Да | Валюта. Допустимые значения: uzs |
discount_mode | string | Если передано discount_value | Тип скидки. Допустимые значения: percent, integer |
discount_value | number | Нет | Размер скидки. До 2 знаков после запятой. Не меньше 0 |
is_reserved | boolean | Нет | Забронировать товары со склада до продажи (остаток становится недоступным для перемещений) |
products | object[] | Нет | Продукты. Макс. 100 элементов |
products[].id | integer | Да | ID. Без повторов |
products[].quantity | number | Да | Количество. До 8 знаков после запятой. Не меньше 0.00000001 |
products[].amount | number | Да | Сумма. До 2 знаков после запятой. Не меньше 0.01. Не больше 999999999999.99 |
products[].discount | number | Нет | Скидка. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99. ≤ products[].amount |
services | object[] | Нет | Макс. 100 элементов |
services[].id | integer | Да | ID. Без повторов |
services[].amount | number | Да | Сумма. До 2 знаков после запятой. Не меньше 0.01. Не больше 999999999999.99 |
services[].discount | number | Нет | Скидка. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99. ≤ services[].amount |
bundles | object[] | Нет | Комплекты. Макс. 100 элементов |
bundles[].id | integer | Да | ID. Без повторов |
bundles[].quantity | integer | Нет | Количество. Не меньше 1. Не больше 1000 |
bundles[].amount | number | Да | Сумма. До 2 знаков после запятой. Не меньше 0.01. Не больше 999999999999.99 |
bundles[].discount | number | Нет | Скидка. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99. ≤ bundles[].amount |
{
"company_id": 1,
"stock_id": 1,
"currency": "uzs",
"products": [
{
"id": 2,
"quantity": 3,
"amount": 2000
}
],
"services": null
}curl -X PUT "https://api.wasyt.uz/company/trade/seller-cart/44" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"company_id":1,"stock_id":1,"currency":"uzs","products":[{"id":2,"quantity":3,"amount":2000}],"services":null}'Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
id | integer | ID |
creator_id | integer | Создатель |
company_id | integer | Компания |
stock_id | integer | Склад |
client_id | null | Клиент |
sale_id | null | Продажа |
code | string | Код |
currency | string | Валюта |
discount_mode | null | Тип скидки |
discount_value | null | Размер скидки |
is_reserved | boolean | |
amount | integer | Сумма |
discount_amount | integer | |
total_amount | integer | |
products_count | integer | |
status | string | Статус |
sale_status | null | |
sent_at | null | |
created_at | string | Создано |
updated_at | string | Обновлено |
{
"id": 44,
"creator_id": 2,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0001",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 6000,
"discount_amount": 0,
"total_amount": 6000,
"products_count": 1,
"status": "picking",
"sale_status": null,
"sent_at": null,
"created_at": "2026-09-30 12:55:50",
"updated_at": "2026-09-30 12:55:50"
}Удалить корзину
/company/trade/seller-cart/{model}Удаляет свою корзину вместе со строками. Только пока корзина в статусе picking.
Из формы (
multipart/form-data) методDELETEотправляется какPOSTс параметром?_method=DELETE.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
message | string | Сообщение |
{
"message": "Success"
}
