Skip to content

Подборы продавцов ​

Подборы продавцов-консультантов, которые кредитная система продаёт в кредит, передавая seller_cart_id в trade-sale/create. Очереди кассы у неё нет: продаётся и подбор в статусе picking, и отправленный на кассу (sent).

МетодАдресНазначение
GET/external/credit/seller-cartСписок подборов
GET/external/credit/seller-cart/{model}/chequeОткрыть подбор как чек

Список подборов ​

GET/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)
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: 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
http
GET /external/credit/seller-cart?filter[stock_id]=1&with[0]=creator.profile&with[1]=client

Ответ · 200 ​

Постраничный ответ: записи в data[], пагинация в links и meta.

Поля ответа
ПолеТипОписание
dataobject[]Данные
data[].idintegerID
data[].creator_idintegerСоздатель
data[].company_idintegerКомпания
data[].stock_idintegerСклад
data[].client_idnullКлиент
data[].sale_idnullПродажа
data[].codestringКод
data[].currencystringВалюта
data[].discount_modenullТип скидки
data[].discount_valuenullРазмер скидки
data[].is_reservedboolean
data[].amountintegerСумма
data[].discount_amountinteger
data[].total_amountinteger
data[].products_countinteger
data[].statusstringСтатус
data[].sale_statusnull
data[].sent_atstring
data[].created_atstringСоздано
data[].updated_atstringОбновлено
data[].creatorobject
data[].creator.idintegerID
data[].creator.typestringТип
data[].creator.role_idintegerРоль
data[].creator.company_idintegerКомпания
data[].creator.partner_idnullПартнёр
data[].creator.usernamestringЛогин
data[].creator.pinflnullПИНФЛ
data[].creator.phonestringТелефон
data[].creator.sipuni_sip_numberstringVoIP - Sipuni (SIP-номер)
data[].creator.is_confirmedboolean
data[].creator.are_all_companies_availableboolean
data[].creator.last_login_atnull
data[].creator.created_atstringСоздано
data[].creator.updated_atstringОбновлено
data[].creator.is_deletedboolean
data[].creator.profileobject
data[].creator.profile.first_namestringИмя
data[].creator.profile.last_namestringФамилия
data[].creator.profile.positionstringДолжность
data[].creator.profile.birth_datenullДата рождения
data[].creator.profile.gendernullПол
data[].creator.profile.full_namestringФИО
data[].clientnull
json
{
    "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
    }
}

Открыть подбор как чек ​

GET/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)
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры пути ​

ПараметрОписание
modelID записи

Ответ · 200 ​

Поля ответа
ПолеТипОписание
idintegerID
creator_idintegerСоздатель
company_idintegerКомпания
stock_idintegerСклад
client_idnullКлиент
sale_idnullПродажа
codestringКод
currencystringВалюта
discount_modenullТип скидки
discount_valuenullРазмер скидки
is_reservedboolean
amountintegerСумма
discount_amountinteger
total_amountinteger
products_countinteger
statusstringСтатус
sale_statusnull
sent_atstring
created_atstringСоздано
updated_atstringОбновлено
productsobject[]Продукты
products[].idintegerID
products[].is_serviceboolean
products[].is_bundleboolean
products[].bundle_idnullКомплект
products[].service_idnull
products[].namestringНазвание
products[].categorystringКатегория
products[].barcodestringШтрих-код
products[].quantityintegerКоличество
products[].max_quantityinteger
products[].priceintegerЦена
products[].currencystringВалюта
products[].imgobject
products[].img.widen_100object
products[].img.widen_100.rawstring
products[].img.widen_100.webpstring
products[].img.widen_500object
products[].img.widen_500.rawstring
products[].img.widen_500.webpstring
products[].img.originalobject
products[].img.original.rawstring
products[].img.original.webpstring
products[].discountintegerСкидка
products[].unitstring
products[].unit_accuracyinteger
products[].is_free_pricebooleanПродажа по свободной цене
products[].min_priceinteger
products[].min_price_currencystring
products[].images_list_thumbsobject[]
products[].images_list_thumbs[].widen_100object
products[].images_list_thumbs[].widen_100.rawstring
products[].images_list_thumbs[].widen_100.webpstring
products[].images_list_thumbs[].widen_500object
products[].images_list_thumbs[].widen_500.rawstring
products[].images_list_thumbs[].widen_500.webpstring
products[].images_list_thumbs[].originalobject
products[].images_list_thumbs[].original.rawstring
products[].images_list_thumbs[].original.webpstring
products[].descriptionstringОписание
clientnull
creatorobject
creator.idintegerID
creator.typestringТип
creator.role_idintegerРоль
creator.company_idintegerКомпания
creator.partner_idnullПартнёр
creator.usernamestringЛогин
creator.pinflnullПИНФЛ
creator.phonestringТелефон
creator.sipuni_sip_numberstringVoIP - Sipuni (SIP-номер)
creator.is_confirmedboolean
creator.are_all_companies_availableboolean
creator.last_login_atnull
creator.created_atstringСоздано
creator.updated_atstringОбновлено
creator.is_deletedboolean
creator.profileobject
creator.profile.first_namestringИмя
creator.profile.last_namestringФамилия
creator.profile.positionstringДолжность
creator.profile.birth_datenullДата рождения
creator.profile.gendernullПол
creator.profile.full_namestringФИО
json
{
    "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"
        }
    }
}