Подборы продавцов
Подборы продавцов-консультантов, которые кредитная система продаёт в кредит, передавая seller_cart_id в trade-sale/create. Очереди кассы у неё нет: продаётся и подбор в статусе picking, и отправленный на кассу (sent).
| Метод | Адрес | Назначение |
|---|---|---|
| GET | /external/credit/seller-cart | Список подборов |
| GET | /external/credit/seller-cart/{model}/cheque | Открыть подбор как чек |
Список подборов
/external/credit/seller-cartВсе подборы компании из заголовка и её филиалов в любом статусе. Продаваемые — filter[status][]=picking&filter[status][]=sent вместе с filter[stock_id] склада продажи; id подбора передаётся в trade-sale/create как seller_cart_id.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
External-System-Secret-Key | {external_system_secret_key} | Секретный ключ внешней системы |
Company-Wasyt-Uuid | {company_wasyt_uuid} | Компания по её wasyt UUID (или Company-Ican-Uuid) |
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 /external/credit/seller-cart?filter[stock_id]=1&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": 51,
"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:56:29",
"created_at": "2026-09-30 12:56:29",
"updated_at": "2026-09-30 12:56:29",
"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
},
{
"id": 50,
"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": "picking",
"sale_status": null,
"sent_at": null,
"created_at": "2026-09-30 12:56:29",
"updated_at": "2026-09-30 12:56:29",
"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/external/credit/seller-cart?page=1",
"last": "https://api.wasyt.uz/external/credit/seller-cart?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/external/credit/seller-cart",
"per_page": 20,
"to": 2,
"total": 2
}
}Открыть подбор как чек
/external/credit/seller-cart/{model}/chequeПодбор {model} (его id, не номер очереди code) в виде чека: строки перецениваются по текущему каталогу и ограничиваются остатком склада (max_quantity), у товаров есть min_price. Строки переносятся в trade-sale/create: товары — в products, is_service — в services, is_bundle — в bundles.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
External-System-Secret-Key | {external_system_secret_key} | Секретный ключ внешней системы |
Company-Wasyt-Uuid | {company_wasyt_uuid} | Компания по её wasyt UUID (или Company-Ican-Uuid) |
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": 48,
"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:56:29",
"created_at": "2026-09-30 12:56:29",
"updated_at": "2026-09-30 12:56:29",
"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"
}
}
}
