Sotuvchi-maslahatchi savatlari
Sotuvchi-maslahatchi tomonidan tovar tanlash: savat yig‘iladi (picking), kunlik navbat raqami bilan kassaga yuboriladi (sent) va sotuv (completed) yoki bekor qilish bilan yopiladi. Sotuvchi o‘z savatlarini, direktor esa barcha sotuvchilarning savatlarini ko‘radi.
| Metod | Manzil | Vazifasi |
|---|---|---|
| GET | /company/trade/seller-cart/stats | Savatlar statistikasi |
| GET | /company/trade/seller-cart/sales | Sotuvchi sotuvlari |
| GET | /company/trade/seller-cart/sales-stats | Sotuvchi sotuvlari yakunlari |
| GET | /company/trade/seller-cart/{model}/sale-detail | Savat sotuvi tafsilotlari |
| GET | /company/trade/seller-cart/queue | Kassadagi savatlar navbati |
| GET | /company/trade/seller-cart/{model}/cheque | Savatni kassada ochish |
| PATCH | /company/trade/seller-cart/{model}/send | Savatni kassaga yuborish |
| PATCH | /company/trade/seller-cart/{model}/cancel | Savatni bekor qilish |
| GET | /company/trade/seller-cart | Mening savatlarim |
| GET | /company/trade/seller-cart/{model} | Savat tafsilotlari |
| POST | /company/trade/seller-cart | Savat yaratish |
| PUT | /company/trade/seller-cart/{model} | Savatni tahrirlash |
| DELETE | /company/trade/seller-cart/{model} | Savatni o‘chirish |
Savatlar statistikasi
/company/trade/seller-cart/stats«Mening savatlarim» ustidagi kartalar ro‘yxat filtrlari hisobga olingan holda: tanlovdagi, yuborilgan va sotilganlar soni hamda active_amount — hali sotuvga yetmagan savatlar summasi.
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 |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
picking_count | integer | |
sent_count | integer | |
completed_count | integer | |
active_amount | integer |
{
"picking_count": 2,
"sent_count": 0,
"completed_count": 0,
"active_amount": 2200
}Sotuvchi sotuvlari
/company/trade/seller-cart/salesSotuvchining «Sotuvlar ro‘yxati»: kassaga yetib borgan savatlar ishlab topilgan bonus bilan — foizli bonus va qat’iy fsm_bonus — qaytarish va almashtirishlar hisobga olingan holda.
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 |
So‘rov parametrlari
| Parametr | Tavsif |
|---|---|
with[] | Bog‘liq ma’lumotlarni qo‘shish |
GET /company/trade/seller-cart/sales?with[0]=client&with[1]=creator.profileJavob · 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[].creator_id | integer | Yaratuvchi |
data[].company_id | integer | Kompaniya |
data[].stock_id | integer | Ombor |
data[].client_id | null | Mijoz |
data[].sale_id | null | Sotish |
data[].code | string | Kod |
data[].currency | string | Valyuta |
data[].discount_mode | null | |
data[].discount_value | null | |
data[].is_reserved | boolean | |
data[].amount | integer | Summa |
data[].discount_amount | integer | |
data[].total_amount | integer | |
data[].products_count | integer | |
data[].status | string | Status |
data[].sale_status | string | |
data[].sent_at | string | |
data[].created_at | string | Yaratilgan |
data[].updated_at | string | Yangilangan |
data[].bonus | string | |
data[].fsm_bonus | string | |
data[].client | null | |
data[].creator | object | |
data[].creator.id | integer | ID |
data[].creator.type | string | Turi |
data[].creator.role_id | integer | Roli |
data[].creator.company_id | integer | Kompaniya |
data[].creator.partner_id | null | Hamkor |
data[].creator.username | string | Login |
data[].creator.pinfl | null | PINFL |
data[].creator.phone | string | Telefon |
data[].creator.sipuni_sip_number | string | Sipuni (SIP-raqam) |
data[].creator.is_confirmed | boolean | |
data[].creator.are_all_companies_available | boolean | |
data[].creator.last_login_at | null | |
data[].creator.created_at | string | Yaratilgan |
data[].creator.updated_at | string | Yangilangan |
data[].creator.is_deleted | boolean | |
data[].creator.profile | object | |
data[].creator.profile.first_name | null | Ism |
data[].creator.profile.last_name | null | Familiya |
data[].creator.profile.position | null | Lavozim |
data[].creator.profile.birth_date | null | Tug'ilgan kuni |
data[].creator.profile.gender | null | Jinsi |
data[].creator.profile.full_name | string | FISH |
{
"data": [
{
"id": 29,
"creator_id": 2,
"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": "canceled",
"sale_status": "canceled",
"sent_at": "2026-09-30 12:55:47",
"created_at": "2026-09-30 12:55:47",
"updated_at": "2026-09-30 12:55:47",
"bonus": "0",
"fsm_bonus": "0",
"client": null,
"creator": {
"id": 2,
"type": "director",
"role_id": 2,
"company_id": 1,
"partner_id": null,
"username": "director_1@local.host",
"pinfl": null,
"phone": "998020000001",
"sipuni_sip_number": "210",
"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:47:59",
"is_deleted": false,
"profile": {
"first_name": null,
"last_name": null,
"position": null,
"birth_date": null,
"gender": null,
"full_name": " "
}
}
}
],
"links": {
"first": "https://api.wasyt.uz/company/trade/seller-cart/sales?page=1",
"last": "https://api.wasyt.uz/company/trade/seller-cart/sales?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/trade/seller-cart/sales",
"per_page": 20,
"to": 1,
"total": 1
}
}Sotuvchi sotuvlari yakunlari
/company/trade/seller-cart/sales-stats«Sotuvlar ro‘yxati» sarlavhasi: pul kartalari, sale_status bo‘yicha tab hisoblagichlari va sotuvchilar ro‘yxati. Tab va sotuvchi pul yakunlarini toraytiradi, lekin o‘z hisoblagichlarini emas.
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 |
So‘rov parametrlari
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
sale_status | string | Yo‘q | Mumkin qiymatlar: completed, partially_canceled, canceled, partially_returned, returned, exchanged |
creator_id | integer | Yo‘q | Yaratuvchi |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
total_bonus | integer | |
total_sales | integer | |
status_counts | object | |
status_counts.all | integer | |
status_counts.completed | integer | |
status_counts.partially_canceled | integer | |
status_counts.canceled | integer | |
status_counts.partially_returned | integer | |
status_counts.returned | integer | |
status_counts.exchanged | integer | |
sellers | object[] | |
sellers[].id | integer | ID |
sellers[].full_name | string | FISH |
sellers[].count | integer | Soni |
{
"total_bonus": 0,
"total_sales": 1100,
"status_counts": {
"all": 2,
"completed": 1,
"partially_canceled": 0,
"canceled": 1,
"partially_returned": 0,
"returned": 0,
"exchanged": 0
},
"sellers": [
{
"id": 2,
"full_name": "director_1@local.host",
"count": 1
}
]
}Savat sotuvi tafsilotlari
/company/trade/seller-cart/{model}/sale-detailSotuvning yon paneli: tanlangan qatorlar har biri bo‘yicha ishlab topilgan bonus bilan; kassir olib tashlagan yoki xaridor qaytargan qatorlar belgilangan.
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 |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
id | integer | ID |
code | string | Kod |
status | string | Status |
sale_status | string | |
sale_id | null | Sotish |
currency | string | Valyuta |
created_at | string | Yaratilgan |
client | null | |
seller | object | |
seller.id | integer | ID |
seller.full_name | null | FISH |
cashier | null | |
discount_mode | null | |
discount_value | null | |
discount_amount | integer | |
amount | integer | Summa |
total_amount | integer | |
bonus | integer | |
fsm_bonus | integer | |
is_bonus_accrued | boolean | |
products | object[] | Mahsulotlar |
products[].name | string | Nomlanish |
products[].quantity | integer | Miqdori |
products[].price | integer | Narxi |
products[].discount | integer | Chegirma |
products[].discount_amount | integer | |
products[].total | integer | Jami yozuvlar |
products[].is_canceled | boolean | |
products[].returned_quantity | integer | Qaytarilgan miqdor |
products[].is_returned | boolean | |
products[].is_exchanged | boolean | |
products[].exchanges | array | |
products[].bonus_percent | null | |
products[].bonus | integer | |
products[].fsm_bonus | integer |
{
"id": 32,
"code": "0001",
"status": "canceled",
"sale_status": "canceled",
"sale_id": null,
"currency": "uzs",
"created_at": "2026-09-30T07:55:47.000000Z",
"client": null,
"seller": {
"id": 2,
"full_name": null
},
"cashier": null,
"discount_mode": null,
"discount_value": null,
"discount_amount": 0,
"amount": 1100,
"total_amount": 1100,
"bonus": 0,
"fsm_bonus": 0,
"is_bonus_accrued": false,
"products": [
{
"name": "Product 1",
"quantity": 1,
"price": 1100,
"discount": 0,
"discount_amount": 0,
"total": 1100,
"is_canceled": true,
"returned_quantity": 0,
"is_returned": false,
"is_exchanged": false,
"exchanges": [],
"bonus_percent": null,
"bonus": 0,
"fsm_bonus": 0
}
]
}Kassadagi savatlar navbati
/company/trade/seller-cart/queueKompaniyaning kassaga yuborilgan (sent) va sotuvni kutayotgan barcha savatlari.
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 |
So‘rov parametrlari
| Parametr | Tavsif |
|---|---|
with[] | Bog‘liq ma’lumotlarni qo‘shish |
GET /company/trade/seller-cart/queue?with[0]=creator.profile&with[1]=clientJavob · 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[].creator_id | integer | Yaratuvchi |
data[].company_id | integer | Kompaniya |
data[].stock_id | integer | Ombor |
data[].client_id | null | Mijoz |
data[].sale_id | null | Sotish |
data[].code | string | Kod |
data[].currency | string | Valyuta |
data[].discount_mode | null | |
data[].discount_value | null | |
data[].is_reserved | boolean | |
data[].amount | integer | Summa |
data[].discount_amount | integer | |
data[].total_amount | integer | |
data[].products_count | integer | |
data[].status | string | Status |
data[].sale_status | null | |
data[].sent_at | string | |
data[].created_at | string | Yaratilgan |
data[].updated_at | string | Yangilangan |
data[].creator | object | |
data[].creator.id | integer | ID |
data[].creator.type | string | Turi |
data[].creator.role_id | integer | Roli |
data[].creator.company_id | integer | Kompaniya |
data[].creator.partner_id | null | Hamkor |
data[].creator.username | string | Login |
data[].creator.pinfl | null | PINFL |
data[].creator.phone | string | Telefon |
data[].creator.sipuni_sip_number | string | Sipuni (SIP-raqam) |
data[].creator.is_confirmed | boolean | |
data[].creator.are_all_companies_available | boolean | |
data[].creator.last_login_at | null | |
data[].creator.created_at | string | Yaratilgan |
data[].creator.updated_at | string | Yangilangan |
data[].creator.is_deleted | boolean | |
data[].creator.profile | object | |
data[].creator.profile.first_name | string | Ism |
data[].creator.profile.last_name | string | Familiya |
data[].creator.profile.position | string | Lavozim |
data[].creator.profile.birth_date | null | Tug'ilgan kuni |
data[].creator.profile.gender | null | Jinsi |
data[].creator.profile.full_name | string | FISH |
data[].client | null |
{
"data": [
{
"id": 25,
"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:55:46",
"created_at": "2026-09-30 12:55:46",
"updated_at": "2026-09-30 12:55:46",
"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/company/trade/seller-cart/queue?page=1",
"last": "https://api.wasyt.uz/company/trade/seller-cart/queue?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/trade/seller-cart/queue",
"per_page": 20,
"to": 1,
"total": 1
}
}Savatni kassada ochish
/company/trade/seller-cart/{model}/chequeYuborilgan savat kassa uchun chek ko‘rinishida: miqdor joriy qoldiq bilan cheklangan, narxlar katalog bo‘yicha qayta hisoblangan, mijoz bilan. Faqat sent holatidagi savatlar uchun.
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 |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
id | integer | ID |
creator_id | integer | Yaratuvchi |
company_id | integer | Kompaniya |
stock_id | integer | Ombor |
client_id | null | Mijoz |
sale_id | null | Sotish |
code | string | Kod |
currency | string | Valyuta |
discount_mode | null | |
discount_value | null | |
is_reserved | boolean | |
amount | integer | Summa |
discount_amount | integer | |
total_amount | integer | |
products_count | integer | |
status | string | Status |
sale_status | null | |
sent_at | string | |
created_at | string | Yaratilgan |
updated_at | string | Yangilangan |
products | object[] | Mahsulotlar |
products[].id | integer | ID |
products[].is_service | boolean | |
products[].is_bundle | boolean | |
products[].bundle_id | null | Komplekt |
products[].service_id | null | |
products[].name | string | Nomlanish |
products[].category | string | Kategoriya |
products[].barcode | string | Shtrix kod |
products[].quantity | integer | Miqdori |
products[].max_quantity | integer | |
products[].price | integer | Narxi |
products[].currency | string | Valyuta |
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 | Chegirma |
products[].unit | string | |
products[].unit_accuracy | integer | |
products[].is_free_price | boolean | Erkin narxda sotish |
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 | Tavsif |
client | null | |
creator | object | |
creator.id | integer | ID |
creator.type | string | Turi |
creator.role_id | integer | Roli |
creator.company_id | integer | Kompaniya |
creator.partner_id | null | Hamkor |
creator.username | string | Login |
creator.pinfl | null | PINFL |
creator.phone | string | Telefon |
creator.sipuni_sip_number | string | Sipuni (SIP-raqam) |
creator.is_confirmed | boolean | |
creator.are_all_companies_available | boolean | |
creator.last_login_at | null | |
creator.created_at | string | Yaratilgan |
creator.updated_at | string | Yangilangan |
creator.is_deleted | boolean | |
creator.profile | object | |
creator.profile.first_name | string | Ism |
creator.profile.last_name | string | Familiya |
creator.profile.position | string | Lavozim |
creator.profile.birth_date | null | Tug'ilgan kuni |
creator.profile.gender | null | Jinsi |
creator.profile.full_name | string | FISH |
{
"id": 26,
"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:55:46",
"created_at": "2026-09-30 12:55:46",
"updated_at": "2026-09-30 12:55:46",
"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"
}
}
}Savatni kassaga yuborish
/company/trade/seller-cart/{model}/sendSavatni pickingdan sentga o‘tkazadi: qator narxlari katalog bo‘yicha qotiriladi (erkin narx o‘zgarmaydi), miqdor qoldiq bo‘yicha tekshiriladi. Bo‘sh savat, qoldiq yetmasa yoki savat allaqachon yuborilgan bo‘lsa — 400 xato.
Formadan (
multipart/form-data)PATCHmetodiPOST+?_method=PATCHparametri bilan yuboriladi.
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 |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
id | integer | ID |
creator_id | integer | Yaratuvchi |
company_id | integer | Kompaniya |
stock_id | integer | Ombor |
client_id | null | Mijoz |
sale_id | null | Sotish |
code | string | Kod |
currency | string | Valyuta |
discount_mode | null | |
discount_value | null | |
is_reserved | boolean | |
amount | integer | Summa |
discount_amount | integer | |
total_amount | integer | |
products_count | integer | |
status | string | Status |
sale_status | null | |
sent_at | string | |
created_at | string | Yaratilgan |
updated_at | string | Yangilangan |
products | object[] | Mahsulotlar |
products[].id | integer | ID |
products[].is_service | boolean | |
products[].is_bundle | boolean | |
products[].bundle_id | null | Komplekt |
products[].service_id | null | |
products[].name | string | Nomlanish |
products[].category | string | Kategoriya |
products[].barcode | string | Shtrix kod |
products[].quantity | integer | Miqdori |
products[].max_quantity | integer | |
products[].price | integer | Narxi |
products[].currency | string | Valyuta |
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 | Chegirma |
products[].unit | string | |
products[].unit_accuracy | integer | |
products[].is_free_price | boolean | Erkin narxda sotish |
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 | Tavsif |
client | null | |
creator | object | |
creator.id | integer | ID |
creator.type | string | Turi |
creator.role_id | integer | Roli |
creator.company_id | integer | Kompaniya |
creator.partner_id | null | Hamkor |
creator.username | string | Login |
creator.pinfl | null | PINFL |
creator.phone | string | Telefon |
creator.sipuni_sip_number | string | Sipuni (SIP-raqam) |
creator.is_confirmed | boolean | |
creator.are_all_companies_available | boolean | |
creator.last_login_at | null | |
creator.created_at | string | Yaratilgan |
creator.updated_at | string | Yangilangan |
creator.is_deleted | boolean | |
creator.profile | object | |
creator.profile.first_name | null | Ism |
creator.profile.last_name | null | Familiya |
creator.profile.position | null | Lavozim |
creator.profile.birth_date | null | Tug'ilgan kuni |
creator.profile.gender | null | Jinsi |
creator.profile.full_name | string | FISH |
{
"id": 34,
"creator_id": 2,
"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:55:48",
"created_at": "2026-09-30 12:55:48",
"updated_at": "2026-09-30 12:55:48",
"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": 2,
"type": "director",
"role_id": 2,
"company_id": 1,
"partner_id": null,
"username": "director_1@local.host",
"pinfl": null,
"phone": "998020000001",
"sipuni_sip_number": "210",
"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:47:59",
"is_deleted": false,
"profile": {
"first_name": null,
"last_name": null,
"position": null,
"birth_date": null,
"gender": null,
"full_name": " "
}
}
}Savatni bekor qilish
/company/trade/seller-cart/{model}/cancelSavatni canceled holatiga o‘tkazadi. O‘z savatini sotuvchi, yuborilganini kassa ham bekor qila oladi; sotilgan yoki allaqachon bekor qilinganini bekor qilib bo‘lmaydi.
Formadan (
multipart/form-data)PATCHmetodiPOST+?_method=PATCHparametri bilan yuboriladi.
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 |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
message | string | Xabar |
{
"message": "Success"
}Mening savatlarim
/company/trade/seller-cartSotuvchi savatlari sahifalab va filtrlar bilan; direktor barcha sotuvchilarning savatlarini ko‘radi.
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 |
So‘rov parametrlari
| Parametr | Tavsif |
|---|---|
filter[id] | ID — aniq qiymat |
filter[creator_id] | Yaratuvchi — aniq qiymat |
filter[company_id] | Kompaniya — aniq qiymat |
filter[stock_id] | Ombor — aniq qiymat |
filter[client_id] | Mijoz — aniq qiymat |
filter[sale_id] | Sotish — aniq qiymat |
filter[code] | Kod — qator qismi bo‘yicha qidiruv |
filter[currency] | Valyuta — aniq qiymat |
filter[status] | Status — bitta qiymat yoki ro‘yxat filter[status][] |
filter[sale_status] | aniq qiymat |
filter[is_reserved] | aniq qiymat |
filter[sent_at] | davr: [0] — dan, [1] — gacha (Y-m-d) |
filter[created_at] | Yaratilgan — davr: [0] — dan, [1] — gacha (Y-m-d) |
sort[] | Saralash, - — kamayish bo‘yicha: id, -id, code, -code, sent_at, -sent_at, total_amount, -total_amount, created_at, -created_at |
with[] | Bog‘liq ma’lumotlarni qo‘shish: creator.profile, company, stock, client, sale, products.product.category, products.product.unit, products.service.category, products.bundle.category, products.bundle.items.product.unit |
page | Sahifa raqami, 1 dan |
page-size | Sahifadagi yozuvlar soni, ko‘pi bilan 20 |
GET /company/trade/seller-cart?with[0]=products.product.unit&with[1]=clientJavob · 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[].creator_id | integer | Yaratuvchi |
data[].company_id | integer | Kompaniya |
data[].stock_id | integer | Ombor |
data[].client_id | null | Mijoz |
data[].sale_id | null | Sotish |
data[].code | null | Kod |
data[].currency | string | Valyuta |
data[].discount_mode | null | |
data[].discount_value | null | |
data[].is_reserved | boolean | |
data[].amount | integer | Summa |
data[].discount_amount | integer | |
data[].total_amount | integer | |
data[].status | string | Status |
data[].sent_at | null | |
data[].created_at | string | Yaratilgan |
data[].updated_at | string | Yangilangan |
data[].products | object[] | Mahsulotlar |
data[].products[].id | integer | ID |
data[].products[].is_service | boolean | |
data[].products[].is_bundle | boolean | |
data[].products[].bundle_id | null | Komplekt |
data[].products[].service_id | null | |
data[].products[].name | string | Nomlanish |
data[].products[].category | string | Kategoriya |
data[].products[].barcode | string | Shtrix kod |
data[].products[].quantity | integer | Miqdori |
data[].products[].max_quantity | integer | |
data[].products[].price | integer | Narxi |
data[].products[].currency | string | Valyuta |
data[].products[].img | object | |
data[].products[].img.widen_100 | object | |
data[].products[].img.widen_100.raw | string | |
data[].products[].img.widen_100.webp | string | |
data[].products[].img.widen_500 | object | |
data[].products[].img.widen_500.raw | string | |
data[].products[].img.widen_500.webp | string | |
data[].products[].img.original | object | |
data[].products[].img.original.raw | string | |
data[].products[].img.original.webp | string | |
data[].products[].discount | integer | Chegirma |
data[].products[].unit | string | |
data[].products[].unit_accuracy | integer | |
data[].products[].is_free_price | boolean | Erkin narxda sotish |
data[].products[].min_price | integer | |
data[].products[].min_price_currency | string | |
data[].products[].images_list_thumbs | object[] | |
data[].products[].images_list_thumbs[].widen_100 | object | |
data[].products[].images_list_thumbs[].widen_100.raw | string | |
data[].products[].images_list_thumbs[].widen_100.webp | string | |
data[].products[].images_list_thumbs[].widen_500 | object | |
data[].products[].images_list_thumbs[].widen_500.raw | string | |
data[].products[].images_list_thumbs[].widen_500.webp | string | |
data[].products[].images_list_thumbs[].original | object | |
data[].products[].images_list_thumbs[].original.raw | string | |
data[].products[].images_list_thumbs[].original.webp | string | |
data[].client | null |
{
"data": [
{
"id": 12,
"creator_id": 2,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": null,
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"status": "picking",
"sent_at": null,
"created_at": "2026-09-21 10:29:42",
"updated_at": "2026-09-21 10:29:43",
"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": 0,
"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"
}
}
]
}
],
"client": null
}
],
"links": {
"first": "https://api.wasyt.uz/company/trade/seller-cart?page=1",
"last": "https://api.wasyt.uz/company/trade/seller-cart?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/company/trade/seller-cart",
"per_page": 20,
"to": 1,
"total": 1
}
}Savat tafsilotlari
/company/trade/seller-cart/{model}Bitta savat: navbat raqami, holat, mijoz, chegirma va summalar.
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 |
GET /company/trade/seller-cart/23?with[0]=products.product.unitJavob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
id | integer | ID |
creator_id | integer | Yaratuvchi |
company_id | integer | Kompaniya |
stock_id | integer | Ombor |
client_id | null | Mijoz |
sale_id | null | Sotish |
code | string | Kod |
currency | string | Valyuta |
discount_mode | null | |
discount_value | null | |
is_reserved | boolean | |
amount | integer | Summa |
discount_amount | integer | |
total_amount | integer | |
products_count | integer | |
status | string | Status |
sale_status | null | |
sent_at | null | |
created_at | string | Yaratilgan |
updated_at | string | Yangilangan |
products | object[] | Mahsulotlar |
products[].id | integer | ID |
products[].is_service | boolean | |
products[].is_bundle | boolean | |
products[].bundle_id | null | Komplekt |
products[].service_id | null | |
products[].name | string | Nomlanish |
products[].category | string | Kategoriya |
products[].barcode | string | Shtrix kod |
products[].quantity | integer | Miqdori |
products[].max_quantity | integer | |
products[].price | integer | Narxi |
products[].currency | string | Valyuta |
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 | Chegirma |
products[].unit | string | |
products[].unit_accuracy | integer | |
products[].is_free_price | boolean | Erkin narxda sotish |
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 | Tavsif |
{
"id": 23,
"creator_id": 2,
"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:55:45",
"updated_at": "2026-09-30 12:55:45",
"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": 0,
"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"
}
]
}Savat yaratish
/company/trade/seller-cartKunlik navbat raqami bilan picking holatidagi savat yaratadi (raqamlash har bir kompaniyada alohida va har kuni qaytadan boshlanadi). Qatorlar — narxdan oshmaydigan chegirmali tovar, xizmat va komplektlar; umumiy chegirma discount_mode (percent/integer) + discount_value.
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 |
So‘rov tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
company_id | integer | Ha | Kompaniya. Foydalanuvchiga ochiq mavjud yozuv ID si |
stock_id | integer | Ha | Ombor. Foydalanuvchiga ochiq mavjud yozuv ID si |
client_id | integer | Yo‘q | Mijoz. Foydalanuvchiga ochiq mavjud yozuv ID si |
currency | string | Ha | Valyuta. Mumkin qiymatlar: uzs |
discount_mode | string | discount_value yuborilsa | Mumkin qiymatlar: percent, integer |
discount_value | number | Yo‘q | Verguldan keyin 2 tagacha raqam. Kamida 0 |
is_reserved | boolean | Yo‘q | Tovarlarni sotuvgacha ombordan band qilish (qoldiq ko‘chirishlar uchun band bo‘ladi) |
products | object[] | Yo‘q | Mahsulotlar. Maks. 100 ta element |
products[].id | integer | Ha | ID. Takrorlanmasin |
products[].quantity | number | Ha | Miqdori. Verguldan keyin 8 tagacha raqam. Kamida 0.00000001 |
products[].amount | number | Ha | Summa. Verguldan keyin 2 tagacha raqam. Kamida 0.01. 999999999999.99 dan oshmasin |
products[].discount | number | Yo‘q | Chegirma. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin. products[].amount dan kichik yoki teng |
services | object[] | Yo‘q | Maks. 100 ta element |
services[].id | integer | Ha | ID. Takrorlanmasin |
services[].amount | number | Ha | Summa. Verguldan keyin 2 tagacha raqam. Kamida 0.01. 999999999999.99 dan oshmasin |
services[].discount | number | Yo‘q | Chegirma. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin. services[].amount dan kichik yoki teng |
bundles | object[] | Yo‘q | Komplektlar. Maks. 100 ta element |
bundles[].id | integer | Ha | ID. Takrorlanmasin |
bundles[].quantity | integer | Yo‘q | Miqdori. Kamida 1. 1000 dan oshmasin |
bundles[].amount | number | Ha | Summa. Verguldan keyin 2 tagacha raqam. Kamida 0.01. 999999999999.99 dan oshmasin |
bundles[].discount | number | Yo‘q | Chegirma. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin. bundles[].amount dan kichik yoki teng |
{
"company_id": 1,
"stock_id": 1,
"currency": "uzs",
"products": [
{
"id": 1,
"quantity": 2,
"amount": 1100
}
],
"services": [
{
"id": 1,
"amount": 50000
}
],
"client_id": 1,
"discount_mode": "percent",
"discount_value": 10,
"is_reserved": 1
}curl -X POST "https://api.wasyt.uz/company/trade/seller-cart" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"company_id":1,"stock_id":1,"currency":"uzs","products":[{"id":1,"quantity":2,"amount":1100}],"services":[{"id":1,"amount":50000}],"client_id":1,"discount_mode":"percent","discount_value":10,"is_reserved":1}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
company_id | integer | Kompaniya |
stock_id | integer | Ombor |
client_id | integer | Mijoz |
currency | string | Valyuta |
discount_mode | string | |
discount_value | integer | |
is_reserved | boolean | |
code | string | Kod |
updated_at | string | Yangilangan |
created_at | string | Yaratilgan |
creator_id | integer | Yaratuvchi |
status | string | Status |
id | integer | ID |
products_count | integer | |
amount | integer | Summa |
discount_amount | integer | |
total_amount | integer |
{
"company_id": 1,
"stock_id": 1,
"client_id": 1,
"currency": "uzs",
"discount_mode": "percent",
"discount_value": 10,
"is_reserved": true,
"code": "0001",
"updated_at": "2026-09-30 12:55:42",
"created_at": "2026-09-30 12:55:42",
"creator_id": 2,
"status": "picking",
"id": 10,
"products_count": 2,
"amount": 52200,
"discount_amount": 5220,
"total_amount": 46980
}Xato misoli · 422
{
"message": "Добавьте хотя бы один товар или услугу",
"errors": {
"products": [
"Добавьте хотя бы один товар или услугу"
]
}
}Savatni tahrirlash
/company/trade/seller-cart/{model}Savat tarkibi va parametrlarini qayta yozadi. Faqat picking holatidagi o‘z savatiga ruxsat; kassaga yuborilgandan keyin — 400 xato.
Formadan (
multipart/form-data)PUTmetodiPOST+?_method=PUTparametri bilan yuboriladi.
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 tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
company_id | integer | Ha | Kompaniya. Foydalanuvchiga ochiq mavjud yozuv ID si |
stock_id | integer | Ha | Ombor. Foydalanuvchiga ochiq mavjud yozuv ID si |
client_id | integer | Yo‘q | Mijoz. Foydalanuvchiga ochiq mavjud yozuv ID si |
currency | string | Ha | Valyuta. Mumkin qiymatlar: uzs |
discount_mode | string | discount_value yuborilsa | Mumkin qiymatlar: percent, integer |
discount_value | number | Yo‘q | Verguldan keyin 2 tagacha raqam. Kamida 0 |
is_reserved | boolean | Yo‘q | Tovarlarni sotuvgacha ombordan band qilish (qoldiq ko‘chirishlar uchun band bo‘ladi) |
products | object[] | Yo‘q | Mahsulotlar. Maks. 100 ta element |
products[].id | integer | Ha | ID. Takrorlanmasin |
products[].quantity | number | Ha | Miqdori. Verguldan keyin 8 tagacha raqam. Kamida 0.00000001 |
products[].amount | number | Ha | Summa. Verguldan keyin 2 tagacha raqam. Kamida 0.01. 999999999999.99 dan oshmasin |
products[].discount | number | Yo‘q | Chegirma. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin. products[].amount dan kichik yoki teng |
services | object[] | Yo‘q | Maks. 100 ta element |
services[].id | integer | Ha | ID. Takrorlanmasin |
services[].amount | number | Ha | Summa. Verguldan keyin 2 tagacha raqam. Kamida 0.01. 999999999999.99 dan oshmasin |
services[].discount | number | Yo‘q | Chegirma. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin. services[].amount dan kichik yoki teng |
bundles | object[] | Yo‘q | Komplektlar. Maks. 100 ta element |
bundles[].id | integer | Ha | ID. Takrorlanmasin |
bundles[].quantity | integer | Yo‘q | Miqdori. Kamida 1. 1000 dan oshmasin |
bundles[].amount | number | Ha | Summa. Verguldan keyin 2 tagacha raqam. Kamida 0.01. 999999999999.99 dan oshmasin |
bundles[].discount | number | Yo‘q | Chegirma. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin. bundles[].amount dan kichik yoki teng |
{
"company_id": 1,
"stock_id": 1,
"currency": "uzs",
"products": [
{
"id": 2,
"quantity": 3,
"amount": 2000
}
],
"services": null
}curl -X PUT "https://api.wasyt.uz/company/trade/seller-cart/44" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"company_id":1,"stock_id":1,"currency":"uzs","products":[{"id":2,"quantity":3,"amount":2000}],"services":null}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
id | integer | ID |
creator_id | integer | Yaratuvchi |
company_id | integer | Kompaniya |
stock_id | integer | Ombor |
client_id | null | Mijoz |
sale_id | null | Sotish |
code | string | Kod |
currency | string | Valyuta |
discount_mode | null | |
discount_value | null | |
is_reserved | boolean | |
amount | integer | Summa |
discount_amount | integer | |
total_amount | integer | |
products_count | integer | |
status | string | Status |
sale_status | null | |
sent_at | null | |
created_at | string | Yaratilgan |
updated_at | string | Yangilangan |
{
"id": 44,
"creator_id": 2,
"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": 6000,
"discount_amount": 0,
"total_amount": 6000,
"products_count": 1,
"status": "picking",
"sale_status": null,
"sent_at": null,
"created_at": "2026-09-30 12:55:50",
"updated_at": "2026-09-30 12:55:50"
}Savatni o‘chirish
/company/trade/seller-cart/{model}O‘z savatini qatorlari bilan birga o‘chiradi. Faqat savat picking holatida bo‘lganda.
Formadan (
multipart/form-data)DELETEmetodiPOST+?_method=DELETEparametri bilan yuboriladi.
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 |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
message | string | Xabar |
{
"message": "Success"
}
