Sotuvchi tanlovlari
Sotuvchi-maslahatchilar tanlovlari: kredit tizimi ularni trade-sale/create ga seller_cart_id yuborib kreditga sotadi. Unda kassa navbati yo‘q: picking holatidagi tanlov ham, kassaga yuborilgani (sent) ham sotiladi.
| Metod | Manzil | Vazifasi |
|---|---|---|
| GET | /external/credit/seller-cart | Tanlovlar ro‘yxati |
| GET | /external/credit/seller-cart/{model}/cheque | Tanlovni chek sifatida ochish |
Tanlovlar ro‘yxati
/external/credit/seller-cartSarlavhadagi kompaniya va uning filiallarining har qanday holatdagi barcha tanlovlari. Sotiladiganlari — sotuv ombori filter[stock_id] bilan birga filter[status][]=picking&filter[status][]=sent; tanlov id si trade-sale/create ga seller_cart_id sifatida yuboriladi.
Sarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
External-System-Secret-Key | {external_system_secret_key} | Tashqi tizim maxfiy kaliti |
Company-Wasyt-Uuid | {company_wasyt_uuid} | Kompaniya wasyt UUID si bo‘yicha (yoki Company-Ican-Uuid) |
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 /external/credit/seller-cart?filter[stock_id]=1&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": 51,
"creator_id": 4,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0002",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"products_count": 1,
"status": "sent",
"sale_status": null,
"sent_at": "2026-09-30 12:56:29",
"created_at": "2026-09-30 12:56:29",
"updated_at": "2026-09-30 12:56:29",
"creator": {
"id": 4,
"type": "employee",
"role_id": 4,
"company_id": 1,
"partner_id": null,
"username": "employee_1_1@local.host",
"pinfl": null,
"phone": "998030000001",
"sipuni_sip_number": "211",
"is_confirmed": true,
"are_all_companies_available": false,
"last_login_at": null,
"created_at": "2026-09-30 12:47:59",
"updated_at": "2026-09-30 12:49:04",
"is_deleted": false,
"profile": {
"first_name": "First name 1",
"last_name": "Last name 1",
"position": "Position 1",
"birth_date": null,
"gender": null,
"full_name": "Last name 1 First name 1"
}
},
"client": null
},
{
"id": 50,
"creator_id": 4,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0001",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"products_count": 1,
"status": "picking",
"sale_status": null,
"sent_at": null,
"created_at": "2026-09-30 12:56:29",
"updated_at": "2026-09-30 12:56:29",
"creator": {
"id": 4,
"type": "employee",
"role_id": 4,
"company_id": 1,
"partner_id": null,
"username": "employee_1_1@local.host",
"pinfl": null,
"phone": "998030000001",
"sipuni_sip_number": "211",
"is_confirmed": true,
"are_all_companies_available": false,
"last_login_at": null,
"created_at": "2026-09-30 12:47:59",
"updated_at": "2026-09-30 12:49:04",
"is_deleted": false,
"profile": {
"first_name": "First name 1",
"last_name": "Last name 1",
"position": "Position 1",
"birth_date": null,
"gender": null,
"full_name": "Last name 1 First name 1"
}
},
"client": null
}
],
"links": {
"first": "https://api.wasyt.uz/external/credit/seller-cart?page=1",
"last": "https://api.wasyt.uz/external/credit/seller-cart?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/external/credit/seller-cart",
"per_page": 20,
"to": 2,
"total": 2
}
}Tanlovni chek sifatida ochish
/external/credit/seller-cart/{model}/cheque{model} tanlovi (uning id si, navbat raqami code emas) chek ko‘rinishida: qatorlar joriy katalog bo‘yicha qayta narxlanadi va ombor qoldig‘i bilan cheklanadi (max_quantity), tovarlarda min_price bor. Qatorlar trade-sale/create ga o‘tkaziladi: tovarlar — products ga, is_service — services ga, is_bundle — bundles ga.
Sarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
External-System-Secret-Key | {external_system_secret_key} | Tashqi tizim maxfiy kaliti |
Company-Wasyt-Uuid | {company_wasyt_uuid} | Kompaniya wasyt UUID si bo‘yicha (yoki Company-Ican-Uuid) |
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": 48,
"creator_id": 4,
"company_id": 1,
"stock_id": 1,
"client_id": null,
"sale_id": null,
"code": "0001",
"currency": "uzs",
"discount_mode": null,
"discount_value": null,
"is_reserved": false,
"amount": 1100,
"discount_amount": 0,
"total_amount": 1100,
"products_count": 1,
"status": "sent",
"sale_status": null,
"sent_at": "2026-09-30 12:56:29",
"created_at": "2026-09-30 12:56:29",
"updated_at": "2026-09-30 12:56:29",
"products": [
{
"id": 1,
"is_service": false,
"is_bundle": false,
"bundle_id": null,
"service_id": null,
"name": "Product 1",
"category": "Category 1-1-1 ru",
"barcode": "0000000000001",
"quantity": 1,
"max_quantity": 1,
"price": 1100,
"currency": "uzs",
"img": {
"widen_100": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
},
"widen_500": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
},
"original": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
}
},
"discount": 0,
"unit": "Unit 1 ru",
"unit_accuracy": 4,
"is_free_price": false,
"min_price": 0,
"min_price_currency": "uzs",
"images_list_thumbs": [
{
"widen_100": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
},
"widen_500": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
},
"original": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/1.png"
}
},
{
"widen_100": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"widen_500": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
},
"original": {
"raw": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png",
"webp": "https://api-minio.icangroup.uz/wasyt/test_data/images/2.png"
}
}
],
"description": "Description 1"
}
],
"client": null,
"creator": {
"id": 4,
"type": "employee",
"role_id": 4,
"company_id": 1,
"partner_id": null,
"username": "employee_1_1@local.host",
"pinfl": null,
"phone": "998030000001",
"sipuni_sip_number": "211",
"is_confirmed": true,
"are_all_companies_available": false,
"last_login_at": null,
"created_at": "2026-09-30 12:47:59",
"updated_at": "2026-09-30 12:49:04",
"is_deleted": false,
"profile": {
"first_name": "First name 1",
"last_name": "Last name 1",
"position": "Position 1",
"birth_date": null,
"gender": null,
"full_name": "Last name 1 First name 1"
}
}
}
