Kompaniyalar
Wasyt mijoz-kompaniyalari va ularning filiallari: karta, direktor, obuna tarifi va billing (hisob, bloklash, to‘lov, kechiktirish), ICAN bilan bog‘lanish. Kompaniyani o‘chirish — yumshoq o‘chirish, butunlay o‘chirish esa «Savat» orqali.
Shartnoma matnini yangilash
Kompaniya shartnomasining HTML matnini har bir tilda saqlaydi (agreement_html.ru, .uz, .oz). HTML xavfli belgilardan tozalanadi. Kompaniya kartasini qaytaradi.
/admin/company/company/{model}/update-agreement_htmlFormadan (
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 |
|---|---|---|---|
agreement_html.{lang} | string | Ha (null bo‘lishi mumkin) | Shartnoma |
{
"agreement_html": {
"ru": "<div class=\"row\">Agreement #1</div> ru",
"uz": "<div class=\"row\">Agreement #1</div> uz",
"oz": "<div class=\"row\">Agreement #1</div> oz"
}
}curl -X PUT "https://api.wasyt.uz/admin/company/company/1/update-agreement_html" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"agreement_html":{"ru":"<div class=\"row\">Agreement #1</div> ru","uz":"<div class=\"row\">Agreement #1</div> uz","oz":"<div class=\"row\">Agreement #1</div> oz"}}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
id | integer | ID |
parent_id | null | Ota-ona |
partner_id | integer | Hamkor |
district_id | integer | Tuman |
name | string | Nomlanish |
company_name | string | Kompaniya |
logo | object | Logotip |
logo.original | object | |
logo.original.raw | string | |
logo.original.webp | string | |
logo.widen_25 | object | |
logo.widen_25.raw | string | |
logo.widen_25.webp | string | |
logo.widen_100 | object | |
logo.widen_100.raw | string | |
logo.widen_100.webp | string | |
logo.widen_500 | object | |
logo.widen_500.raw | string | |
logo.widen_500.webp | string | |
inn | string | INN |
mfo | string | MFO |
address | string | Manzil |
latitude | null | Kenglik |
longitude | null | Uzunlik |
comment | string | Izoh |
telegram_phone | string | Telegramdagi telefon |
director_full_name | string | Direktorning FISH |
bank | string | Bank |
payment_account | string | To'lov hisob raqami |
agreement_number | string | Shartnoma raqami |
agreement_date | null | |
bonus_entry_period | integer | Bonuslar hisob davri (oylarda) |
abc_segment_a | integer | |
abc_segment_b | integer | |
abc_segment_c | integer | |
is_pos_window_enabled | boolean | |
is_multi_currency_sale | boolean | |
cashbox_shift_settings | object | |
cashbox_shift_settings.is_enabled | boolean | Yoqilgan |
pos_layout_settings | null | |
manual_discount_settings | null | |
is_manual_sale_price | boolean | |
wholesale_settings | null | |
product_settings | null | |
has_bank_payment_type | boolean | |
payment_type_names | null | |
is_ican_turned_on | boolean | ICAN yoqilgan |
created_at | string | Yaratilgan |
updated_at | string | Yangilangan |
is_deleted | boolean | O‘chirilgan |
subscription | object | Tarif |
subscription.billing_period | string | To‘lov davri |
subscription.status | string | Status |
subscription.monthly_payment | integer | |
subscription.filial_monthly_payment | integer | |
subscription.yearly_payment | integer | |
subscription.filial_yearly_payment | integer | |
subscription.price_sms | null | SMS narxi |
subscription.pending_billing_period | null | |
subscription.pending_billing_period_at | null | |
subscription.billing_period_started_at | null | |
subscription.trial_days | null | |
subscription.trial_started_at | null | |
subscription.trial_ends_at | null | Sinov muddati tugashi |
subscription.payment_deferred_until | null | To‘lov kechiktirilgan sana |
subscription.canceled_at | null | Bekor qilish vaqti |
subscription.block_at | null | Bloklash sanasi |
subscription.call_result | null | Qo'ng'iroq natijasi |
subscription.call_result_at | null | |
subscription.call_promised_at | null | |
subscription.created_at | string | Yaratilgan |
subscription.updated_at | string | Yangilangan |
balance | object | Balans |
balance.main | integer | Asosiy |
balance.sms | integer | SMS |
balance.pochta | integer | Pochta |
balance.imei | string | IMEI |
balance.aniq_score | string | |
balance.subscription | integer | Tarif |
billing | object | |
billing.status | string | Status |
billing.balance | integer | Balans |
billing.debt | integer | Qarz |
billing.block_at | null | Bloklash sanasi |
billing.payment_deferred_until | null | To‘lov kechiktirilgan sana |
billing.subscription_total | integer | |
billing.paid | integer | |
billing.remaining | integer |
{
"id": 1,
"parent_id": null,
"partner_id": 1,
"district_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,
"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:44:24",
"is_deleted": false,
"subscription": {
"billing_period": "monthly",
"status": "active",
"monthly_payment": 150000,
"filial_monthly_payment": 99000,
"yearly_payment": 3588000,
"filial_yearly_payment": 1800000,
"price_sms": null,
"pending_billing_period": null,
"pending_billing_period_at": null,
"billing_period_started_at": null,
"trial_days": null,
"trial_started_at": null,
"trial_ends_at": null,
"payment_deferred_until": null,
"canceled_at": null,
"block_at": null,
"call_result": null,
"call_result_at": null,
"call_promised_at": null,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00"
},
"balance": {
"main": 1000,
"sms": 2000,
"pochta": 3000,
"imei": "10000000000.00",
"aniq_score": "10000000000.00",
"subscription": 0
},
"billing": {
"status": "active",
"balance": 0,
"debt": 0,
"block_at": null,
"payment_deferred_until": null,
"subscription_total": 249000,
"paid": 249000,
"remaining": 0
}
}ICAN bilan sinxronlash
«Ican bilan sinxronlash» tugmasi: kompaniyaning sinxronlash hisoblagichini oshiradi va kompaniyani darhol (sinxron) ICAN ga yuboradi.
/admin/company/company/{model}/sync-icanSarlavhalar (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"
}ICAN dan uzish
Kompaniya va uning filiallarini ICAN dan uzadi va bu haqda ICAN ga darhol xabar beradi. Keyinroq qayta ulansa, kompaniya ICAN dagi o‘sha yozuvga bog‘lanadi. ICAN javob bermasa, kompaniya ulangan holicha qoladi. Kompaniya sinxronlanmagan bo‘lsa, direktori bo‘lmasa yoki — faqat ICAN_CHECK_OPEN_CONTRACTS_ON_DISCONNECT yoqilgan bo‘lsa (odatda o‘chiq) — unda yoxud filiallarida ICAN bo‘yicha ochiq shartnomalar bo‘lsa: source_type = credit bo‘lgan, completed, full_returned yoki canceled holatida bo‘lmagan sotuvlar — 400 xatosi.
/admin/company/company/{model}/unsync-icanSarlavhalar (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"
}Barcha o‘chirilgan kompaniyalar ID si
O‘chirilgan kompaniyalar ro‘yxatidagi «Hammasini tanlash»: ro‘yxat bilan bir xil filtrlar (filter[...]) bo‘yicha barcha sahifalardagi o‘chirilgan kompaniyalar ID sini data da qaytaradi.
/admin/company/company/disabled-idsSarlavhalar (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 |
|---|---|---|
data | array | Ma'lumotlar |
{
"data": [
2
]
}Tanlangan kompaniyalarni butunlay o‘chirish
«Tanlanganlarni o‘chirish»: selection (ID lar massivi) dagi o‘chirilgan kompaniyalarni qaytarib bo‘lmas tarzda o‘chiradi — purge kabi bittadan, filiallar bosh kompaniyadan oldin. Yoqilgan va begona ID lar o‘tkazib yuboriladi. Javob: deleted — o‘chirilgan ID lar; blocked — yoqilgan yoki tanlanmagan filiallari bor bosh kompaniyalar (filials, is_deleted bilan); failed — rad etish sababi (message) bilan kompaniyalar; remaining — ajratilgan vaqt ichida yetib borilmagan ID lar: ularni qayta so‘rov bilan yuboring.
/admin/company/company/purge-multipleFormadan (
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 |
So‘rov tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
selection | array | Ha | Tanlangan kompaniyalar. Kamida 1 ta element. Maks. 5000 ta element |
selection[] | integer | Ha | Tanlangan kompaniyalar. Takrorlanmasin |
{
"selection": [
1,
2
]
}curl -X DELETE "https://api.wasyt.uz/admin/company/company/purge-multiple" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"selection":[1,2]}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
deleted | array | |
blocked | array | |
failed | array | |
remaining | array |
{
"deleted": [
2,
1
],
"blocked": [],
"failed": [],
"remaining": []
}To‘lov haqida eslatish
Tanlangan kompaniyalar (selection) direktorlariga Wasyt Telegram-botidan to‘lov summasi bilan xabar. Bot ulanmagan kompaniya failed da qaytadi.
/admin/company/company/remind-paymentFormadan (
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 |
So‘rov tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
selection | array | Ha | Tanlangan kompaniyalar. Kamida 1 ta element. Maks. 5000 ta element |
selection[] | integer | Ha | Tanlangan kompaniyalar. Takrorlanmasin |
{
"selection": [
1
]
}curl -X PATCH "https://api.wasyt.uz/admin/company/company/remind-payment" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"selection":[1]}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
reminded | array | |
failed | array | |
remaining | array |
{
"reminded": [
1
],
"failed": [],
"remaining": []
}Kompaniyani butunlay o‘chirish
«Savat»: o‘chirilgan kompaniyani barcha ma’lumotlari bilan qaytarib bo‘lmas tarzda o‘chiradi. {value} — o‘chirilgan kompaniya ID si. Kompaniyada filiallar (hatto o‘chirilganlari) qolgan bo‘lsa — 400 xatosi: avval filiallar, keyin bosh kompaniya o‘chiriladi. ICAN ga ulangan kompaniya (va filiallari) avval ICAN da o‘chiriladi (is_partner_enabled = false); ICAN ishlamasa, o‘chirish bajarilmaydi.
/admin/company/company/{value}/purgeFormadan (
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 |
|---|---|
value | Yozuv ID si (o‘chirilgani ham) |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
message | string | Xabar |
{
"message": "Success"
}Hisob chiqarish
«Hisob»: obuna hamyonidan amount summani yechadi («Xizmatdan foydalanganlik uchun hisob») va block_date kuni soat 00:01 ga bloklashni belgilaydi. Obuna debt holatiga o‘tadi; bloklash sanasigacha kirish saqlanadi. Filial uchun hisob bosh kompaniyaga chiqariladi.
/admin/company/company/{model}/invoiceFormadan (
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 |
So‘rov tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
amount | number | Ha | Summa. Kamida 1 |
block_date | string (date) | Ha | Keyinroq: bugungi kun |
{
"amount": 900000,
"block_date": "2026-11-26"
}curl -X PATCH "https://api.wasyt.uz/admin/company/company/1/invoice" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"amount":900000,"block_date":"2026-11-26"}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
message | string | Xabar |
{
"message": "Success"
}Kompaniyani bloklash
«Blok»: yangi yechimsiz block_date kuni soat 00:01 ga bloklashni belgilaydi; obuna debt holatiga o‘tadi. Kompaniyada qarz bo‘lmasa — 400 xatosi.
/admin/company/company/{model}/blockFormadan (
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 |
So‘rov tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
block_date | string (date) | Ha | Keyinroq: bugungi kun |
{
"block_date": "2026-11-28"
}curl -X PATCH "https://api.wasyt.uz/admin/company/company/1/block" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"block_date":"2026-11-28"}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
message | string | Xabar |
{
"message": "Success"
}Kompaniyani blokdan chiqarish
«Blokdan chiqarish»: kirishni darhol qaytaradi, qarz saqlanib qoladi. Obuna rejalashtirilgan bloklashsiz debt holatiga o‘tadi. Kompaniya bloklanmagan bo‘lsa — 400 xatosi.
/admin/company/company/{model}/unblockFormadan (
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"
}To‘lovni qabul qilish
«To‘lovni qabul qilish»: amount summani naqd pul sifatida obuna hamyoniga kiritadi (comment izohli «Tarif uchun to‘lov» tranzaksiyasi) va holatni qayta hisoblaydi: qarz yopilsa, kompaniya active bo‘ladi.
/admin/company/company/{model}/accept-paymentFormadan (
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 |
So‘rov tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
amount | number | Ha | Summa. Kamida 1 |
comment | string | Ha | Izoh. Maks. 1000 belgi |
document | file | Yo‘q | Hujjat. Formatlar: jpg, jpeg, png, webp, heic, pdf. Maks. 10240 KB |
payment_method | string | Yo‘q | To'lov usuli. Mumkin qiymatlar: qr, card, cash, discount |
{
"amount": 150000,
"comment": "Оплата наличными"
}curl -X PATCH "https://api.wasyt.uz/admin/company/company/1/accept-payment" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"amount":150000,"comment":"Оплата наличными"}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
message | string | Xabar |
{
"message": "Success"
}Xato misoli · 422
{
"message": "Поле Сумма обязательно для заполнения. (и ещё 1 ошибка)",
"errors": {
"amount": [
"Поле Сумма обязательно для заполнения."
],
"comment": [
"Поле Комментарий обязательно для заполнения."
]
}
}To‘lovni kechiktirish
«To‘lovni kechiktirish»: awaiting_payment holatidagi kompaniyaga last_payment_date kuni oxirigacha kirish beradi, qarz saqlanadi. Boshqa holatlar uchun — 400 xatosi.
/admin/company/company/{model}/defer-paymentFormadan (
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 |
So‘rov tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
last_payment_date | string (date) | Ha | Keyinroq: bugungi kun |
Javob
Javob misoli hali testlar tomonidan yozib olinmagan.
Kompaniyalar ro‘yxati
Administratorga ochiq kompaniyalarning sahifali ro‘yxati. «Demo kirish»dagi kompaniyalar va hamkor kompaniyalari (filiallari bilan) yashirin; hamkorlarniki filter[partner_id] bilan ko‘rinadi, filter[is_partner_owned]=1 esa faqat barcha hamkorlarning kompaniyalarini (filiallari bilan) qoldiradi — hamkor tanlanmagan «Hamkor filiallari» bo‘limi; show[]=only-deleted bilan esa barcha o‘chirilganlar ko‘rsatiladi. format=excel (yoki csv) butun filtrlangan ro‘yxat faylini qaytaradi. filter[name_or_company_name] nomi, yuridik nomi, direktor logini va ismi bo‘yicha qidiradi (istalgan tartibda: «Familiya Ism» yoki «Ism Familiya»). filter[state] (active, demo, awaiting_payment, low_activity, blocked) shu holatdagi bosh kompaniyalarni qoldiradi — «Bosh sahifa» kartalaridagidek, demo kompaniyalar ham; sort[]: last_visit_at — uzoq kirmaganlar, checks_count — 7 kunda eng kam chek, -debt — eng katta qarz (filiallar bilan obuna hamyoni). with[]=filials_count har bir qatorga filials_count — uning yoqilgan filiallari sonini qo‘shadi («N ta filial» tugmasi, ular filter[parent_id] orqali ochiladi).
/admin/company/companySarlavhalar (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[parent_id] | Ota-ona — aniq qiymat |
filter[partner_id] | Hamkor — aniq qiymat |
filter[district_id] | Tuman — aniq qiymat |
filter[industry_id] | Faoliyat turlari — aniq qiymat |
filter[inn] | INN — qator qismi bo‘yicha qidiruv |
filter[mfo] | MFO — qator qismi bo‘yicha qidiruv |
filter[field_of_activity] | Faoliyat yo‘nalishi — aniq qiymat |
filter[is_using_new_my_uzcard_auto_payment_by_pinfl] | Yangi MyUzcard PINFL bo'yicha avtomatik yechib olish uchun foydalanish — aniq qiymat |
filter[is_ican_turned_on] | ICAN yoqilgan — aniq qiymat |
sort[] | Saralash, - — kamayish bo‘yicha: id, -id, name, -name |
with[] | Bog‘liq ma’lumotlarni qo‘shish: balance, subscription, parent, parent.subscription, parent.balance, partner, district.region, industry, director, director.role, activity_stats, filials_count, overview_state |
page | Sahifa raqami, 1 dan |
page-size | Sahifadagi yozuvlar soni, ko‘pi bilan 20 |
show[] | Qo‘shimcha hisoblangan ma’lumotlar (metod tavsifiga qarang) |
GET /admin/company/company?show[0]=only-deletedJavob · 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[].parent_id | null | Ota-ona |
data[].partner_id | integer | Hamkor |
data[].district_id | integer | Tuman |
data[].name | string | Nomlanish |
data[].company_name | string | Kompaniya |
data[].logo | object | Logotip |
data[].logo.original | object | |
data[].logo.original.raw | string | |
data[].logo.original.webp | string | |
data[].logo.widen_25 | object | |
data[].logo.widen_25.raw | string | |
data[].logo.widen_25.webp | string | |
data[].logo.widen_100 | object | |
data[].logo.widen_100.raw | string | |
data[].logo.widen_100.webp | string | |
data[].logo.widen_500 | object | |
data[].logo.widen_500.raw | string | |
data[].logo.widen_500.webp | string | |
data[].inn | string | INN |
data[].mfo | string | MFO |
data[].address | string | Manzil |
data[].latitude | null | Kenglik |
data[].longitude | null | Uzunlik |
data[].comment | string | Izoh |
data[].telegram_phone | string | Telegramdagi telefon |
data[].director_full_name | string | Direktorning FISH |
data[].bank | string | Bank |
data[].payment_account | string | To'lov hisob raqami |
data[].agreement_number | string | Shartnoma raqami |
data[].agreement_date | null | |
data[].bonus_entry_period | integer | Bonuslar hisob davri (oylarda) |
data[].abc_segment_a | integer | |
data[].abc_segment_b | integer | |
data[].abc_segment_c | integer | |
data[].is_pos_window_enabled | boolean | |
data[].is_multi_currency_sale | boolean | |
data[].cashbox_shift_settings | object | |
data[].cashbox_shift_settings.is_enabled | boolean | Yoqilgan |
data[].pos_layout_settings | null | |
data[].manual_discount_settings | null | |
data[].is_manual_sale_price | boolean | |
data[].wholesale_settings | null | |
data[].product_settings | null | |
data[].has_bank_payment_type | boolean | |
data[].payment_type_names | null | |
data[].is_ican_turned_on | boolean | ICAN yoqilgan |
data[].created_at | string | Yaratilgan |
data[].updated_at | string | Yangilangan |
data[].is_deleted | boolean | O‘chirilgan |
data[].subscription | object | Tarif |
data[].subscription.billing_period | string | To‘lov davri |
data[].subscription.status | string | Status |
data[].subscription.monthly_payment | integer | |
data[].subscription.filial_monthly_payment | integer | |
data[].subscription.yearly_payment | integer | |
data[].subscription.filial_yearly_payment | integer | |
data[].subscription.price_sms | null | SMS narxi |
data[].subscription.pending_billing_period | null | |
data[].subscription.pending_billing_period_at | null | |
data[].subscription.billing_period_started_at | null | |
data[].subscription.trial_days | null | |
data[].subscription.trial_started_at | null | |
data[].subscription.trial_ends_at | null | Sinov muddati tugashi |
data[].subscription.payment_deferred_until | null | To‘lov kechiktirilgan sana |
data[].subscription.canceled_at | null | Bekor qilish vaqti |
data[].subscription.block_at | null | Bloklash sanasi |
data[].subscription.call_result | null | Qo'ng'iroq natijasi |
data[].subscription.call_result_at | null | |
data[].subscription.call_promised_at | null | |
data[].subscription.created_at | string | Yaratilgan |
data[].subscription.updated_at | string | Yangilangan |
data[].balance | object | Balans |
data[].balance.main | integer | Asosiy |
data[].balance.sms | integer | SMS |
data[].balance.pochta | integer | Pochta |
data[].balance.imei | string | IMEI |
data[].balance.aniq_score | string | |
data[].balance.subscription | integer | Tarif |
data[].billing | object | |
data[].billing.status | string | Status |
data[].billing.balance | integer | Balans |
data[].billing.debt | integer | Qarz |
data[].billing.block_at | null | Bloklash sanasi |
data[].billing.payment_deferred_until | null | To‘lov kechiktirilgan sana |
data[].billing.subscription_total | integer | |
data[].billing.paid | integer | |
data[].billing.remaining | integer |
{
"data": [
{
"id": 1,
"parent_id": null,
"partner_id": 1,
"district_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,
"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:44:11",
"is_deleted": true,
"subscription": {
"billing_period": "monthly",
"status": "canceled",
"monthly_payment": 150000,
"filial_monthly_payment": 99000,
"yearly_payment": 3588000,
"filial_yearly_payment": 1800000,
"price_sms": null,
"pending_billing_period": null,
"pending_billing_period_at": null,
"billing_period_started_at": null,
"trial_days": null,
"trial_started_at": null,
"trial_ends_at": null,
"payment_deferred_until": null,
"canceled_at": null,
"block_at": null,
"call_result": null,
"call_result_at": null,
"call_promised_at": null,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:44:11"
},
"balance": {
"main": 1000,
"sms": 2000,
"pochta": 3000,
"imei": "10000000000.00",
"aniq_score": "10000000000.00",
"subscription": 0
},
"billing": {
"status": "canceled",
"balance": 0,
"debt": 0,
"block_at": null,
"payment_deferred_until": null,
"subscription_total": 249000,
"paid": 0,
"remaining": 0
}
}
],
"links": {
"first": "https://api.wasyt.uz/admin/company/company?page=1",
"last": "https://api.wasyt.uz/admin/company/company?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/admin/company/company",
"per_page": 20,
"to": 1,
"total": 1
}
}Kompaniya kartasi
Administratorga ochiq kompaniyani with[] ni hisobga olgan holda qaytaradi.
/admin/company/company/{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 |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
id | integer | ID |
parent_id | null | Ota-ona |
partner_id | integer | Hamkor |
district_id | integer | Tuman |
name | string | Nomlanish |
company_name | string | Kompaniya |
logo | object | Logotip |
logo.original | object | |
logo.original.raw | string | |
logo.original.webp | string | |
logo.widen_25 | object | |
logo.widen_25.raw | string | |
logo.widen_25.webp | string | |
logo.widen_100 | object | |
logo.widen_100.raw | string | |
logo.widen_100.webp | string | |
logo.widen_500 | object | |
logo.widen_500.raw | string | |
logo.widen_500.webp | string | |
inn | string | INN |
mfo | string | MFO |
address | string | Manzil |
latitude | null | Kenglik |
longitude | null | Uzunlik |
comment | string | Izoh |
telegram_phone | string | Telegramdagi telefon |
director_full_name | string | Direktorning FISH |
bank | string | Bank |
payment_account | string | To'lov hisob raqami |
agreement_number | string | Shartnoma raqami |
agreement_date | null | |
bonus_entry_period | integer | Bonuslar hisob davri (oylarda) |
abc_segment_a | integer | |
abc_segment_b | integer | |
abc_segment_c | integer | |
is_pos_window_enabled | boolean | |
is_multi_currency_sale | boolean | |
cashbox_shift_settings | object | |
cashbox_shift_settings.is_enabled | boolean | Yoqilgan |
pos_layout_settings | null | |
manual_discount_settings | null | |
is_manual_sale_price | boolean | |
wholesale_settings | null | |
product_settings | null | |
has_bank_payment_type | boolean | |
payment_type_names | null | |
is_ican_turned_on | boolean | ICAN yoqilgan |
created_at | string | Yaratilgan |
updated_at | string | Yangilangan |
is_deleted | boolean | O‘chirilgan |
subscription | object | Tarif |
subscription.billing_period | string | To‘lov davri |
subscription.status | string | Status |
subscription.monthly_payment | integer | |
subscription.filial_monthly_payment | integer | |
subscription.yearly_payment | integer | |
subscription.filial_yearly_payment | integer | |
subscription.price_sms | null | SMS narxi |
subscription.pending_billing_period | null | |
subscription.pending_billing_period_at | null | |
subscription.billing_period_started_at | null | |
subscription.trial_days | null | |
subscription.trial_started_at | null | |
subscription.trial_ends_at | null | Sinov muddati tugashi |
subscription.payment_deferred_until | null | To‘lov kechiktirilgan sana |
subscription.canceled_at | null | Bekor qilish vaqti |
subscription.block_at | null | Bloklash sanasi |
subscription.call_result | null | Qo'ng'iroq natijasi |
subscription.call_result_at | null | |
subscription.call_promised_at | null | |
subscription.created_at | string | Yaratilgan |
subscription.updated_at | string | Yangilangan |
balance | object | Balans |
balance.main | integer | Asosiy |
balance.sms | integer | SMS |
balance.pochta | integer | Pochta |
balance.imei | string | IMEI |
balance.aniq_score | string | |
balance.subscription | integer | Tarif |
billing | object | |
billing.status | string | Status |
billing.balance | integer | Balans |
billing.debt | integer | Qarz |
billing.block_at | null | Bloklash sanasi |
billing.payment_deferred_until | null | To‘lov kechiktirilgan sana |
billing.subscription_total | integer | |
billing.paid | integer | |
billing.remaining | integer |
{
"id": 1,
"parent_id": null,
"partner_id": 1,
"district_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,
"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,
"subscription": {
"billing_period": "monthly",
"status": "active",
"monthly_payment": 150000,
"filial_monthly_payment": 99000,
"yearly_payment": 3588000,
"filial_yearly_payment": 1800000,
"price_sms": null,
"pending_billing_period": null,
"pending_billing_period_at": null,
"billing_period_started_at": null,
"trial_days": null,
"trial_started_at": null,
"trial_ends_at": null,
"payment_deferred_until": null,
"canceled_at": null,
"block_at": null,
"call_result": null,
"call_result_at": null,
"call_promised_at": null,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00"
},
"balance": {
"main": 1000,
"sms": 2000,
"pochta": 3000,
"imei": "10000000000.00",
"aniq_score": "10000000000.00",
"subscription": 0
},
"billing": {
"status": "active",
"balance": 0,
"debt": 0,
"block_at": null,
"payment_deferred_until": null,
"subscription_total": 249000,
"paid": 249000,
"remaining": 0
}
}Kompaniya yaratish
Kompaniyani (parent_id berilsa — filialni) direktor (director.*) va bosh kompaniya uchun obuna (subscription.*) bilan birga yaratadi. Ichma-ichlik — ko‘pi bilan 2 daraja. ICAN tarifi va limiti berilmasa, asosiylari olinadi. Yangi kompaniya darhol xabar shablonlari, bosma shakllar va o‘lchov birliklari nusxasini oladi.
/admin/company/companySarlavhalar (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 |
|---|---|---|---|
parent_id | integer | Yo‘q | Ota-ona. Foydalanuvchiga ochiq mavjud yozuv ID si |
partner_id | integer | Yo‘q | Hamkor. Foydalanuvchiga ochiq mavjud yozuv ID si |
name | string | Ha | Nomlanish. Maks. 255 belgi |
company_name | string | Ha | Kompaniya. Maks. 255 belgi |
logo | file | Yo‘q | Logotip. Formatlar: jpg, png. Maks. 2048 KB. Rasm o‘lchamlari: max_width=3840, max_height=2160 |
logo_old_keys | string (JSON) | Ha | |
inn | string | Ha | INN. Maks. 255 belgi |
mfo | string | Yo‘q | MFO. Maks. 255 belgi |
address | string | Ha | Manzil. Maks. 255 belgi |
latitude | number | Yo‘q | Kenglik. -90 dan 90 gacha |
longitude | number | Yo‘q | Uzunlik. -180 dan 180 gacha |
comment | string | Yo‘q | Izoh. Maks. 1000 belgi |
telegram_phone | string | Yo‘q | Telegramdagi telefon. Maks. 255 belgi |
director_full_name | string | Yo‘q | Direktorning FISH. Maks. 255 belgi |
bank | string | Yo‘q | Bank. Maks. 255 belgi |
payment_account | string | Yo‘q | To'lov hisob raqami. Maks. 255 belgi |
agreement_number | string | Ha | Shartnoma raqami. Maks. 255 belgi |
agreement_date | string (date) | Yo‘q | |
atmos_terminal_id | integer | Yo‘q | Atmos Terminalining ID raqami |
uniaccess_auto_payment_credit_overdue_days | integer | Yo‘q | Kamida 1. 1000 dan oshmasin |
district_id | integer | Ha | Tuman. Foydalanuvchiga ochiq mavjud yozuv ID si |
industry_id | integer | Yo‘q | Faoliyat turlari. Foydalanuvchiga ochiq mavjud yozuv ID si |
uniaccess_branch_id | integer | Yo‘q | Uniaccess branch ID. Takrorlanmas qiymat |
field_of_activity | string | Yo‘q | Faoliyat yo‘nalishi. Mumkin qiymatlar: trading, study, finance, service |
vat_percent | number | Yo‘q | QQS (%). Verguldan keyin 2 tagacha raqam. Kamida 0.01. 99.99 dan oshmasin |
is_using_new_my_uzcard_auto_payment_by_pinfl | boolean | Yo‘q | Yangi MyUzcard PINFL bo'yicha avtomatik yechib olish uchun foydalanish |
bonus_entry_period | integer | Yo‘q | Bonuslar hisob davri (oylarda). Kamida 1. 120 dan oshmasin |
director.role_id | integer | Ha | Rol. Foydalanuvchiga ochiq mavjud yozuv ID si |
director.username | string (email) | Ha | Login. Maks. 255 belgi. Takrorlanmas qiymat |
director.phone | string | Ha | Telefon. Format 998xxyyyzzzz |
director.new_password | string | Ha | Yangi parol. Parol (ishonchlilik qoidalari) |
director.new_password_confirmation | string | director.new_password yuborilsa | Yangi parolni tasdiqlash. director.new_password bilan bir xil |
is_last_step | boolean | Yo‘q | true bo‘lishi shart |
{
"parent_id": 1,
"partner_id": 1,
"name": "Company 1-3",
"company_name": "Company 1-3",
"logo_old_keys": "[]",
"inn": "000000005",
"address": "Address 5",
"latitude": 41.3111119,
"longitude": 69.2796589,
"comment": "Comment 5",
"telegram_phone": "998000000025",
"director_full_name": "Director 5",
"agreement_number": "005/2026",
"district_id": 2,
"director": {
"role_id": 2,
"username": "director_5@local.host",
"phone": "998020000005",
"new_password": "***",
"new_password_confirmation": "***"
},
"is_last_step": 1
}curl -X POST "https://api.wasyt.uz/admin/company/company" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"parent_id":1,"partner_id":1,"name":"Company 1-3","company_name":"Company 1-3","logo_old_keys":"[]","inn":"000000005","address":"Address 5","latitude":41.3111119,"longitude":69.2796589,"comment":"Comment 5","telegram_phone":"998000000025","director_full_name":"Director 5","agreement_number":"005/2026","district_id":2,"director":{"role_id":2,"username":"director_5@local.host","phone":"998020000005","new_password":"***","new_password_confirmation":"***"},"is_last_step":1}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
parent_id | integer | Ota-ona |
partner_id | integer | Hamkor |
name | string | Nomlanish |
company_name | string | Kompaniya |
logo | object | Logotip |
logo.original | object | |
logo.original.raw | string | |
logo.original.webp | string | |
logo.widen_25 | object | |
logo.widen_25.raw | string | |
logo.widen_25.webp | string | |
logo.widen_100 | object | |
logo.widen_100.raw | string | |
logo.widen_100.webp | string | |
logo.widen_500 | object | |
logo.widen_500.raw | string | |
logo.widen_500.webp | string | |
inn | string | INN |
address | string | Manzil |
latitude | number | Kenglik |
longitude | number | Uzunlik |
comment | string | Izoh |
telegram_phone | string | Telegramdagi telefon |
director_full_name | string | Direktorning FISH |
agreement_number | string | Shartnoma raqami |
district_id | integer | Tuman |
updated_at | string | Yangilangan |
created_at | string | Yaratilgan |
id | integer | ID |
is_deleted | boolean | O‘chirilgan |
parent | object | Ota yozuv |
parent.id | integer | ID |
parent.parent_id | null | Ota-ona |
parent.partner_id | integer | Hamkor |
parent.district_id | integer | Tuman |
parent.industry_id | integer | Faoliyat turlari |
parent.name | string | Nomlanish |
parent.company_name | string | Kompaniya |
parent.logo | object | Logotip |
parent.logo.original | object | |
parent.logo.original.raw | string | |
parent.logo.original.webp | string | |
parent.logo.widen_25 | object | |
parent.logo.widen_25.raw | string | |
parent.logo.widen_25.webp | string | |
parent.logo.widen_100 | object | |
parent.logo.widen_100.raw | string | |
parent.logo.widen_100.webp | string | |
parent.logo.widen_500 | object | |
parent.logo.widen_500.raw | string | |
parent.logo.widen_500.webp | string | |
parent.inn | string | INN |
parent.mfo | string | MFO |
parent.address | string | Manzil |
parent.latitude | null | Kenglik |
parent.longitude | null | Uzunlik |
parent.comment | string | Izoh |
parent.telegram_phone | string | Telegramdagi telefon |
parent.director_full_name | string | Direktorning FISH |
parent.bank | string | Bank |
parent.payment_account | string | To'lov hisob raqami |
parent.agreement_number | string | Shartnoma raqami |
parent.agreement_date | null | |
parent.atmos_terminal_id | integer | Atmos Terminalining ID raqami |
parent.uniaccess_auto_payment_credit_overdue_days | integer | |
parent.uniaccess_branch_id | integer | Uniaccess branch ID |
parent.field_of_activity | string | Faoliyat yo‘nalishi |
parent.vat_percent | string | QQS (%) |
parent.is_using_new_my_uzcard_auto_payment_by_pinfl | boolean | Yangi MyUzcard PINFL bo'yicha avtomatik yechib olish uchun foydalanish |
parent.bonus_entry_period | integer | Bonuslar hisob davri (oylarda) |
parent.abc_segment_a | integer | |
parent.abc_segment_b | integer | |
parent.abc_segment_c | integer | |
parent.is_pos_window_enabled | boolean | |
parent.is_multi_currency_sale | boolean | |
parent.cashbox_shift_settings | object | |
parent.cashbox_shift_settings.is_enabled | boolean | Yoqilgan |
parent.pos_layout_settings | null | |
parent.manual_discount_settings | null | |
parent.is_manual_sale_price | boolean | |
parent.wholesale_settings | null | |
parent.product_settings | null | |
parent.has_bank_payment_type | boolean | |
parent.payment_type_names | null | |
parent.is_ican_turned_on | boolean | ICAN yoqilgan |
parent.created_at | string | Yaratilgan |
parent.updated_at | string | Yangilangan |
parent.is_deleted | boolean | O‘chirilgan |
parent.subscription | object | Tarif |
parent.subscription.billing_period | string | To‘lov davri |
parent.subscription.status | string | Status |
parent.subscription.monthly_payment | integer | |
parent.subscription.filial_monthly_payment | integer | |
parent.subscription.yearly_payment | integer | |
parent.subscription.filial_yearly_payment | integer | |
parent.subscription.price_sms | null | SMS narxi |
parent.subscription.pending_billing_period | null | |
parent.subscription.pending_billing_period_at | null | |
parent.subscription.billing_period_started_at | null | |
parent.subscription.trial_days | null | |
parent.subscription.trial_started_at | null | |
parent.subscription.trial_ends_at | null | Sinov muddati tugashi |
parent.subscription.payment_deferred_until | null | To‘lov kechiktirilgan sana |
parent.subscription.canceled_at | null | Bekor qilish vaqti |
parent.subscription.block_at | null | Bloklash sanasi |
parent.subscription.call_result | null | Qo'ng'iroq natijasi |
parent.subscription.call_result_at | null | |
parent.subscription.call_promised_at | null | |
parent.subscription.created_at | string | Yaratilgan |
parent.subscription.updated_at | string | Yangilangan |
parent.balance | object | Balans |
parent.balance.main | integer | Asosiy |
parent.balance.sms | integer | SMS |
parent.balance.pochta | integer | Pochta |
parent.balance.imei | string | IMEI |
parent.balance.aniq_score | string | |
parent.balance.subscription | integer | Tarif |
billing | object | |
billing.status | string | Status |
billing.balance | integer | Balans |
{
"parent_id": 1,
"partner_id": 1,
"name": "Company 1-3",
"company_name": "Company 1-3",
"logo": {
"original": {
"raw": "https://api.wasyt.uz/storage/uploads/files/2026-11-25/6b06ca0880dee_bb9a6832-004f-4f20-a1c3-a3e7497d05b1.jpg",
"webp": "https://api.wasyt.uz/storage/thumbs/original/46cb967cbfd503586144170a7e4075f51795607048.webp"
},
"widen_25": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/25/46cb967cbfd503586144170a7e4075f51795607048.jpg",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/25/46cb967cbfd503586144170a7e4075f51795607048.webp"
},
"widen_100": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/100/46cb967cbfd503586144170a7e4075f51795607048.jpg",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/100/46cb967cbfd503586144170a7e4075f51795607048.webp"
},
"widen_500": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/500/46cb967cbfd503586144170a7e4075f51795607048.jpg",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/500/46cb967cbfd503586144170a7e4075f51795607048.webp"
}
},
"inn": "000000005",
"address": "Address 5",
"latitude": 41.3111119,
"longitude": 69.2796589,
"comment": "Comment 5",
"telegram_phone": "998000000025",
"director_full_name": "Director 5",
"agreement_number": "005/2026",
"district_id": 2,
"updated_at": "2026-11-25 16:44:08",
"created_at": "2026-11-25 16:44:08",
"id": 3,
"is_deleted": false,
"parent": {
"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,
"subscription": {
"billing_period": "monthly",
"status": "active",
"monthly_payment": 150000,
"filial_monthly_payment": 99000,
"yearly_payment": 3588000,
"filial_yearly_payment": 1800000,
"price_sms": null,
"pending_billing_period": null,
"pending_billing_period_at": null,
"billing_period_started_at": null,
"trial_days": null,
"trial_started_at": null,
"trial_ends_at": null,
"payment_deferred_until": null,
"canceled_at": null,
"block_at": null,
"call_result": null,
"call_result_at": null,
"call_promised_at": null,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00"
},
"balance": {
"main": 1000,
"sms": 2000,
"pochta": 3000,
"imei": "10000000000.00",
"aniq_score": "10000000000.00",
"subscription": 0
}
},
"billing": {
"status": "active",
"balance": 0,
"debt": 0,
"block_at": null,
"payment_deferred_until": null,
"subscription_total": 99000,
"paid": null,
"remaining": null
}
}Xato misoli · 422
{
"message": "Максимальный уровень вложенности: 2",
"errors": {
"parent_id": [
"Максимальный уровень вложенности: 2"
]
}
}Kompaniyani tahrirlash
Kompaniya kartasi, direktor va obunani yangilaydi. To‘lov davrini (subscription.billing_period) o‘zgartirish keyingi hisob davri boshidan, stavkalar esa darhol qo‘llanadi. Filialda obuna bo‘lmaydi, u uchun subscription.* maydonlari qabul qilinmaydi. parent_id tozalansa, filial oila katalogi bilan birga ajratiladi.
/admin/company/company/{model}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 |
|---|---|---|---|
parent_id | integer | Yo‘q | Ota-ona. Foydalanuvchiga ochiq mavjud yozuv ID si |
partner_id | integer | Yo‘q | Hamkor. Foydalanuvchiga ochiq mavjud yozuv ID si |
name | string | Ha | Nomlanish. Maks. 255 belgi |
company_name | string | Ha | Kompaniya. Maks. 255 belgi |
logo | file | Yo‘q | Logotip. Formatlar: jpg, png. Maks. 2048 KB. Rasm o‘lchamlari: max_width=3840, max_height=2160 |
logo_old_keys | string (JSON) | Ha | |
inn | string | Ha | INN. Maks. 255 belgi |
mfo | string | Yo‘q | MFO. Maks. 255 belgi |
address | string | Ha | Manzil. Maks. 255 belgi |
latitude | number | Yo‘q | Kenglik. -90 dan 90 gacha |
longitude | number | Yo‘q | Uzunlik. -180 dan 180 gacha |
comment | string | Yo‘q | Izoh. Maks. 1000 belgi |
telegram_phone | string | Yo‘q | Telegramdagi telefon. Maks. 255 belgi |
director_full_name | string | Yo‘q | Direktorning FISH. Maks. 255 belgi |
bank | string | Yo‘q | Bank. Maks. 255 belgi |
payment_account | string | Yo‘q | To'lov hisob raqami. Maks. 255 belgi |
agreement_number | string | Ha | Shartnoma raqami. Maks. 255 belgi |
agreement_date | string (date) | Yo‘q | |
atmos_terminal_id | integer | Yo‘q | Atmos Terminalining ID raqami |
uniaccess_auto_payment_credit_overdue_days | integer | Yo‘q | Kamida 1. 1000 dan oshmasin |
district_id | integer | Ha | Tuman. Foydalanuvchiga ochiq mavjud yozuv ID si |
industry_id | integer | Yo‘q | Faoliyat turlari. Foydalanuvchiga ochiq mavjud yozuv ID si |
uniaccess_branch_id | integer | Yo‘q | Uniaccess branch ID. Takrorlanmas qiymat |
field_of_activity | string | Yo‘q | Faoliyat yo‘nalishi. Mumkin qiymatlar: trading, study, finance, service |
vat_percent | number | Yo‘q | QQS (%). Verguldan keyin 2 tagacha raqam. Kamida 0.01. 99.99 dan oshmasin |
is_using_new_my_uzcard_auto_payment_by_pinfl | boolean | Yo‘q | Yangi MyUzcard PINFL bo'yicha avtomatik yechib olish uchun foydalanish |
bonus_entry_period | integer | Yo‘q | Bonuslar hisob davri (oylarda). Kamida 1. 120 dan oshmasin |
subscription.billing_period | string | Ha | To‘lov davri. Mumkin qiymatlar: monthly, yearly |
subscription.monthly_payment | number | Ha | Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin |
subscription.filial_monthly_payment | number | Ha | Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin |
subscription.yearly_payment | number | Ha | Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin |
subscription.filial_yearly_payment | number | Ha | Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin |
subscription.price_sms | number | Yo‘q | SMS narxi. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin |
subscription.trial_days | integer | Yo‘q | Kamida 0. 14 dan oshmasin |
director.role_id | integer | Ha | Rol. Foydalanuvchiga ochiq mavjud yozuv ID si |
director.username | string (email) | Ha | Login. Maks. 255 belgi. Takrorlanmas qiymat |
director.phone | string | Ha | Telefon. Format 998xxyyyzzzz |
director.new_password | string | Yo‘q | Yangi parol. Parol (ishonchlilik qoidalari) |
director.new_password_confirmation | string | director.new_password yuborilsa | Yangi parolni tasdiqlash. director.new_password bilan bir xil |
is_last_step | boolean | Yo‘q | true bo‘lishi shart |
{
"parent_id": null,
"partner_id": 1,
"name": "Company 1",
"company_name": "Company 1",
"logo_old_keys": "[0]",
"inn": "000000001",
"address": "Address 1",
"latitude": 41.3111119,
"longitude": 69.2796589,
"comment": "Comment 1",
"telegram_phone": "998000000021",
"director_full_name": "Director 1",
"agreement_number": "001/2026",
"district_id": 1,
"subscription": {
"billing_period": "monthly",
"monthly_payment": 150000,
"filial_monthly_payment": 99000,
"yearly_payment": 3588000,
"filial_yearly_payment": 1800000,
"trial_days": null
},
"director": {
"role_id": 2,
"username": "director_1@local.host",
"phone": "998020000001",
"new_password": "***",
"new_password_confirmation": "***"
},
"is_last_step": 1
}curl -X PUT "https://api.wasyt.uz/admin/company/company/1" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"partner_id":1,"name":"Company 1","company_name":"Company 1","logo_old_keys":"[0]","inn":"000000001","address":"Address 1","latitude":41.3111119,"longitude":69.2796589,"comment":"Comment 1","telegram_phone":"998000000021","director_full_name":"Director 1","agreement_number":"001/2026","district_id":1,"subscription":{"billing_period":"monthly","monthly_payment":150000,"filial_monthly_payment":99000,"yearly_payment":3588000,"filial_yearly_payment":1800000,"trial_days":null},"director":{"role_id":2,"username":"director_1@local.host","phone":"998020000001","new_password":"***","new_password_confirmation":"***"},"is_last_step":1}'Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
id | integer | ID |
parent_id | null | Ota-ona |
partner_id | integer | Hamkor |
district_id | integer | Tuman |
name | string | Nomlanish |
company_name | string | Kompaniya |
logo | object | Logotip |
logo.original | object | |
logo.original.raw | string | |
logo.original.webp | string | |
logo.widen_25 | object | |
logo.widen_25.raw | string | |
logo.widen_25.webp | string | |
logo.widen_100 | object | |
logo.widen_100.raw | string | |
logo.widen_100.webp | string | |
logo.widen_500 | object | |
logo.widen_500.raw | string | |
logo.widen_500.webp | string | |
inn | string | INN |
mfo | string | MFO |
address | string | Manzil |
latitude | number | Kenglik |
longitude | number | Uzunlik |
comment | string | Izoh |
telegram_phone | string | Telegramdagi telefon |
director_full_name | string | Direktorning FISH |
bank | string | Bank |
payment_account | string | To'lov hisob raqami |
agreement_number | string | Shartnoma raqami |
agreement_date | null | |
bonus_entry_period | integer | Bonuslar hisob davri (oylarda) |
abc_segment_a | integer | |
abc_segment_b | integer | |
abc_segment_c | integer | |
is_pos_window_enabled | boolean | |
is_multi_currency_sale | boolean | |
cashbox_shift_settings | object | |
cashbox_shift_settings.is_enabled | boolean | Yoqilgan |
pos_layout_settings | null | |
manual_discount_settings | null | |
is_manual_sale_price | boolean | |
wholesale_settings | null | |
product_settings | null | |
has_bank_payment_type | boolean | |
payment_type_names | null | |
is_ican_turned_on | boolean | ICAN yoqilgan |
created_at | string | Yaratilgan |
updated_at | string | Yangilangan |
is_deleted | boolean | O‘chirilgan |
subscription | object | Tarif |
subscription.billing_period | string | To‘lov davri |
subscription.status | string | Status |
subscription.monthly_payment | integer | |
subscription.filial_monthly_payment | integer | |
subscription.yearly_payment | integer | |
subscription.filial_yearly_payment | integer | |
subscription.price_sms | null | SMS narxi |
subscription.pending_billing_period | null | |
subscription.pending_billing_period_at | null | |
subscription.billing_period_started_at | null | |
subscription.trial_days | null | |
subscription.trial_started_at | null | |
subscription.trial_ends_at | null | Sinov muddati tugashi |
subscription.payment_deferred_until | null | To‘lov kechiktirilgan sana |
subscription.canceled_at | null | Bekor qilish vaqti |
subscription.block_at | null | Bloklash sanasi |
subscription.call_result | null | Qo'ng'iroq natijasi |
subscription.call_result_at | null | |
subscription.call_promised_at | null | |
subscription.created_at | string | Yaratilgan |
subscription.updated_at | string | Yangilangan |
balance | object | Balans |
balance.main | integer | Asosiy |
balance.sms | integer | SMS |
balance.pochta | integer | Pochta |
balance.imei | string | IMEI |
balance.aniq_score | string | |
balance.subscription | integer | Tarif |
billing | object | |
billing.status | string | Status |
billing.balance | integer | Balans |
billing.debt | integer | Qarz |
billing.block_at | null | Bloklash sanasi |
billing.payment_deferred_until | null | To‘lov kechiktirilgan sana |
billing.subscription_total | integer | |
billing.paid | integer | |
billing.remaining | integer |
{
"id": 1,
"parent_id": null,
"partner_id": 1,
"district_id": 1,
"name": "Company 1",
"company_name": "Company 1",
"logo": {
"original": {
"raw": "https://api.wasyt.uz/storage/uploads/files/2026-11-25/6b06ca18c2047_443fd647-a41a-4c84-8094-9cd6e37aab33.jpg",
"webp": "https://api.wasyt.uz/storage/thumbs/original/a08d36b085d2999eb9d35b56f27ac0f61795607064.webp"
},
"widen_25": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/25/a08d36b085d2999eb9d35b56f27ac0f61795607064.jpg",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/25/a08d36b085d2999eb9d35b56f27ac0f61795607064.webp"
},
"widen_100": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/100/a08d36b085d2999eb9d35b56f27ac0f61795607064.jpg",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/100/a08d36b085d2999eb9d35b56f27ac0f61795607064.webp"
},
"widen_500": {
"raw": "https://api.wasyt.uz/storage/thumbs/widen/500/a08d36b085d2999eb9d35b56f27ac0f61795607064.jpg",
"webp": "https://api.wasyt.uz/storage/thumbs/widen/500/a08d36b085d2999eb9d35b56f27ac0f61795607064.webp"
}
},
"inn": "000000001",
"mfo": "00001",
"address": "Address 1",
"latitude": 41.3111119,
"longitude": 69.2796589,
"comment": "Comment 1",
"telegram_phone": "998000000021",
"director_full_name": "Director 1",
"bank": "Bank 1",
"payment_account": "00000000000000000001",
"agreement_number": "001/2026",
"agreement_date": null,
"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:44:24",
"is_deleted": false,
"subscription": {
"billing_period": "monthly",
"status": "active",
"monthly_payment": 150000,
"filial_monthly_payment": 99000,
"yearly_payment": 3588000,
"filial_yearly_payment": 1800000,
"price_sms": null,
"pending_billing_period": null,
"pending_billing_period_at": null,
"billing_period_started_at": null,
"trial_days": null,
"trial_started_at": null,
"trial_ends_at": null,
"payment_deferred_until": null,
"canceled_at": null,
"block_at": null,
"call_result": null,
"call_result_at": null,
"call_promised_at": null,
"created_at": "2026-11-25 16:42:00",
"updated_at": "2026-11-25 16:42:00"
},
"balance": {
"main": 1000,
"sms": 2000,
"pochta": 3000,
"imei": "10000000000.00",
"aniq_score": "10000000000.00",
"subscription": 0
},
"billing": {
"status": "active",
"balance": 0,
"debt": 0,
"block_at": null,
"payment_deferred_until": null,
"subscription_total": 249000,
"paid": 249000,
"remaining": 0
}
}Xato misoli · 422
{
"message": "Максимальный уровень вложенности: 2",
"errors": {
"parent_id": [
"Максимальный уровень вложенности: 2"
]
}
}Kompaniyani o‘chirish
Kompaniyani filiallari bilan birga yumshoq o‘chiradi (faolsizlantiradi); ma’lumotlar saqlanadi. Alohida filial o‘chirilsa, uning abonent to‘lovi bosh kompaniyaning obuna hamyoniga qaytariladi.
/admin/company/company/{model}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"
}Kompaniyani tiklash
O‘chirilgan kompaniyani filiallari bilan birga qayta yoqadi. Alohida filial tiklansa, uning abonent to‘lovi bosh kompaniyaga qayta hisoblanadi.
/admin/company/company/{value}/restoreFormadan (
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 |
|---|---|
value | Yozuv ID si (o‘chirilgani ham) |
Javob · 200
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
message | string | Xabar |
{
"message": "Success"
}
