Skip to content

Цены товаров ​

Установленные цены продажи товаров компании — раздел «Переоценка товаров»: список цен, сводка и минимальная цена продажи.

МетодАдресНазначение
GET/company/product/price/statsСводка переоценки
GET/company/product/price/import-templateШаблон импорта переоценки
POST/company/product/price/importИмпорт переоценки из Excel
PATCH/company/product/price/min-price-percentЗадать процент мин. цены
PATCH/company/product/price/{model}/min-priceЗадать мин. цену товара
GET/company/product/priceСписок цен
GET/company/product/price/{model}Просмотр цены

Сводка переоценки ​

Шапка раздела «Переоценка товаров»: avg_markup_percent — средняя наценка по последней переоценке каждого товара, potential_profit_uzs — сумма (цена продажи − себестоимость последнего прихода) по всем товарам с ценой в UZS по курсам компании, price_tag — первый ценник компании для печати.

GET/company/product/price/stats

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Ответ · 200 ​

Поля ответа
ПолеТипОписание
avg_markup_percentnull
potential_profit_uzsinteger
price_tagobject
price_tag.idintegerID
price_tag.creator_idintegerСоздатель
price_tag.company_idintegerКомпания
price_tag.namestringНазвание
price_tag.widthintegerШирина
price_tag.heightintegerВысота
price_tag.elementsobject[]Элементы
price_tag.elements[].xinteger
price_tag.elements[].yinteger
price_tag.elements[].textstringТекст
price_tag.elements[].typestringТип
price_tag.elements[].colorstringЦвет
price_tag.elements[].fontSizeinteger
price_tag.is_defaultboolean
price_tag.created_atstringСоздано
price_tag.updated_atstringОбновлено
price_tag.is_deletedbooleanУдалена
json
{
    "avg_markup_percent": null,
    "potential_profit_uzs": 2398100,
    "price_tag": {
        "id": 1,
        "creator_id": 2,
        "company_id": 1,
        "name": "Price tag 1",
        "width": 512,
        "height": 512,
        "elements": [
            {
                "x": 20,
                "y": 20,
                "text": "АКЦИЯ",
                "type": "text",
                "color": "#e11d48",
                "fontSize": 28
            },
            {
                "x": 380,
                "y": 20,
                "src": "https://api-minio.icangroup.uz/wasyt/uploads/logo.png",
                "type": "image",
                "width": 110,
                "height": 60
            }
        ],
        "is_default": false,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false
    }
}

Шаблон импорта переоценки ​

Файл .xlsx для «Обновить цены»: строка на каждый товар компании с ценой. Колонки A–E (ID, наименование, категория, себестоимость и текущая цена в UZS) заполнены и не меняются, F–I (новая цена, мин. цена, наценка %, наценка суммой) заполняет пользователь; скрытая колонка J — контрольная сумма A–E. Заголовки на языке запроса (Accept-Language), число товаров — в заголовке ответа X-Products-Count.

GET/company/product/price/import-template

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Ответ · 200 ​

Ответ — файл или текст, не JSON.

Импорт переоценки из Excel ​

Читает заполненный шаблон (только .xlsx, до 10 000 строк с новыми значениями и 50 000 строк всего) и ничего не сохраняет: возвращает products (товары с отношениями таблицы переоценки), values — по товару sale_price, min_price, markup_percent, markup_amount (пустое — не менять), loaded и not_found (строки с несуществующим ID). Товар ищется по ID, при пустом ID — по точному наименованию; строки без значений пропускаются. 400 — изменены колонки A–E или в файле нет новых значений; 422 — не XLSX, файл не читается, неверное число или заполнены сразу H и I.

POST/company/product/price/import

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Тело запроса ​

ПолеТипОбязательноОписание
filefileДаФайл. Макс. 10240 КБ
json
{}
bash
curl -X POST "https://api.wasyt.uz/company/product/price/import" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '[]'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
productsobject[]Продукты
products[].idintegerID
products[].parent_idnullРодитель
products[].creator_idintegerСоздатель
products[].company_idintegerКомпания
products[].category_idintegerКатегория
products[].brand_idintegerБренд
products[].unit_idintegerЕдиница измерения
products[].namestringНазвание
products[].full_textstringПолный текст
products[].plustringАртикул (PLU)
products[].custom_idnullID товара
products[].descriptionstringОписание
products[].is_free_pricebooleanПродажа по свободной цене
products[].is_favoritebooleanИзбранный
products[].has_variantsbooleanТовар с модификациями
products[].is_imeibooleanУчёт по IMEI
products[].variant_attributesarrayХарактеристики
products[].variant_valuesarrayЗначения варианта
products[].min_quantitynullМинимальный остаток
products[].barcodestringШтрих-код
products[].additional_barcodesarrayДополнительный штрих-код
products[].industrial_barcodenullПромышленный штрих-код
products[].additional_industrial_barcodesarray
products[].images_listarrayИзображения
products[].images_list_thumbsarray
products[].created_atstringСоздано
products[].updated_atstringОбновлено
products[].stock_quantityintegerКол-во на складе
products[].is_deletedbooleanУдалена
products[].companyobjectКомпания
products[].company.idintegerID
products[].company.parent_idnullРодитель
products[].company.partner_idintegerПартнёр
products[].company.district_idintegerРайон
products[].company.industry_idintegerСфера деятельности
products[].company.namestringНазвание
products[].company.company_namestringКомпания
products[].company.logoobjectЛоготип
products[].company.logo.originalobject
products[].company.logo.original.rawstring
products[].company.logo.original.webpstring
products[].company.logo.widen_25object
products[].company.logo.widen_25.rawstring
products[].company.logo.widen_25.webpstring
products[].company.logo.widen_100object
products[].company.logo.widen_100.rawstring
products[].company.logo.widen_100.webpstring
products[].company.logo.widen_500object
products[].company.logo.widen_500.rawstring
products[].company.logo.widen_500.webpstring
products[].company.innstringИНН
products[].company.mfostringМФО
products[].company.addressstringАдрес
products[].company.latitudenullШирота
products[].company.longitudenullДолгота
products[].company.commentstringКомментарий
products[].company.telegram_phonestringТелефон в Telegram
products[].company.director_full_namestringФИО директора
products[].company.bankstringБанк
products[].company.payment_accountstringРасчётный счёт
products[].company.agreement_numberstringНомер договора
products[].company.agreement_datenull
products[].company.atmos_terminal_idintegerID терминала в Atmos
products[].company.uniaccess_auto_payment_credit_overdue_daysinteger
products[].company.uniaccess_branch_idintegerBranch ID в Uniaccess
products[].company.field_of_activitystringНаправление
products[].company.vat_percentstringНДС (%)
products[].company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanИспользует новый метод MyUzcard для автосписания по ПИНФЛ
products[].company.bonus_entry_periodintegerПериод учёта бонусов (в месяцах)
products[].company.abc_segment_ainteger
products[].company.abc_segment_binteger
products[].company.abc_segment_cinteger
products[].company.is_pos_window_enabledboolean
products[].company.is_multi_currency_saleboolean
products[].company.cashbox_shift_settingsobject
products[].company.cashbox_shift_settings.is_enabledbooleanВключено
products[].company.pos_layout_settingsnull
products[].company.manual_discount_settingsnull
products[].company.is_manual_sale_priceboolean
products[].company.wholesale_settingsnull
products[].company.product_settingsnull
products[].company.has_bank_payment_typeboolean
products[].company.payment_type_namesnull
products[].company.is_ican_turned_onbooleanICAN включён
products[].company.created_atstringСоздано
products[].company.updated_atstringОбновлено
products[].company.is_deletedbooleanУдалена
products[].categoryobjectКатегория
products[].category.idintegerID
products[].category.company_idintegerКомпания
products[].category.lftinteger
products[].category.rgtinteger
products[].category.parent_idintegerРодитель
products[].category.nameobjectНазвание
products[].category.name.ozstring
products[].category.name.rustring
products[].category.name.uzstring
products[].category.created_atstringСоздано
products[].category.updated_atstringОбновлено
products[].category.is_deletedbooleanУдалена
products[].category.textstringТекст
products[].category.stateobjectСостояние
products[].category.state.disabledboolean
products[].category.state.hiddenboolean
products[].category.state.openedboolean
products[].priceobjectЦена
products[].price.idintegerID
products[].price.updater_idintegerОбновитель
products[].price.company_idintegerКомпания
products[].price.product_idintegerПродукт
products[].price.source_typestringИсточник
products[].price.source_idintegerИсточник
products[].price.priceintegerЦена
products[].price.currencystringВалюта
products[].price.min_pricenull
products[].price.min_price_percentnull
products[].price.wholesale_pricenullОптовая цена
products[].price.created_atstringСоздано
products[].price.updated_atstringОбновлено
json
{
    "products": [
        {
            "id": 1,
            "parent_id": null,
            "creator_id": 1,
            "company_id": 1,
            "category_id": 4,
            "brand_id": 1,
            "unit_id": 1,
            "name": "Product 1",
            "full_text": "Product 1",
            "plu": "0001",
            "custom_id": null,
            "description": "Description 1",
            "is_free_price": false,
            "is_favorite": false,
            "has_variants": false,
            "is_imei": false,
            "variant_attributes": [],
            "variant_values": [],
            "min_quantity": null,
            "barcode": "0000000000001",
            "additional_barcodes": [],
            "industrial_barcode": null,
            "additional_industrial_barcodes": [],
            "images_list": [
                "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
                "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
            ],
            "images_list_thumbs": [],
            "created_at": "2026-11-25 16:42:00",
            "updated_at": "2026-11-25 16:42:00",
            "stock_quantity": 1,
            "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
            },
            "category": {
                "id": 4,
                "company_id": 1,
                "lft": 4,
                "rgt": 5,
                "parent_id": 3,
                "name": {
                    "oz": "Category 1-1-1 oz",
                    "ru": "Category 1-1-1 ru",
                    "uz": "Category 1-1-1 uz"
                },
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:42:00",
                "is_deleted": false,
                "text": "Category 1-1-1 ru",
                "state": {
                    "disabled": false,
                    "hidden": false,
                    "opened": true
                }
            },
            "price": {
                "id": 1,
                "updater_id": 2,
                "company_id": 1,
                "product_id": 1,
                "source_type": "purchase",
                "source_id": 1,
                "price": 1100,
                "currency": "uzs",
                "min_price": null,
                "min_price_percent": null,
                "wholesale_price": null,
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:42:00",
                "effective_min_price": 0,
                "price_uzs": 1100,
                "effective_min_price_uzs": 0,
                "wholesale_price_uzs": null,
                "price_usd": 1.1,
                "effective_min_price_usd": 0,
                "wholesale_price_usd": null,
                "price_eur": 1.1,
                "effective_min_price_eur": 0,
                "wholesale_price_eur": null,
                "price_rub": 1.1,
                "effective_min_price_rub": 0,
                "wholesale_price_rub": null
            },
            "last_purchase_product": {
                "id": 1,
                "company_id": 1,
                "purchase_id": 1,
                "product_id": 1,
                "purchase_price": 1000,
                "sale_price": 1100,
                "wholesale_price": null,
                "quantity": 1,
                "actual_quantity": 1,
                "returned_quantity": 0,
                "is_product_created": false,
                "imeis": [],
                "imei_prices": [],
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:42:00",
                "purchase": {
                    "id": 1,
                    "creator_id": 2,
                    "company_id": 1,
                    "stock_id": 1,
                    "supplier_id": 1,
                    "inventory_id": null,
                    "name": "Purchase 1",
                    "datetime": "2026-11-25 16:42:00",
                    "currency": "uzs",
                    "status": "waiting_for_confirmation",
                    "return_status": "not_returned",
                    "purchase_price": 5000,
                    "sale_price": 5900,
                    "created_at": "2026-11-25 16:42:00",
                    "updated_at": "2026-11-25 16:42:00",
                    "sale_price_uzs": 5900
                },
                "currency": "uzs",
                "purchase_price_uzs": 1000,
                "sale_price_uzs": 1100,
                "purchase_price_usd": 1,
                "sale_price_usd": 1.1,
                "purchase_price_eur": 1,
                "sale_price_eur": 1.1,
                "purchase_price_rub": 1,
                "sale_price_rub": 1.1
            },
            "latest_recalculation": {
                "id": 1,
                "company_id": 1,
                "creator_id": 2,
                "product_id": 1,
                "batch_id": null,
                "previous_price": null,
                "sale_price": 1100,
                "sale_currency": "uzs",
                "markup_percent": null,
                "previous_markup_percent": null,
                "price_without_rounding": null,
                "min_price": null,
                "min_price_percent": null,
                "wholesale_price": null,
                "created_at": "2026-11-25 16:42:00"
            },
            "unit": {
                "id": 1,
                "company_id": 1,
                "source_id": 3,
                "name": {
                    "oz": "Unit 1 oz",
                    "ru": "Unit 1 ru",
                    "uz": "Unit 1 uz"
                },
                "accuracy": 4,
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:42:00",
                "is_deleted": false
            }
        },
        {
            "id": 2,
            "parent_id": 1,
            "creator_id": 1,
            "company_id": 1,
            "category_id": 4,
            "brand_id": 1,
            "unit_id": 1,
            "name": "Product 1-1",
            "full_text": "Product 1-1 full text",
            "plu": "0011",
            "custom_id": null,
            "description": "Description 1-1",
            "is_free_price": false,
            "is_favorite": false,
            "has_variants": false,
            "is_imei": false,
            "variant_attributes": [],
            "variant_values": [],
            "min_quantity": null,
            "barcode": "0000000000011",
            "additional_barcodes": [],
            "industrial_barcode": null,
            "additional_industrial_barcodes": [],
            "images_list": [
                "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
                "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
            ],
            "images_list_thumbs": [],
            "created_at": "2026-11-25 16:42:00",
            "updated_at": "2026-11-25 16:42:00",
            "stock_quantity": 2,
            "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
            },
            "category": {
                "id": 4,
                "company_id": 1,
                "lft": 4,
                "rgt": 5,
                "parent_id": 3,
                "name": {
                    "oz": "Category 1-1-1 oz",
                    "ru": "Category 1-1-1 ru",
                    "uz": "Category 1-1-1 uz"
                },
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:42:00",
                "is_deleted": false,
                "text": "Category 1-1-1 ru",
                "state": {
                    "disabled": false,
                    "hidden": false,
                    "opened": true
                }
            },
            "price": {
                "id": 2,
                "updater_id": 2,
                "company_id": 1,
                "product_id": 2,
                "source_type": "purchase",
                "source_id": 1,
                "price": 2400,
                "currency": "usd",
                "min_price": null,
                "min_price_percent": null,
                "wholesale_price": null,
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:42:00",
                "effective_min_price": 0,
                "price_uzs": 2400000,
                "effective_min_price_uzs": 0,
                "wholesale_price_uzs": null,
                "price_usd": 2400,
                "effective_min_price_usd": 0,
                "wholesale_price_usd": null,
                "price_eur": 2400,
                "effective_min_price_eur": 0,
                "wholesale_price_eur": null,
                "price_rub": 2400,
                "effective_min_price_rub": 0,
                "wholesale_price_rub": null
            },
            "last_purchase_product": {
                "id": 2,
                "company_id": 1,
                "purchase_id": 1,
                "product_id": 2,
                "purchase_price": 2000,
                "sale_price": 2400,
                "wholesale_price": null,
                "quantity": 2,
                "actual_quantity": 2,
                "returned_quantity": 0,
                "is_product_created": false,
                "imeis": [],
                "imei_prices": [],
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:42:00",
                "purchase": {
                    "id": 1,
                    "creator_id": 2,
                    "company_id": 1,
                    "stock_id": 1,
                    "supplier_id": 1,
                    "inventory_id": null,
                    "name": "Purchase 1",
                    "datetime": "2026-11-25 16:42:00",
                    "currency": "uzs",
                    "status": "waiting_for_confirmation",
                    "return_status": "not_returned",
                    "purchase_price": 5000,
                    "sale_price": 5900,
                    "created_at": "2026-11-25 16:42:00",
                    "updated_at": "2026-11-25 16:42:00",
                    "sale_price_uzs": 5900
                },
                "currency": "uzs",
                "purchase_price_uzs": 2000,
                "sale_price_uzs": 2400,
                "purchase_price_usd": 2,
                "sale_price_usd": 2.4,
                "purchase_price_eur": 2,
                "sale_price_eur": 2.4,
                "purchase_price_rub": 2,
                "sale_price_rub": 2.4
            },
            "latest_recalculation": {
                "id": 2,
                "company_id": 1,
                "creator_id": 2,
                "product_id": 2,
                "batch_id": null,
                "previous_price": null,
                "sale_price": 2400,
                "sale_currency": "uzs",
                "markup_percent": null,
                "previous_markup_percent": null,
                "price_without_rounding": null,
                "min_price": null,
                "min_price_percent": null,
                "wholesale_price": null,
                "created_at": "2026-11-25 16:42:00"
            },
            "unit": {
                "id": 1,
                "company_id": 1,
                "source_id": 3,
                "name": {
                    "oz": "Unit 1 oz",
                    "ru": "Unit 1 ru",
                    "uz": "Unit 1 uz"
                },
                "accuracy": 4,
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:42:00",
                "is_deleted": false
            }
        }
    ],
    "values": [
        {
            "product_id": 1,
            "sale_price": 150000,
            "min_price": 120000,
            "markup_percent": null,
            "markup_amount": null
        },
        {
            "product_id": 2,
            "sale_price": null,
            "min_price": null,
            "markup_percent": 25,
            "markup_amount": null
        }
    ],
    "loaded": 2,
    "not_found": 0
}

Пример ошибки · 422 ​

json
{
    "message": "Строка 3: заполните только одну из колонок «Наценка %» или «Наценка сумма»",
    "errors": {
        "file": [
            "Строка 3: заполните только одну из колонок «Наценка %» или «Наценка сумма»"
        ]
    }
}

Задать процент мин. цены ​

Устанавливает min_price_percent (мин. цена = себестоимость + процент) товарам из product_ids, а без них — всем ценам компании; явные суммы min_price при этом сбрасываются, процент 0 снимает минимум. Требует права «Мин. цена продажи» (иначе 403); возвращает count — число обновлённых цен.

PATCH/company/product/price/min-price-percent

Из формы (multipart/form-data) метод PATCH отправляется как POST с параметром ?_method=PATCH.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Тело запроса ​

ПолеТипОбязательноОписание
min_price_percentnumberДаПроцент над себестоимостью, от 0 до 10000
product_idsarrayНетID товаров; без поля — все товары компании
json
{
    "min_price_percent": 5,
    "product_ids": [
        1
    ]
}
bash
curl -X PATCH "https://api.wasyt.uz/company/product/price/min-price-percent" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"min_price_percent":5,"product_ids":[1]}'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
countintegerКоличество
json
{
    "count": 1
}

Задать мин. цену товара ​

Задаёт точную минимальную цену продажи строки цены в её валюте. Она не может быть ниже себестоимости товара (422); null возвращает товар к проценту, 0 снимает минимум. Требует права «Мин. цена продажи» (иначе 403); возвращает обновлённую цену.

PATCH/company/product/price/{model}/min-price

Из формы (multipart/form-data) метод PATCH отправляется как POST с параметром ?_method=PATCH.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

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

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

Тело запроса ​

ПолеТипОбязательноОписание
min_pricenumberНетМин. цена продажи в валюте цены; null — вернуть к проценту
json
{
    "min_price": 3000
}
bash
curl -X PATCH "https://api.wasyt.uz/company/product/price/1/min-price" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"min_price":3000}'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
idintegerID
updater_idintegerОбновитель
company_idintegerКомпания
product_idintegerПродукт
source_typestringИсточник
source_idintegerИсточник
priceintegerЦена
currencystringВалюта
min_priceinteger
min_price_percentnull
wholesale_pricenullОптовая цена
created_atstringСоздано
updated_atstringОбновлено
effective_min_priceinteger
price_uzsinteger
effective_min_price_uzsinteger
wholesale_price_uzsnull
price_usdnumber
effective_min_price_usdinteger
wholesale_price_usdnull
price_eurnumber
effective_min_price_eurinteger
wholesale_price_eurnull
price_rubnumber
effective_min_price_rubinteger
wholesale_price_rubnull
json
{
    "id": 1,
    "updater_id": 2,
    "company_id": 1,
    "product_id": 1,
    "source_type": "purchase",
    "source_id": 1,
    "price": 1100,
    "currency": "uzs",
    "min_price": 3000,
    "min_price_percent": null,
    "wholesale_price": null,
    "created_at": "2026-11-25 16:42:00",
    "updated_at": "2026-11-25 16:47:47",
    "effective_min_price": 3000,
    "price_uzs": 1100,
    "effective_min_price_uzs": 3000,
    "wholesale_price_uzs": null,
    "price_usd": 1.1,
    "effective_min_price_usd": 3,
    "wholesale_price_usd": null,
    "price_eur": 1.1,
    "effective_min_price_eur": 3,
    "wholesale_price_eur": null,
    "price_rub": 1.1,
    "effective_min_price_rub": 3,
    "wholesale_price_rub": null
}

Список цен ​

Цены продажи товаров текущей компании с товаром и его категорией. Фильтры: product_id, currency, product.name, product.barcode, product.category_id (включая подкатегории); сортировка по id и price.

GET/company/product/price

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры запроса ​

ПараметрОписание
filter[id]ID — точное значение
filter[updater_id]Обновитель — точное значение
filter[company_id]Компания — точное значение
filter[product_id]Продукт — точное значение
filter[currency]Валюта — точное значение
filter[created_at]Создано — период: [0] — с, [1] — по (Y-m-d)
filter[product.category_id]Категория — точное значение (с учётом вложенных)
filter[product.name]Название — точное значение
filter[product.barcode]Штрих-код — точное значение
sort[]Сортировка, - — по убыванию: id, -id, price, -price
with[]Подгрузить связи: updater.profile, company, product, product.category, product.category.ancestors
pageНомер страницы, с 1
page-sizeЗаписей на странице, не больше 20
http
GET /company/product/price?sort[0]=id&sort[1]=-id&sort[2]=price&sort[3]=-price

Ответ · 200 ​

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

Поля ответа
ПолеТипОписание
dataobject[]Данные
data[].idintegerID
data[].updater_idintegerОбновитель
data[].company_idintegerКомпания
data[].product_idintegerПродукт
data[].source_typestringИсточник
data[].source_idintegerИсточник
data[].priceintegerЦена
data[].currencystringВалюта
data[].min_pricenull
data[].min_price_percentnull
data[].wholesale_pricenullОптовая цена
data[].created_atstringСоздано
data[].updated_atstringОбновлено
data[].effective_min_priceinteger
data[].price_uzsinteger
data[].effective_min_price_uzsinteger
data[].wholesale_price_uzsnull
data[].price_usdnumber
data[].effective_min_price_usdinteger
data[].wholesale_price_usdnull
data[].price_eurnumber
data[].effective_min_price_eurinteger
data[].wholesale_price_eurnull
data[].price_rubnumber
data[].effective_min_price_rubinteger
data[].wholesale_price_rubnull
json
{
    "data": [
        {
            "id": 1,
            "updater_id": 2,
            "company_id": 1,
            "product_id": 1,
            "source_type": "purchase",
            "source_id": 1,
            "price": 1100,
            "currency": "uzs",
            "min_price": null,
            "min_price_percent": null,
            "wholesale_price": null,
            "created_at": "2026-11-25 16:42:00",
            "updated_at": "2026-11-25 16:42:00",
            "effective_min_price": 0,
            "price_uzs": 1100,
            "effective_min_price_uzs": 0,
            "wholesale_price_uzs": null,
            "price_usd": 1.1,
            "effective_min_price_usd": 0,
            "wholesale_price_usd": null,
            "price_eur": 1.1,
            "effective_min_price_eur": 0,
            "wholesale_price_eur": null,
            "price_rub": 1.1,
            "effective_min_price_rub": 0,
            "wholesale_price_rub": null
        },
        {
            "id": 2,
            "updater_id": 2,
            "company_id": 1,
            "product_id": 2,
            "source_type": "purchase",
            "source_id": 1,
            "price": 2400,
            "currency": "usd",
            "min_price": null,
            "min_price_percent": null,
            "wholesale_price": null,
            "created_at": "2026-11-25 16:42:00",
            "updated_at": "2026-11-25 16:42:00",
            "effective_min_price": 0,
            "price_uzs": 2400000,
            "effective_min_price_uzs": 0,
            "wholesale_price_uzs": null,
            "price_usd": 2400,
            "effective_min_price_usd": 0,
            "wholesale_price_usd": null,
            "price_eur": 2400,
            "effective_min_price_eur": 0,
            "wholesale_price_eur": null,
            "price_rub": 2400,
            "effective_min_price_rub": 0,
            "wholesale_price_rub": null
        }
    ],
    "links": {
        "first": "https://api.wasyt.uz/company/product/price?page=1",
        "last": "https://api.wasyt.uz/company/product/price?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [],
        "path": "https://api.wasyt.uz/company/product/price",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

Просмотр цены ​

Возвращает цену продажи товара текущей компании по ID.

GET/company/product/price/{model}

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

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

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

Ответ · 200 ​

Поля ответа
ПолеТипОписание
idintegerID
updater_idintegerОбновитель
company_idintegerКомпания
product_idintegerПродукт
source_typestringИсточник
source_idintegerИсточник
priceintegerЦена
currencystringВалюта
min_pricenull
min_price_percentnull
wholesale_pricenullОптовая цена
created_atstringСоздано
updated_atstringОбновлено
effective_min_priceinteger
price_uzsinteger
effective_min_price_uzsinteger
wholesale_price_uzsnull
price_usdnumber
effective_min_price_usdinteger
wholesale_price_usdnull
price_eurnumber
effective_min_price_eurinteger
wholesale_price_eurnull
price_rubnumber
effective_min_price_rubinteger
wholesale_price_rubnull
json
{
    "id": 1,
    "updater_id": 2,
    "company_id": 1,
    "product_id": 1,
    "source_type": "purchase",
    "source_id": 1,
    "price": 1100,
    "currency": "uzs",
    "min_price": null,
    "min_price_percent": null,
    "wholesale_price": null,
    "created_at": "2026-11-25 16:42:00",
    "updated_at": "2026-11-25 16:42:00",
    "effective_min_price": 0,
    "price_uzs": 1100,
    "effective_min_price_uzs": 0,
    "wholesale_price_uzs": null,
    "price_usd": 1.1,
    "effective_min_price_usd": 0,
    "wholesale_price_usd": null,
    "price_eur": 1.1,
    "effective_min_price_eur": 0,
    "wholesale_price_eur": null,
    "price_rub": 1.1,
    "effective_min_price_rub": 0,
    "wholesale_price_rub": null
}