Ombor tovarlari
Ombor pozitsiyalari: aniq ombordagi katalog tovari qoldig‘i, narxlari va holati bilan. Shu yerda «Barcha tovarlar» bo‘limi (hali kirim qilinmagan tovarlar bilan butun katalog), PLU bo‘yicha qidiruv va pozitsiya harakati.
| Metod | Manzil | Vazifasi |
|---|---|---|
| GET | /company/stock/product/catalog/stats | «Barcha tovarlar» bo‘limi sarlavhasi |
| GET | /company/stock/product/catalog | «Barcha tovarlar» ro‘yxati |
| GET | /company/stock/product/plu/{plu} | PLU bo‘yicha pozitsiyalarni topish |
| GET | /company/stock/product/{model}/movement-history | Pozitsiya harakati |
| GET | /company/stock/product | Ombor pozitsiyalari ro‘yxati |
| GET | /company/stock/product/{model} | Ombor pozitsiyasi |
«Barcha tovarlar» bo‘limi sarlavhasi
Katalog ro‘yxati bilan bir xil filtrlangan tanlov uchun branches (pozitsiyalar soni bilan filial tablari; omborlarga biriktirilgan xodimda — faqat uning omborlari pozitsiyalari), cards (tovarlar soni, xarid valyutalari bo‘yicha qoldiq qiymati, likvid bo‘lmagan, nol qoldiq, «Erkin narx (barchasi)» belgisi) va counts — holat tablari hisoblagichlarini qaytaradi.
/company/stock/product/catalog/statsSarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
Authorization | Bearer {token} | POST /common/auth/login dan olingan token |
Accept | application/json | Javob JSON da |
Accept-Language | ru | Xabarlar va nomlar tili: ru, uz, oz |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
branches | object | |
branches.total | integer | Jami yozuvlar |
branches.items | object[] | Tarkib |
branches.items[].id | integer | ID |
branches.items[].name | string | Nomlanish |
branches.items[].count | integer | Soni |
cards | object | |
cards.products_count | integer | |
cards.stock_amount | object | |
cards.stock_amount.uzs | integer | |
cards.stock_amount.usd | integer | |
cards.total_quantity | integer | |
cards.sale_amount | object | |
cards.sale_amount.usd | integer | |
cards.sale_amount.uzs | integer | |
cards.illiquid_count | integer | |
cards.zero_stock_count | integer | |
cards.free_price_all | boolean | |
counts | object | |
counts.all | integer | Hammasini ko‘rsatish |
counts.favorite | integer | |
counts.active | integer | |
counts.inactive | integer | |
counts.in_stock | integer | |
counts.low_stock | integer | |
counts.zero_stock | integer | |
counts.illiquid | integer | |
counts.reserved | integer | |
counts.negative_stock | integer | |
counts.weight | integer |
{
"branches": {
"total": 2,
"items": [
{
"id": 1,
"name": "Company 1",
"count": 2
},
{
"id": 2,
"name": "Company 1-1",
"count": 0
}
]
},
"cards": {
"products_count": 3,
"stock_amount": {
"uzs": 1000,
"usd": 4260
},
"total_quantity": 3,
"sale_amount": {
"usd": 4800,
"uzs": 1100
},
"illiquid_count": 0,
"zero_stock_count": 1,
"free_price_all": false
},
"counts": {
"all": 3,
"favorite": 0,
"active": 2,
"inactive": 0,
"in_stock": 0,
"low_stock": 2,
"zero_stock": 1,
"illiquid": 0,
"reserved": 2,
"negative_stock": 0,
"weight": 0
}
}«Barcha tovarlar» ro‘yxati
Mavjud kompaniyalarning butun katalogi: ombor pozitsiyasi bilan tovar yoki kirim qilinmaguncha omborsiz bitta qator. O‘chirilgan (o‘chirib qo‘yilgan) tovar ro‘yxatda qoladi — filter[status]=inactive yorlig‘ida, hatto hech qachon kirim qilinmagan bo‘lsa ham. Omborlarga biriktirilgan xodim faqat shu omborlar pozitsiyalarini ko‘radi (omborsiz qatorlarsiz); omborsiz xodim butun katalogni ko‘radi. Sevimli tovarlar doim boshida; filter[status] filtri (favorite, active, in_stock, low_stock, zero_stock, illiquid, reserved va boshq.). «Modifikatsiyali tovar» umumiy kartochkasi (has_variants: true) variantlari yotgan har bir ombor uchun qator beradi (qoldiq va partiyalar — ularning yig‘indisi) yoki omborsiz bitta qator; variant qatorlarida variant_parent_id — kartochka id si. filter[is_variant]=0 variantlarni yashiradi, filter[variant_parent_id] bitta kartochka variantlarini ochadi, filter[has_variants]=0 kartochkalarni olib tashlaydi; with[]=variants_count — kartochkaning tirik variantlari soni; with[]=imeis — qator omborida hozir turgan IMEI raqamlari (sotilgan va hisobdan chiqarilganlar kirmaydi). format=excel yoki format=csv faylni qaytaradi.
/company/stock/product/catalogSarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
Authorization | Bearer {token} | POST /common/auth/login dan olingan token |
Accept | application/json | Javob JSON da |
Accept-Language | ru | Xabarlar va nomlar tili: ru, uz, oz |
So‘rov parametrlari
| Parametr | Tavsif |
|---|---|
filter[id] | ID — aniq qiymat |
filter[company_id] | Kompaniya — bitta qiymat yoki ro‘yxat filter[company_id][] |
filter[stock_id] | Ombor — aniq qiymat |
filter[product_id] | Mahsulot — aniq qiymat |
filter[quantity] | Miqdori — oraliq: [0] — dan, [1] — gacha |
filter[product.category_id] | Kategoriya — aniq qiymat (ichki elementlar bilan) |
filter[product.brand_id] | Brend — aniq qiymat |
filter[product.unit_id] | O'lchov birligi — aniq qiymat |
filter[product.name] | Nomlanish — aniq qiymat |
filter[product.barcode] | Shtrix kod — aniq qiymat |
filter[product.is_free_price] | Erkin narxda sotish — aniq qiymat |
filter[product.created_at] | Yaratilgan — davr: [0] — dan, [1] — gacha (Y-m-d) |
filter[common] | Umumiy — aniq qiymat (ichki elementlar bilan) |
sort[] | Saralash, - — kamayish bo‘yicha: id, -id, product_id, -product_id |
with[] | Bog‘liq ma’lumotlarni qo‘shish: company, stock, product, product.parent, product.category.ancestors, product.brand, product.unit, product.price, product.last_purchase_product, product_price, last_purchase_at, last_purchase_price, available_quantity, reserved_quantity, status |
page | Sahifa raqami, 1 dan |
page-size | Sahifadagi yozuvlar soni, ko‘pi bilan 20 |
GET /company/stock/product/catalog?with[0]=status&filter[product_id]=1676Javob · 200
Sahifalangan javob: yozuvlar data[] ichida, sahifalash links va meta da.
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
data | object[] | Ma'lumotlar |
data[].id | integer | ID |
data[].company_id | integer | Kompaniya |
data[].stock_id | integer | Ombor |
data[].product_id | integer | Mahsulot |
data[].quantity | integer | Miqdori |
data[].created_at | string | Yaratilgan |
data[].updated_at | string | Yangilangan |
data[].has_variants | boolean | Modifikatsiyali mahsulot |
data[].variant_parent_id | null | |
data[].status | string | Status |
data[].days_without_movement | integer | Harakatsiz |
data[].last_movement_at | null | Oxirgi harakat |
{
"data": [
{
"id": 83,
"company_id": 1,
"stock_id": 1,
"product_id": 1676,
"quantity": 3,
"created_at": "2026-11-25 16:48:47",
"updated_at": "2026-11-25 16:48:47",
"has_variants": false,
"variant_parent_id": null,
"status": "illiquid",
"days_without_movement": 0,
"last_movement_at": null
}
],
"links": {
"first": "https://api.wasyt.uz/company/stock/product/catalog?page=1",
"last": "https://api.wasyt.uz/company/stock/product/catalog?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/stock/product/catalog",
"per_page": 20,
"to": 1,
"total": 1
}
}PLU bo‘yicha pozitsiyalarni topish
Berilgan PLU li tovarning barcha omborlardagi yoki faqat filter[stock_id] dagi pozitsiyalari. PLU son sifatida solishtiriladi: 000225 PLU 225 li tovarni topadi. Hech narsa topilmasa — 404.
/company/stock/product/plu/{plu}Sarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
Authorization | Bearer {token} | POST /common/auth/login dan olingan token |
Accept | application/json | Javob JSON da |
Accept-Language | ru | Xabarlar va nomlar tili: ru, uz, oz |
Yo‘l parametrlari
| Parametr | Tavsif |
|---|---|
plu | Artikul (PLU) |
So‘rov parametrlari
| Parametr | Tavsif |
|---|---|
with[] | Bog‘liq ma’lumotlarni qo‘shish |
GET /company/stock/product/plu/0001?with[0]=product&with[1]=product.unit&with[2]=product_price&with[3]=stockJavob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
data | object[] | Ma'lumotlar |
data[].id | integer | ID |
data[].company_id | integer | Kompaniya |
data[].stock_id | integer | Ombor |
data[].product_id | integer | Mahsulot |
data[].quantity | integer | Miqdori |
data[].sources | object[] | |
data[].sources[].source_type | string | Manba |
data[].sources[].source_id | integer | Manba |
data[].sources[].source_product_id | integer | |
data[].sources[].quantity | integer | Miqdori |
data[].sources[].purchase_price | integer | Sotib olish narxi |
data[].sources[].purchase_currency | string | Sotib olayotganda valyuta |
data[].sources[].created_at | string | Yaratilgan |
data[].sources[].purchase_price_uzs | integer | |
data[].sources[].purchase_price_usd | integer | |
data[].sources[].purchase_price_eur | integer | |
data[].sources[].purchase_price_rub | integer | |
data[].created_at | string | Yaratilgan |
data[].updated_at | string | Yangilangan |
data[].product_price | object | |
data[].product_price.id | integer | ID |
data[].product_price.updater_id | integer | Yangilovchi |
data[].product_price.company_id | integer | Kompaniya |
data[].product_price.product_id | integer | Mahsulot |
data[].product_price.source_type | string | Manba |
data[].product_price.source_id | integer | Manba |
data[].product_price.price | integer | Narxi |
data[].product_price.currency | string | Valyuta |
data[].product_price.min_price | null | |
data[].product_price.min_price_percent | null | |
data[].product_price.wholesale_price | null | Ulgurji narx |
data[].product_price.created_at | string | Yaratilgan |
data[].product_price.updated_at | string | Yangilangan |
data[].product | object | |
data[].product.id | integer | ID |
data[].product.parent_id | null | Ota-ona |
data[].product.creator_id | integer | Yaratuvchi |
data[].product.company_id | integer | Kompaniya |
data[].product.category_id | integer | Kategoriya |
data[].product.brand_id | integer | Brend |
data[].product.unit_id | integer | O'lchov birligi |
data[].product.name | string | Nomlanish |
data[].product.full_text | string | To'liq matn |
data[].product.plu | string | Artikul (PLU) |
data[].product.custom_id | null | Mahsulot ID |
data[].product.description | string | Tavsif |
data[].product.is_free_price | boolean | Erkin narxda sotish |
data[].product.is_favorite | boolean | Sevimli |
data[].product.has_variants | boolean | Modifikatsiyali mahsulot |
data[].product.is_imei | boolean | IMEI bo'yicha hisob |
data[].product.variant_attributes | array | Xususiyatlar |
data[].product.variant_values | array | Variant qiymatlari |
data[].product.min_quantity | null | Minimal qoldiq |
data[].product.barcode | string | Shtrix kod |
data[].product.additional_barcodes | array | Qo‘shimcha shtrix kod |
data[].product.industrial_barcode | null | Sanoat shtrix kodi |
data[].product.additional_industrial_barcodes | array | |
data[].product.images_list | array | Tasvirlar |
data[].product.images_list_thumbs | object[] | |
data[].product.images_list_thumbs[].widen_100 | object | |
data[].product.images_list_thumbs[].widen_100.raw | string | |
data[].product.images_list_thumbs[].widen_100.webp | string | |
data[].product.images_list_thumbs[].widen_500 | object | |
data[].product.images_list_thumbs[].widen_500.raw | string | |
data[].product.images_list_thumbs[].widen_500.webp | string | |
data[].product.images_list_thumbs[].original | object | |
data[].product.images_list_thumbs[].original.raw | string | |
data[].product.images_list_thumbs[].original.webp | string | |
data[].product.created_at | string | Yaratilgan |
data[].product.updated_at | string | Yangilangan |
data[].product.is_deleted | boolean | O‘chirilgan |
data[].product.unit | object | O‘lchov birligi |
data[].product.unit.id | integer | ID |
data[].product.unit.company_id | integer | Kompaniya |
data[].product.unit.source_id | integer | Manba |
data[].product.unit.name | object | Nomlanish |
data[].product.unit.name.oz | string | |
data[].product.unit.name.ru | string | |
data[].product.unit.name.uz | string | |
data[].product.unit.accuracy | integer | Kasrdan keyingi raqamlar soni |
data[].product.unit.created_at | string | Yaratilgan |
data[].product.unit.updated_at | string | Yangilangan |
data[].product.unit.is_deleted | boolean | O‘chirilgan |
data[].stock | object | |
data[].stock.id | integer | ID |
data[].stock.creator_id | integer | Yaratuvchi |
data[].stock.company_id | integer | Kompaniya |
data[].stock.name | string | Nomlanish |
data[].stock.is_available | boolean | Faol |
data[].stock.created_at | string | Yaratilgan |
data[].stock.updated_at | string | Yangilangan |
data[].stock.is_deleted | boolean | O‘chirilgan |
{
"data": [
{
"id": 1,
"company_id": 1,
"stock_id": 1,
"product_id": 1,
"quantity": 1,
"sources": [
{
"source_type": "purchase",
"source_id": 1,
"source_product_id": 1,
"quantity": 1,
"purchase_price": 1000,
"purchase_currency": "uzs",
"created_at": "2026-11-25 16:42:00",
"purchase_price_uzs": 1000,
"purchase_price_usd": 1,
"purchase_price_eur": 1,
"purchase_price_rub": 1
}
],
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"product_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-25T16:42:00",
"updated_at": "2026-11-25T16:42:00"
},
"product": {
"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": [
{
"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"
}
}
],
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:48:57",
"is_deleted": false,
"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
}
},
"stock": {
"id": 1,
"creator_id": 2,
"company_id": 1,
"name": "Stock 1",
"is_available": true,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00",
"is_deleted": false
}
}
]
}Pozitsiya harakati
Ombor pozitsiyasi harakati tarixi: product (joriy qoldiq), summary (butun davr uchun kirim, chiqim, qoldiq va amallar soni) hamda har bir amaldan keyingi qoldiq bilan yangidan eskiga sahifalangan data jurnali (sotuvlar, qaytarishlar va almashtirishlar, kirimlar, hisobdan chiqarishlar, ko‘chirishlar).
/company/stock/product/{model}/movement-historySarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
Authorization | Bearer {token} | POST /common/auth/login dan olingan token |
Accept | application/json | Javob JSON da |
Accept-Language | ru | Xabarlar va nomlar tili: ru, uz, oz |
Yo‘l parametrlari
| Parametr | Tavsif |
|---|---|
model | Yozuv ID si |
Javob · 200
Sahifalangan javob: yozuvlar data[] ichida, sahifalash links va meta da.
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
data | object[] | Ma'lumotlar |
data[].id | string | ID |
data[].date | string | Sana |
data[].type | string | Turi |
data[].document_type | string | |
data[].document_id | integer | |
data[].document_code | string | |
data[].quantity | integer | Miqdori |
data[].remainder | integer | Qoldiq |
data[].user | object | |
data[].user.id | integer | ID |
data[].user.full_name | string | FISH |
data[].old_price | null | |
data[].new_price | null | |
data[].currency | null | Valyuta |
{
"product": {
"id": 91,
"product_id": 1683,
"stock_id": 1,
"company_id": 1,
"quantity": 50
},
"summary": {
"income": 65,
"outcome": 12,
"remainder": 50,
"operations_count": 6
},
"data": [
{
"id": "transfer-51-transfer_in-f4c92f675c24a85d000df182754c6b05",
"date": "2030-01-05 12:00:00",
"type": "transfer_in",
"document_type": "transfer",
"document_id": 51,
"document_code": "TI-07336122",
"quantity": 3,
"remainder": 50,
"user": {
"id": 2,
"full_name": "director_1@local.host"
},
"old_price": null,
"new_price": null,
"currency": null
},
{
"id": "transfer-50-transfer_out-79fbf3c142eb3c9f624a3dd3373358f1",
"date": "2030-01-04 11:00:00",
"type": "transfer_out",
"document_type": "transfer",
"document_id": 50,
"document_code": "TO-07336122",
"quantity": -4,
"remainder": 47,
"user": {
"id": 2,
"full_name": "director_1@local.host"
},
"old_price": null,
"new_price": null,
"currency": null
}
],
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 10,
"total": 6,
"from": 1,
"to": 6
}
}Ombor pozitsiyalari ro‘yxati
Mavjud kompaniyalar ombor pozitsiyalarining total bloki bilan sahifalangan ro‘yxati: umumiy miqdor, valyutalar kesimida xarid va sotuv narxidagi qiymat. filter[common] nom, shtrixkod va PLU bo‘yicha qidiradi; qo‘shimcha ustunlar with[] orqali (last_purchase_at, last_purchase_price, available_quantity, status va boshq.). format=excel yoki format=csv faylni qaytaradi.
/company/stock/productSarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
Authorization | Bearer {token} | POST /common/auth/login dan olingan token |
Accept | application/json | Javob JSON da |
Accept-Language | ru | Xabarlar va nomlar tili: ru, uz, oz |
So‘rov parametrlari
| Parametr | Tavsif |
|---|---|
filter[id] | ID — aniq qiymat |
filter[company_id] | Kompaniya — bitta qiymat yoki ro‘yxat filter[company_id][] |
filter[stock_id] | Ombor — aniq qiymat |
filter[product_id] | Mahsulot — aniq qiymat |
filter[quantity] | Miqdori — oraliq: [0] — dan, [1] — gacha |
filter[product.category_id] | Kategoriya — aniq qiymat (ichki elementlar bilan) |
filter[product.brand_id] | Brend — aniq qiymat |
filter[product.unit_id] | O'lchov birligi — aniq qiymat |
filter[product.name] | Nomlanish — aniq qiymat |
filter[product.barcode] | Shtrix kod — aniq qiymat |
filter[product.is_free_price] | Erkin narxda sotish — aniq qiymat |
filter[product.created_at] | Yaratilgan — davr: [0] — dan, [1] — gacha (Y-m-d) |
filter[common] | Umumiy — aniq qiymat (ichki elementlar bilan) |
sort[] | Saralash, - — kamayish bo‘yicha: id, -id |
with[] | Bog‘liq ma’lumotlarni qo‘shish: company, stock, product, product.parent, product.category.ancestors, product.brand, product.unit, product.price, product.last_purchase_product, product_price, last_purchase_at, last_purchase_price, available_quantity, reserved_quantity, status |
page | Sahifa raqami, 1 dan |
page-size | Sahifadagi yozuvlar soni, ko‘pi bilan 20 |
GET /company/stock/product?filter[stock_id]=1&filter[common]=0000000000011Javob · 200
Sahifalangan javob: yozuvlar data[] ichida, sahifalash links va meta da.
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
data | object[] | Ma'lumotlar |
data[].id | integer | ID |
data[].company_id | integer | Kompaniya |
data[].stock_id | integer | Ombor |
data[].product_id | integer | Mahsulot |
data[].quantity | integer | Miqdori |
data[].sources | object[] | |
data[].sources[].source_type | string | Manba |
data[].sources[].source_id | integer | Manba |
data[].sources[].source_product_id | integer | |
data[].sources[].quantity | number | Miqdori |
data[].sources[].purchase_price | integer | Sotib olish narxi |
data[].sources[].purchase_currency | string | Sotib olayotganda valyuta |
data[].sources[].created_at | string | Yaratilgan |
data[].sources[].purchase_price_uzs | integer | |
data[].sources[].purchase_price_usd | integer | |
data[].sources[].purchase_price_eur | integer | |
data[].sources[].purchase_price_rub | integer | |
data[].created_at | string | Yaratilgan |
data[].updated_at | string | Yangilangan |
{
"data": [
{
"id": 2,
"company_id": 1,
"stock_id": 1,
"product_id": 2,
"quantity": 2,
"sources": [
{
"source_type": "purchase",
"source_id": 1,
"source_product_id": 2,
"quantity": 0.7,
"purchase_price": 2000,
"purchase_currency": "usd",
"created_at": "2026-11-25 16:41:59",
"purchase_price_uzs": 2000000,
"purchase_price_usd": 2000,
"purchase_price_eur": 2000,
"purchase_price_rub": 2000
},
{
"source_type": "purchase",
"source_id": 2,
"source_product_id": 3,
"quantity": 1.3,
"purchase_price": 2200,
"purchase_currency": "usd",
"created_at": "2026-11-25 16:42:00",
"purchase_price_uzs": 2200000,
"purchase_price_usd": 2200,
"purchase_price_eur": 2200,
"purchase_price_rub": 2200
}
],
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00"
}
],
"links": {
"first": "https://api.wasyt.uz/company/stock/product?page=1",
"last": "https://api.wasyt.uz/company/stock/product?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/stock/product",
"per_page": 20,
"to": 1,
"total": 1
},
"total": {
"quantity": "2.00000000",
"purchase_amount": {
"usd": "4260.0"
},
"sale_amount": {
"usd": "4800.0000000000"
}
}
}Ombor pozitsiyasi
ID bo‘yicha bitta ombor pozitsiyasi so‘ralgan bog‘lanishlar va ustunlar bilan.
/company/stock/product/{model}Sarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
Authorization | Bearer {token} | POST /common/auth/login dan olingan token |
Accept | application/json | Javob JSON da |
Accept-Language | ru | Xabarlar va nomlar tili: ru, uz, oz |
Yo‘l parametrlari
| Parametr | Tavsif |
|---|---|
model | Yozuv ID si |
So‘rov parametrlari
| Parametr | Tavsif |
|---|---|
with[] | Bog‘liq ma’lumotlarni qo‘shish |
filter[] | Filtrlar |
GET /company/stock/product/catalog?with[0]=status&filter[product_id]=1676Javob · 200
Sahifalangan javob: yozuvlar data[] ichida, sahifalash links va meta da.
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
data | object[] | Ma'lumotlar |
data[].id | integer | ID |
data[].company_id | integer | Kompaniya |
data[].stock_id | integer | Ombor |
data[].product_id | integer | Mahsulot |
data[].quantity | integer | Miqdori |
data[].created_at | string | Yaratilgan |
data[].updated_at | string | Yangilangan |
data[].has_variants | boolean | Modifikatsiyali mahsulot |
data[].variant_parent_id | null | |
data[].status | string | Status |
data[].days_without_movement | integer | Harakatsiz |
data[].last_movement_at | null | Oxirgi harakat |
{
"data": [
{
"id": 83,
"company_id": 1,
"stock_id": 1,
"product_id": 1676,
"quantity": 3,
"created_at": "2026-11-25 16:48:47",
"updated_at": "2026-11-25 16:48:47",
"has_variants": false,
"variant_parent_id": null,
"status": "illiquid",
"days_without_movement": 0,
"last_movement_at": null
}
],
"links": {
"first": "https://api.wasyt.uz/company/stock/product/catalog?page=1",
"last": "https://api.wasyt.uz/company/stock/product/catalog?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/stock/product/catalog",
"per_page": 20,
"to": 1,
"total": 1
}
}
