Список подборов
Подборы компании из заголовка и её филиалов в статусах sent, completed, canceled — черновики picking не отдаются; company_uuid оставляет подборы одной компании. Продаваемые — filter[status]=sent вместе с filter[stock_id] склада продажи; id подбора передаётся в trade-sale/create как seller_cart_id.
POST
/external/credit/seller-cartЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
External-System-Secret-Key | {external_system_secret_key} | Секретный ключ внешней системы |
Company-Uuid | {company_uuid} | Компания по её UUID в ICAN или в Wasyt |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
company_uuid | string | Нет | UUID компании или филиала в ICAN или в Wasyt (как в trade-sale/create): только её подборы (неизвестный UUID — пустой список, пустой не учитывается) |
filter[company_uuid] | string | Нет | То же, что company_uuid, внутри filter |
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 |
json
{
"filter": {
"stock_id": 1
},
"with": [
"creator.profile",
"client"
]
}bash
curl -X POST "https://api.wasyt.uz/external/credit/seller-cart" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "External-System-Secret-Key: {external_system_secret_key}" \
-H "Company-Uuid: ican-company-1" \
-H "Content-Type: application/json" \
-d '{"filter":{"stock_id":1},"with":["creator.profile","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[].canceled_by | null | |
data[].canceled_at | null | Отменено |
data[].cancel_reason | null | Причина отмены |
data[].cancel_comment | null | Причина удаления |
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 |
json
{
"data": [
{
"id": 163,
"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-11-16 10:30:14",
"canceled_by": null,
"canceled_at": null,
"cancel_reason": null,
"cancel_comment": null,
"created_at": "2026-11-16 10:30:14",
"updated_at": "2026-11-16 10:30:14",
"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-16 10:11:02",
"updated_at": "2026-11-16 10:12:23",
"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": 162,
"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,
"canceled_by": null,
"canceled_at": null,
"cancel_reason": null,
"cancel_comment": null,
"created_at": "2026-11-16 10:30:14",
"updated_at": "2026-11-16 10:30:14",
"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-16 10:11:02",
"updated_at": "2026-11-16 10:12:23",
"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
}
}
