Skip to content

Rollar ​

Kompaniya xodimlari rollari: xodimga beriladigan huquqlar (ruxsat etilgan bo‘limlar va amallar) to‘plami. can_view_purchase_price = false — rol tannarx va ustamani null sifatida oladi, kirim va qayta baholash qila olmaydi (403); can_view_profit = false — foyda va marja null keladi. Ikkalasi ham standart bo‘yicha true; direktorga ta’sir qilmaydi.

MetodManzilVazifasi
GET/company/user/role/available-routesMavjud huquqlar
GET/company/user/roleRollar ro‘yxati
GET/company/user/role/{model}Rolni ko‘rish
POST/company/user/roleRol yaratish
PUT/company/user/role/{model}Rolni o‘zgartirish
DELETE/company/user/role/{model}Rolni o‘chirish

Mavjud huquqlar ​

Rolga berilishi mumkin bo‘lgan huquqlar (marshrutlar) daraxti bo‘limlar bo‘yicha guruhlangan. Faqat chaqiruvchining o‘zida bor huquqlarni o‘z ichiga oladi.

GET/company/user/role/available-routes

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
base_routesobject
base_routes.companyobjectKompaniya
base_routes.company.cashboxobjectKassa
base_routes.company.cashbox.accountobjectHisob
base_routes.company.cashbox.account.overviewstring
base_routes.company.cashbox.account.cashboxesstring
base_routes.company.cashbox.account.reasonsstring
base_routes.company.cashbox.account.transferstring
base_routes.company.cashbox.account.conversionstring
base_routes.company.cashbox.account.cancelstring
base_routes.company.cashbox.account.returnstring
base_routes.company.cashbox.account.indexstring
base_routes.company.cashbox.account.createstring
base_routes.company.cashbox.account.updatestring
base_routes.company.cashbox.balance-documentobject
base_routes.company.cashbox.balance-document.cashboxesstring
base_routes.company.cashbox.balance-document.indexstring
base_routes.company.cashbox.balance-document.showstring
base_routes.company.cashbox.balance-document.createstring
base_routes.company.cashbox.cashboxobjectKassa
base_routes.company.cashbox.cashbox.balancesstring
base_routes.company.cashbox.cashbox.purgestring
base_routes.company.cashbox.cashbox.indexstring
base_routes.company.cashbox.cashbox.showstring
base_routes.company.cashbox.cashbox.createstring
base_routes.company.cashbox.cashbox.updatestring
base_routes.company.cashbox.cashbox.deletestring
base_routes.company.cashbox.cashbox.restorestring
base_routes.company.cashbox.collectionobject
base_routes.company.cashbox.collection.not-collected-amountsstring
base_routes.company.cashbox.collection.completestring
base_routes.company.cashbox.collection.cancelstring
base_routes.company.cashbox.collection.indexstring
base_routes.company.cashbox.collection.showstring
base_routes.company.cashbox.collection.createstring
base_routes.company.cashbox.currency-rateobject
base_routes.company.cashbox.currency-rate.show-mainstring
base_routes.company.cashbox.currency-rate.sync-with-mainstring
base_routes.company.cashbox.currency-rate.settingsobjectSozlamalar
base_routes.company.cashbox.currency-rate.indexstring
base_routes.company.cashbox.currency-rate.showstring
base_routes.company.cashbox.currency-rate.updatestring
base_routes.company.cashbox.currency-rate-historyobject
base_routes.company.cashbox.currency-rate-history.indexstring
base_routes.company.cashbox.operationobjectAmaliyot
base_routes.company.cashbox.operation.cashboxesstring
base_routes.company.cashbox.operation.statsstring
base_routes.company.cashbox.operation.reasonsstring
base_routes.company.cashbox.operation.collectionstring
base_routes.company.cashbox.operation.returnstring
base_routes.company.cashbox.operation.cancelstring
base_routes.company.cashbox.operation.indexstring
base_routes.company.cashbox.operation.createstring
base_routes.company.cashbox.transactionobjectTranzaksiya
base_routes.company.cashbox.transaction.cashboxstringKassa
base_routes.company.cashbox.transaction.conversionstring
base_routes.company.cashbox.transaction.completestring
base_routes.company.cashbox.transaction.cancelstring
base_routes.company.cashbox.transaction.indexstring
base_routes.company.cashbox.transaction.showstring
base_routes.company.cashbox.transaction.createstring
base_routes.company.cashbox.transaction-reasonobject
base_routes.company.cashbox.transaction-reason.treestring
base_routes.company.cashbox.transaction-reason.movestring
base_routes.company.cashbox.transaction-reason.mergestring
base_routes.company.cashbox.transaction-reason.forcestring
base_routes.company.cashbox.transaction-reason.indexstring
base_routes.company.cashbox.transaction-reason.showstring
base_routes.company.cashbox.transaction-reason.createstring
base_routes.company.cashbox.transaction-reason.updatestring
base_routes.company.cashbox.transaction-reason.deletestring
base_routes.company.cashbox.transaction-reason.restorestring
base_routes.company.companyobjectKompaniya
base_routes.company.company.companyobjectKompaniya
base_routes.company.company.company.locationstring
base_routes.company.company.company.statstring
base_routes.company.company.company.indexstring
base_routes.company.company.company.showstring
base_routes.company.company.company.updatestring
base_routes.company.company.transactionobjectTranzaksiya
base_routes.company.company.transaction.indexstring
base_routes.company.company.transaction.showstring
base_routes.company.company.notification-settingobject
base_routes.company.company.notification-setting.indexstring
base_routes.company.company.notification-setting.updatestring
base_routes.company.company.notification-setting.client-previewstring
base_routes.company.company.notification-setting.director-botstring
base_routes.company.company.pos-windowobject
base_routes.company.company.pos-window.indexstring
base_routes.company.company.pos-window.updatestring
base_routes.company.company.cashbox-shift-settingobject
base_routes.company.company.cashbox-shift-setting.indexstring
base_routes.company.company.cashbox-shift-setting.updatestring
base_routes.company.company.pos-layout-settingobject
base_routes.company.company.pos-layout-setting.indexstring
base_routes.company.company.pos-layout-setting.updatestring
base_routes.company.company.manual-discount-settingobject
base_routes.company.company.manual-discount-setting.indexstring
base_routes.company.company.manual-discount-setting.updatestring
base_routes.company.company.product-import-settingobject
base_routes.company.company.product-import-setting.indexstring
base_routes.company.company.product-import-setting.updatestring
base_routes.company.company.product-settingobject
base_routes.company.company.product-setting.indexstring
base_routes.company.company.product-setting.updatestring
base_routes.company.company.wholesale-settingobject
base_routes.company.company.wholesale-setting.indexstring
base_routes.company.company.wholesale-setting.updatestring
base_routes.company.company.message-templateobject
base_routes.company.company.message-template.togglestring
base_routes.company.company.message-template.indexstring
base_routes.company.company.message-template.showstring
base_routes.company.company.message-template.createstring
base_routes.company.company.message-template.updatestring
base_routes.company.company.message-template.deletestring
base_routes.company.company.campaignobject
base_routes.company.company.campaign.audiencestring
base_routes.company.company.campaign.sendstring
base_routes.company.company.campaign.cancelstring
base_routes.company.company.campaign.recipientsstring
json
{
    "base_routes": {
        "company": {
            "cashbox": {
                "account": {
                    "overview": "company.cashbox.account.overview",
                    "cashboxes": "company.cashbox.account.cashboxes",
                    "reasons": "company.cashbox.account.reasons",
                    "transfer": "company.cashbox.account.transfer",
                    "conversion": "company.cashbox.account.conversion",
                    "cancel": "company.cashbox.account.cancel",
                    "return": "company.cashbox.account.return",
                    "index": "company.cashbox.account.index",
                    "create": "company.cashbox.account.create",
                    "update": "company.cashbox.account.update"
                },
                "balance-document": {
                    "cashboxes": "company.cashbox.balance-document.cashboxes",
                    "index": "company.cashbox.balance-document.index",
                    "show": "company.cashbox.balance-document.show",
                    "create": "company.cashbox.balance-document.create"
                },
                "cashbox": {
                    "balances": "company.cashbox.cashbox.balances",
                    "purge": "company.cashbox.cashbox.purge",
                    "index": "company.cashbox.cashbox.index",
                    "show": "company.cashbox.cashbox.show",
                    "create": "company.cashbox.cashbox.create",
                    "update": "company.cashbox.cashbox.update",
                    "delete": "company.cashbox.cashbox.delete",
                    "restore": "company.cashbox.cashbox.restore"
                },
                "collection": {
                    "not-collected-amounts": "company.cashbox.collection.not-collected-amounts",
                    "complete": "company.cashbox.collection.complete",
                    "cancel": "company.cashbox.collection.cancel",
                    "index": "company.cashbox.collection.index",
                    "show": "company.cashbox.collection.show",
                    "create": "company.cashbox.collection.create"
                },
                "currency-rate": {
                    "show-main": "company.cashbox.currency-rate.show-main",
                    "sync-with-main": "company.cashbox.currency-rate.sync-with-main",
                    "settings": {
                        "index": "company.cashbox.currency-rate.settings",
                        "update": "company.cashbox.currency-rate.settings.update"
                    },
                    "index": "company.cashbox.currency-rate.index",
                    "show": "company.cashbox.currency-rate.show",
                    "update": "company.cashbox.currency-rate.update"
                },
                "currency-rate-history": {
                    "index": "company.cashbox.currency-rate-history.index"
                },
                "operation": {
                    "cashboxes": "company.cashbox.operation.cashboxes",
                    "stats": "company.cashbox.operation.stats",
                    "reasons": "company.cashbox.operation.reasons",
                    "collection": "company.cashbox.operation.collection",
                    "return": "company.cashbox.operation.return",
                    "cancel": "company.cashbox.operation.cancel",
                    "index": "company.cashbox.operation.index",
                    "create": "company.cashbox.operation.create"
                },
                "transaction": {
                    "cashbox": "company.cashbox.transaction.cashbox",
                    "conversion": "company.cashbox.transaction.conversion",
                    "complete": "company.cashbox.transaction.complete",
                    "cancel": "company.cashbox.transaction.cancel",
                    "index": "company.cashbox.transaction.index",
                    "show": "company.cashbox.transaction.show",
                    "create": "company.cashbox.transaction.create"
                },
                "transaction-reason": {
                    "tree": "company.cashbox.transaction-reason.tree",
                    "move": "company.cashbox.transaction-reason.move",
                    "merge": "company.cashbox.transaction-reason.merge",
                    "force": "company.cashbox.transaction-reason.force",
                    "index": "company.cashbox.transaction-reason.index",
                    "show": "company.cashbox.transaction-reason.show",
                    "create": "company.cashbox.transaction-reason.create",
                    "update": "company.cashbox.transaction-reason.update",
                    "delete": "company.cashbox.transaction-reason.delete",
                    "restore": "company.cashbox.transaction-reason.restore"
                }
            },
            "company": {
                "company": {
                    "location": "company.company.company.location",
                    "stat": "company.company.company.stat",
                    "index": "company.company.company.index",
                    "show": "company.company.company.show",
                    "update": "company.company.company.update"
                },
                "transaction": {
                    "index": "company.company.transaction.index",
                    "show": "company.company.transaction.show"
                },
                "notification-setting": {
                    "index": "company.company.notification-setting.index",
                    "update": "company.company.notification-setting.update",
                    "client-preview": "company.company.notification-setting.client-preview",
                    "director-bot": "company.company.notification-setting.director-bot"
                },
                "pos-window": {
                    "index": "company.company.pos-window.index",
                    "update": "company.company.pos-window.update"
                },
                "cashbox-shift-setting": {
                    "index": "company.company.cashbox-shift-setting.index",
                    "update": "company.company.cashbox-shift-setting.update"
                },
                "pos-layout-setting": {
                    "index": "company.company.pos-layout-setting.index",
                    "update": "company.company.pos-layout-setting.update"
                },
                "manual-discount-setting": {
                    "index": "company.company.manual-discount-setting.index",
                    "update": "company.company.manual-discount-setting.update"
                },
                "product-import-setting": {
                    "index": "company.company.product-import-setting.index",
                    "update": "company.company.product-import-setting.update"
                },
                "product-setting": {
                    "index": "company.company.product-setting.index",
                    "update": "company.company.product-setting.update"
                },
                "wholesale-setting": {
                    "index": "company.company.wholesale-setting.index",
                    "update": "company.company.wholesale-setting.update"
                },
                "message-template": {
                    "toggle": "company.company.message-template.toggle",
                    "index": "company.company.message-template.index",
                    "show": "company.company.message-template.show",
                    "create": "company.company.message-template.create",
                    "update": "company.company.message-template.update",
                    "delete": "company.company.message-template.delete"
                },
                "campaign": {
                    "audience": "company.company.campaign.audience",
                    "send": "company.company.campaign.send",
                    "cancel": "company.company.campaign.cancel",
                    "recipients": "company.company.campaign.recipients",
                    "resend-failed": "company.company.campaign.resend-failed",
                    "index": "company.company.campaign.index",
                    "show": "company.company.campaign.show",
                    "create": "company.company.campaign.create",
                    "update": "company.company.campaign.update",
                    "delete": "company.company.campaign.delete"
                },
                "menu-counters": "company.company.menu-counters",
                "sms": {
                    "index": "company.company.sms.index",
                    "birthdays": "company.company.sms.birthdays",
                    "recent": "company.company.sms.recent",
                    "send": "company.company.sms.send"
                },
                "integration": {
                    "index": "company.company.integration.index",
                    "show": "company.company.integration.show",
                    "update": "company.company.integration.update",
                    "action": "company.company.integration.action"
                }
            },
            "supplier": {
                "supplier": {
                    "start-balance": "company.supplier.supplier.start-balance",
                    "top-products": "company.supplier.supplier.top-products",
                    "index": "company.supplier.supplier.index",
                    "show": "company.supplier.supplier.show",
                    "create": "company.supplier.supplier.create",
                    "update": "company.supplier.supplier.update",
                    "delete": "company.supplier.supplier.delete",
                    "restore": "company.supplier.supplier.restore"
                },
                "transaction": {
                    "refund": "company.supplier.transaction.refund",
                    "index": "company.supplier.transaction.index",
                    "show": "company.supplier.transaction.show"
                },
                "supplier-return": {
                    "stats": "company.supplier.supplier-return.stats",
                    "products": "company.supplier.supplier-return.products",
                    "excel": "company.supplier.supplier-return.excel",
                    "index": "company.supplier.supplier-return.index",
                    "show": "company.supplier.supplier-return.show",
                    "create": "company.supplier.supplier-return.create"
                },
                "balance-document": {
                    "suppliers": "company.supplier.balance-document.suppliers",
                    "download-example": "company.supplier.balance-document.download-example",
                    "import": "company.supplier.balance-document.import",
                    "index": "company.supplier.balance-document.index",
                    "show": "company.supplier.balance-document.show",
                    "create": "company.supplier.balance-document.create",
                    "update": "company.supplier.balance-document.update"
                }
            },
            "user": {
                "client": {
                    "index": "company.user.client.index",
                    "show": "company.user.client.show"
                },
                "employee": {
                    "qr": "company.user.employee.qr",
                    "force": "company.user.employee.force",
                    "auth-as": "company.user.employee.auth-as",
                    "{model}": {
                        "device": {
                            "employee": {
                                "device": {
                                    "index": "company.user.employee.{model}.device.employee.device.index",
                                    "delete-all": "company.user.employee.{model}.device.employee.device.delete-all",
                                    "update": "company.user.employee.{model}.device.employee.device.update",
                                    "delete": "company.user.employee.{model}.device.employee.device.delete"
                                }
                            }
                        }
                    },
                    "notification": {
                        "index": "company.user.employee.notification.index",
                        "preview": "company.user.employee.notification.preview",
                        "show": "company.user.employee.notification.show",
                        "update": "company.user.employee.notification.update",
                        "code": "company.user.employee.notification.code",
                        "unlink": "company.user.employee.notification.unlink"
                    },
                    "index": "company.user.employee.index",
                    "show": "company.user.employee.show",
                    "create": "company.user.employee.create",
                    "update": "company.user.employee.update",
                    "delete": "company.user.employee.delete",
                    "restore": "company.user.employee.restore"
                },
                "role": {
                    "available-routes": "company.user.role.available-routes",
                    "index": "company.user.role.index",
                    "show": "company.user.role.show",
                    "create": "company.user.role.create",
                    "update": "company.user.role.update",
                    "delete": "company.user.role.delete"
                }
            }
        }
    },
    "wasyt_new_routes": {
        "company": {
            "assistant": {
                "chat": {
                    "message": "company.assistant.chat.message",
                    "index": "company.assistant.chat.index",
                    "show": "company.assistant.chat.show",
                    "delete": "company.assistant.chat.delete"
                },
                "ai-report": {
                    "generate": "company.assistant.ai-report.generate",
                    "run": "company.assistant.ai-report.run",
                    "filters": "company.assistant.ai-report.filters",
                    "favorite": "company.assistant.ai-report.favorite",
                    "index": "company.assistant.ai-report.index",
                    "show": "company.assistant.ai-report.show",
                    "create": "company.assistant.ai-report.create",
                    "update": "company.assistant.ai-report.update",
                    "delete": "company.assistant.ai-report.delete"
                }
            },
            "bonus": {
                "accumulation": {
                    "index": "company.bonus.accumulation.index",
                    "show": "company.bonus.accumulation.show",
                    "create": "company.bonus.accumulation.create"
                },
                "entry": {
                    "index": "company.bonus.entry.index",
                    "show": "company.bonus.entry.show"
                },
                "client-setting": {
                    "index": "company.bonus.client-setting.index",
                    "update": "company.bonus.client-setting.update"
                },
                "employee-setting": {
                    "index": "company.bonus.employee-setting.index",
                    "update": "company.bonus.employee-setting.update"
                },
                "product-rule": {
                    "index": "company.bonus.product-rule.index",
                    "show": "company.bonus.product-rule.show",
                    "create": "company.bonus.product-rule.create",
                    "update": "company.bonus.product-rule.update",
                    "delete": "company.bonus.product-rule.delete"
                },
                "promotion": {
                    "product-ids": "company.bonus.promotion.product-ids",
                    "product-card": "company.bonus.promotion.product-card",
                    "code-template": "company.bonus.promotion.code-template",
                    "code-import": "company.bonus.promotion.code-import",
                    "code-export": "company.bonus.promotion.code-export",
                    "promo-list": "company.bonus.promotion.promo-list",
                    "check-code": "company.bonus.promotion.check-code",
                    "calculate": "company.bonus.promotion.calculate",
                    "stop": "company.bonus.promotion.stop",
                    "resume": "company.bonus.promotion.resume",
                    "index": "company.bonus.promotion.index",
                    "show": "company.bonus.promotion.show",
                    "create": "company.bonus.promotion.create",
                    "update": "company.bonus.promotion.update",
                    "delete": "company.bonus.promotion.delete"
                },
                "tariff": {
                    "index": "company.bonus.tariff.index",
                    "update": "company.bonus.tariff.update"
                }
            },
            "client": {
                "client": {
                    "stats": "company.client.client.stats",
                    "download-example": "company.client.client.download-example",
                    "import": "company.client.client.import",
                    "purchases-dynamics": "company.client.client.purchases-dynamics",
                    "purchases": "company.client.client.purchases",
                    "loyalty-history": "company.client.client.loyalty-history",
                    "telegram-link": "company.client.client.telegram-link",
                    "telegram-code": "company.client.client.telegram-code",
                    "telegram-unlink": "company.client.client.telegram-unlink",
                    "index": "company.client.client.index",
                    "show": "company.client.client.show",
                    "create": "company.client.client.create",
                    "update": "company.client.client.update",
                    "delete": "company.client.client.delete",
                    "restore": "company.client.client.restore"
                },
                "source": {
                    "index": "company.client.source.index",
                    "show": "company.client.source.show",
                    "create": "company.client.source.create",
                    "update": "company.client.source.update",
                    "delete": "company.client.source.delete",
                    "restore": "company.client.source.restore"
                },
                "debt": {
                    "stats": "company.client.debt.stats",
                    "debtors": "company.client.debt.debtors",
                    "download-example": "company.client.debt.download-example",
                    "import": "company.client.debt.import",
                    "index": "company.client.debt.index",
                    "show": "company.client.debt.show",
                    "update": "company.client.debt.update"
                },
                "debt-payment": {
                    "stats": "company.client.debt-payment.stats",
                    "detail": "company.client.debt-payment.detail",
                    "refund": "company.client.debt-payment.refund",
                    "index": "company.client.debt-payment.index",
                    "show": "company.client.debt-payment.show",
                    "create": "company.client.debt-payment.create"
                }
            },
            "product": {
                "brand": {
                    "download-example": "company.product.brand.download-example",
                    "import": "company.product.brand.import",
                    "index": "company.product.brand.index",
                    "show": "company.product.brand.show",
                    "create": "company.product.brand.create",
                    "update": "company.product.brand.update",
                    "delete": "company.product.brand.delete",
                    "restore": "company.product.brand.restore"
                },
                "category": {
                    "tree": "company.product.category.tree",
                    "move": "company.product.category.move",
                    "index": "company.product.category.index",
                    "show": "company.product.category.show",
                    "create": "company.product.category.create",
                    "update": "company.product.category.update",
                    "delete": "company.product.category.delete",
                    "restore": "company.product.category.restore"
                },
                "option": {
                    "index": "company.product.option.index",
                    "show": "company.product.option.show",
                    "update": "company.product.option.update"
                },
                "price": {
                    "stats": "company.product.price.stats",
                    "import-template": "company.product.price.import-template",
                    "import": "company.product.price.import",
                    "min-price": "company.product.price.min-price",
                    "index": "company.product.price.index",
                    "show": "company.product.price.show"
                },
                "price-tag": {
                    "index": "company.product.price-tag.index",
                    "show": "company.product.price-tag.show",
                    "create": "company.product.price-tag.create",
                    "update": "company.product.price-tag.update",
                    "delete": "company.product.price-tag.delete",
                    "restore": "company.product.price-tag.restore"
                },
                "product": {
                    "next-value": "company.product.product.next-value",
                    "download-example": "company.product.product.download-example",
                    "import": "company.product.product.import",
                    "free-price": "company.product.product.free-price",
                    "favorite": "company.product.product.favorite",
                    "add-variants": "company.product.product.add-variants",
                    "stocks": "company.product.product.stocks",
                    "index": "company.product.product.index",
                    "show": "company.product.product.show",
                    "create": "company.product.product.create",
                    "update": "company.product.product.update",
                    "delete": "company.product.product.delete",
                    "restore": "company.product.product.restore"
                },
                "bundle": {
                    "index": "company.product.bundle.index",
                    "show": "company.product.bundle.show",
                    "create": "company.product.bundle.create",
                    "update": "company.product.bundle.update",
                    "delete": "company.product.bundle.delete",
                    "restore": "company.product.bundle.restore"
                },
                "imei": {
                    "index": "company.product.imei.index",
                    "show": "company.product.imei.show"
                },
                "service": {
                    "index": "company.product.service.index",
                    "show": "company.product.service.show",
                    "create": "company.product.service.create",
                    "update": "company.product.service.update",
                    "delete": "company.product.service.delete",
                    "restore": "company.product.service.restore"
                },
                "service-unit": {
                    "index": "company.product.service-unit.index",
                    "show": "company.product.service-unit.show",
                    "create": "company.product.service-unit.create",
                    "update": "company.product.service-unit.update",
                    "delete": "company.product.service-unit.delete",
                    "restore": "company.product.service-unit.restore"
                },
                "specification": {
                    "index": "company.product.specification.index",
                    "show": "company.product.specification.show",
                    "create": "company.product.specification.create",
                    "update": "company.product.specification.update",
                    "delete": "company.product.specification.delete",
                    "restore": "company.product.specification.restore"
                },
                "unit": {
                    "index": "company.product.unit.index",
                    "show": "company.product.unit.show",
                    "delete": "company.product.unit.delete",
                    "restore": "company.product.unit.restore"
                }
            },
            "stat": {
                "dashboard": {
                    "common": {
                        "amounts-total": "company.stat.dashboard.common.amounts-total",
                        "cashbox-main-balancies": "company.stat.dashboard.common.cashbox-main-balancies",
                        "cashbox-transactions": "company.stat.dashboard.common.cashbox-transactions",
                        "suppliers-total": "company.stat.dashboard.common.suppliers-total",
                        "top-suppliers": "company.stat.dashboard.common.top-suppliers",
                        "top-trade-sale-products": "company.stat.dashboard.common.top-trade-sale-products",
                        "trade-sale-products-charts": "company.stat.dashboard.common.trade-sale-products-charts"
                    },
                    "common-new": {
                        "average-check": "company.stat.dashboard.common-new.average-check",
                        "branch-payment-methods": "company.stat.dashboard.common-new.branch-payment-methods",
                        "branch-sales": "company.stat.dashboard.common-new.branch-sales",
                        "branch-stock": "company.stat.dashboard.common-new.branch-stock",
                        "clients": "company.stat.dashboard.common-new.clients",
                        "clients-count": "company.stat.dashboard.common-new.clients-count",
                        "companies-by-regions": "company.stat.dashboard.common-new.companies-by-regions",
                        "daily-checks": "company.stat.dashboard.common-new.daily-checks",
                        "debtors": "company.stat.dashboard.common-new.debtors",
                        "debtors-list": "company.stat.dashboard.common-new.debtors-list",
                        "monthly-sales": "company.stat.dashboard.common-new.monthly-sales",
                        "payment-methods": "company.stat.dashboard.common-new.payment-methods",
                        "sellers": "company.stat.dashboard.common-new.sellers",
                        "stock-products-count": "company.stat.dashboard.common-new.stock-products-count",
                        "stock-balances": "company.stat.dashboard.common-new.stock-balances",
                        "top-trade-sale-products": "company.stat.dashboard.common-new.top-trade-sale-products",
                        "top-products": "company.stat.dashboard.common-new.top-products",
                        "top-sellers": "company.stat.dashboard.common-new.top-sellers",
                        "totals": "company.stat.dashboard.common-new.totals",
                        "transactions-summary": "company.stat.dashboard.common-new.transactions-summary",
                        "trade-sales-by-companies": "company.stat.dashboard.common-new.trade-sales-by-companies",
                        "trade-sales-by-time": "company.stat.dashboard.common-new.trade-sales-by-time",
                        "trade-sale-transactions-by-payment-types": "company.stat.dashboard.common-new.trade-sale-transactions-by-payment-types"
                    }
                },
                "report": {
                    "cash-flow": "company.stat.report.cash-flow",
                    "cashiers": "company.stat.report.cashiers",
                    "cashiers-total": "company.stat.report.cashiers-total",
                    "abc": "company.stat.report.abc",
                    "abc-total": "company.stat.report.abc-total",
                    "abc-thresholds": {
                        "index": "company.stat.report.abc-thresholds",
                        "update": "company.stat.report.abc-thresholds.update"
                    },
                    "bonus-tariffs": "company.stat.report.bonus-tariffs",
                    "branch-transactions": "company.stat.report.branch-transactions",
                    "branch-transactions-filters": "company.stat.report.branch-transactions-filters",
                    "branch-transactions-total": "company.stat.report.branch-transactions-total",
                    "branches": "company.stat.report.branches",
                    "branches-total": "company.stat.report.branches-total",
                    "combined-series": "company.stat.report.combined-series",
                    "sale-categories": "company.stat.report.sale-categories",
                    "client-products": "company.stat.report.client-products",
                    "client-products-total": "company.stat.report.client-products-total",
                    "client-purchases": "company.stat.report.client-purchases",
                    "client-purchases-total": "company.stat.report.client-purchases-total",
                    "client-purchases-items": "company.stat.report.client-purchases-items",
                    "clients": "company.stat.report.clients",
                    "clients-total": "company.stat.report.clients-total",
                    "debt-repayments": "company.stat.report.debt-repayments",
                    "debt-repayments-filters": "company.stat.report.debt-repayments-filters",
                    "debt-repayments-total": "company.stat.report.debt-repayments-total",
                    "efficiency": "company.stat.report.efficiency",
                    "installments": "company.stat.report.installments",
                    "installments-filters": "company.stat.report.installments-filters",
                    "installments-total": "company.stat.report.installments-total",
                    "sale-products": "company.stat.report.sale-products",
                    "sales": "company.stat.report.sales",
                    "sales-total": "company.stat.report.sales-total",
                    "stock-balance": "company.stat.report.stock-balance",
                    "stock-balance-total": "company.stat.report.stock-balance-total",
                    "stock-movement": "company.stat.report.stock-movement",
                    "stock-warehouses": "company.stat.report.stock-warehouses",
                    "stock-warehouses-total": "company.stat.report.stock-warehouses-total",
                    "stock-warehouses-products": "company.stat.report.stock-warehouses-products",
                    "supplier-reconciliation": "company.stat.report.supplier-reconciliation",
                    "supplier-imports": "company.stat.report.supplier-imports",
                    "supplier-imports-filters": "company.stat.report.supplier-imports-filters",
                    "supplier-imports-products": "company.stat.report.supplier-imports-products",
                    "supplier-imports-total": "company.stat.report.supplier-imports-total",
                    "supplier-returns": "company.stat.report.supplier-returns",
                    "supplier-returns-filters": "company.stat.report.supplier-returns-filters",
                    "supplier-returns-total": "company.stat.report.supplier-returns-total",
                    "suppliers": "company.stat.report.suppliers",
                    "suppliers-filters": "company.stat.report.suppliers-filters",
                    "suppliers-total": "company.stat.report.suppliers-total",
                    "trade-sale-index-totals": "company.stat.report.trade-sale-index-totals",
                    "trade-sale-print-report": "company.stat.report.trade-sale-print-report",
                    "warehouse-movement": "company.stat.report.warehouse-movement",
                    "warehouse-movement-documents": "company.stat.report.warehouse-movement-documents",
                    "warehouse-movement-products": "company.stat.report.warehouse-movement-products",
                    "writeoffs": "company.stat.report.writeoffs"
                }
            },
            "stock": {
                "product": {
                    "catalog": {
                        "stats": "company.stock.product.catalog.stats",
                        "index": "company.stock.product.catalog.index"
                    },
                    "movement-history": "company.stock.product.movement-history",
                    "index": "company.stock.product.index",
                    "show": "company.stock.product.show"
                },
                "stock": {
                    "stats": "company.stock.stock.stats",
                    "summary": "company.stock.stock.summary",
                    "index": "company.stock.stock.index",
                    "show": "company.stock.stock.show",
                    "create": "company.stock.stock.create",
                    "update": "company.stock.stock.update",
                    "delete": "company.stock.stock.delete",
                    "restore": "company.stock.stock.restore"
                }
            },
            "tariff": {
                "info": "company.tariff.info",
                "pay-card": {
                    "index": "company.tariff.pay-card",
                    "confirm": "company.tariff.pay-card.confirm"
                },
                "pay-qr": "company.tariff.pay-qr",
                "payment-status": "company.tariff.payment-status"
            },
            "trade": {
                "cashbox-shift": {
                    "current": "company.trade.cashbox-shift.current",
                    "stats": "company.trade.cashbox-shift.stats",
                    "expense-reasons": "company.trade.cashbox-shift.expense-reasons",
                    "create-expense-reason": "company.trade.cashbox-shift.create-expense-reason",
                    "close": "company.trade.cashbox-shift.close",
                    "expense": "company.trade.cashbox-shift.expense",
                    "acknowledge-collection-return": "company.trade.cashbox-shift.acknowledge-collection-return",
                    "index": "company.trade.cashbox-shift.index",
                    "show": "company.trade.cashbox-shift.show",
                    "create": "company.trade.cashbox-shift.create"
                },
                "hold": {
                    "cancel": "company.trade.hold.cancel",
                    "add-products": "company.trade.hold.add-products",
                    "update-products": "company.trade.hold.update-products",
                    "index": "company.trade.hold.index",
                    "show": "company.trade.hold.show",
                    "create": "company.trade.hold.create"
                },
                "hold-product": {
                    "index": "company.trade.hold-product.index",
                    "show": "company.trade.hold-product.show"
                },
                "inventory": {
                    "stats": "company.trade.inventory.stats",
                    "categories": "company.trade.inventory.categories",
                    "add-products": "company.trade.inventory.add-products",
                    "remove-products": "company.trade.inventory.remove-products",
                    "comparison-sheet": "company.trade.inventory.comparison-sheet",
                    "product-movement-summary": "company.trade.inventory.product-movement-summary",
                    "complete": "company.trade.inventory.complete",
                    "cancel": "company.trade.inventory.cancel",
                    "index": "company.trade.inventory.index",
                    "show": "company.trade.inventory.show",
                    "create": "company.trade.inventory.create"
                },
                "inventory-product": {
                    "index": "company.trade.inventory-product.index",
                    "show": "company.trade.inventory-product.show",
                    "update": "company.trade.inventory-product.update"
                },
                "purchase": {
                    "complete": "company.trade.purchase.complete",
                    "cancel": "company.trade.purchase.cancel",
                    "products": "company.trade.purchase.products",
                    "index": "company.trade.purchase.index",
                    "show": "company.trade.purchase.show",
                    "create": "company.trade.purchase.create",
                    "update": "company.trade.purchase.update"
                },
                "purchase-product": {
                    "import": "company.trade.purchase-product.import",
                    "full-import": "company.trade.purchase-product.full-import",
                    "ai-import": "company.trade.purchase-product.ai-import",
                    "download-example": "company.trade.purchase-product.download-example",
                    "download-full-example": "company.trade.purchase-product.download-full-example",
                    "index": "company.trade.purchase-product.index",
                    "show": "company.trade.purchase-product.show"
                },
                "recalculation-product": {
                    "index": "company.trade.recalculation-product.index",
                    "show": "company.trade.recalculation-product.show",
                    "create": "company.trade.recalculation-product.create"
                },
                "recalculation-batch": {
                    "stats": "company.trade.recalculation-batch.stats",
                    "index": "company.trade.recalculation-batch.index",
                    "show": "company.trade.recalculation-batch.show",
                    "create": "company.trade.recalculation-batch.create"
                },
                "receipt-template": {
                    "index": "company.trade.receipt-template.index",
                    "show": "company.trade.receipt-template.show",
                    "create": "company.trade.receipt-template.create",
                    "update": "company.trade.receipt-template.update",
                    "delete": "company.trade.receipt-template.delete",
                    "restore": "company.trade.receipt-template.restore"
                },
                "payment-type": {
                    "system-names": "company.trade.payment-type.system-names",
                    "update-system-names": "company.trade.payment-type.update-system-names",
                    "index": "company.trade.payment-type.index",
                    "show": "company.trade.payment-type.show",
                    "create": "company.trade.payment-type.create",
                    "update": "company.trade.payment-type.update",
                    "delete": "company.trade.payment-type.delete",
                    "restore": "company.trade.payment-type.restore"
                },
                "invoice-template": {
                    "index": "company.trade.invoice-template.index",
                    "update": "company.trade.invoice-template.update"
                },
                "sale": {
                    "next-code": "company.trade.sale.next-code",
                    "return": "company.trade.sale.return",
                    "exchange": "company.trade.sale.exchange",
                    "print": "company.trade.sale.print",
                    "invoice": "company.trade.sale.invoice",
                    "check-detail": "company.trade.sale.check-detail",
                    "credit-detail": "company.trade.sale.credit-detail",
                    "index": "company.trade.sale.index",
                    "show": "company.trade.sale.show",
                    "create": "company.trade.sale.create"
                },
                "sale-product": {
                    "index": "company.trade.sale-product.index",
                    "show": "company.trade.sale-product.show"
                },
                "sale-transaction": {
                    "credit-detail": "company.trade.sale-transaction.credit-detail",
                    "index": "company.trade.sale-transaction.index",
                    "show": "company.trade.sale-transaction.show"
                },
                "seller-cart": {
                    "stats": "company.trade.seller-cart.stats",
                    "sales": "company.trade.seller-cart.sales",
                    "sales-stats": "company.trade.seller-cart.sales-stats",
                    "direct-sale-detail": "company.trade.seller-cart.direct-sale-detail",
                    "sale-detail": "company.trade.seller-cart.sale-detail",
                    "queue": "company.trade.seller-cart.queue",
                    "cheque": "company.trade.seller-cart.cheque",
                    "send": "company.trade.seller-cart.send",
                    "cancel": "company.trade.seller-cart.cancel",
                    "index": "company.trade.seller-cart.index",
                    "show": "company.trade.seller-cart.show",
                    "create": "company.trade.seller-cart.create",
                    "update": "company.trade.seller-cart.update",
                    "delete": "company.trade.seller-cart.delete"
                },
                "reservation": {
                    "index": "company.trade.reservation.index",
                    "cancel": "company.trade.reservation.cancel",
                    "detail": "company.trade.reservation.detail"
                },
                "temporary-cart": {
                    "destroy": "company.trade.temporary-cart.destroy",
                    "index": "company.trade.temporary-cart.index",
                    "create": "company.trade.temporary-cart.create"
                },
                "transfer": {
                    "stats": "company.trade.transfer.stats",
                    "price-diff": "company.trade.transfer.price-diff",
                    "download-example": "company.trade.transfer.download-example",
                    "import": "company.trade.transfer.import",
                    "complete": "company.trade.transfer.complete",
                    "cancel": "company.trade.transfer.cancel",
                    "index": "company.trade.transfer.index",
                    "show": "company.trade.transfer.show",
                    "create": "company.trade.transfer.create",
                    "update": "company.trade.transfer.update"
                },
                "transfer-product": {
                    "index": "company.trade.transfer-product.index",
                    "show": "company.trade.transfer-product.show"
                },
                "writeoff": {
                    "stats": "company.trade.writeoff.stats",
                    "complete": "company.trade.writeoff.complete",
                    "cancel": "company.trade.writeoff.cancel",
                    "index": "company.trade.writeoff.index",
                    "show": "company.trade.writeoff.show",
                    "create": "company.trade.writeoff.create",
                    "update": "company.trade.writeoff.update"
                },
                "writeoff-product": {
                    "index": "company.trade.writeoff-product.index",
                    "show": "company.trade.writeoff-product.show"
                }
            }
        }
    }
}

Rollar ro‘yxati ​

Foydalanuvchi kompaniyasi xodimlari rollari, biriktirilgan xodimlar soni (employees_count) bilan.

GET/company/user/role

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

So‘rov parametrlari ​

ParametrTavsif
filter[id]ID — aniq qiymat
filter[creator_id]Yaratuvchi — aniq qiymat
filter[company_id]Kompaniya — aniq qiymat
filter[partner_id]Hamkor — aniq qiymat
filter[type]Turi — bitta qiymat yoki ro‘yxat filter[type][]
filter[name]Nomlanish — qator qismi bo‘yicha qidiruv
sort[]Saralash, - — kamayish bo‘yicha: id, -id, name, -name
with[]Bog‘liq ma’lumotlarni qo‘shish: creator.profile, company, partner
pageSahifa raqami, 1 dan
page-sizeSahifadagi yozuvlar soni, ko‘pi bilan 20

Javob · 200 ​

Sahifalangan javob: yozuvlar data[] ichida, sahifalash links va meta da.

Javob maydonlari
MaydonTuriTavsif
dataobject[]Ma'lumotlar
data[].idintegerID
data[].creator_idintegerYaratuvchi
data[].company_idintegerKompaniya
data[].partner_idnullHamkor
data[].typestringTuri
data[].namestringNomlanish
data[].descriptionstringTavsif
data[].wasyt_new_routesarray
data[].can_apply_sale_discountbooleanToʻgʻridan-toʻgʻri sotuvda chegirmaga ruxsat berish
data[].can_use_free_pricebooleanErkin narxda sotishga ruxsat berish
data[].can_view_purchase_pricebooleanTannarx va ustamani koʻrish
data[].can_view_profitbooleanFoyda va marjani koʻrish
data[].disabled_permissionsarrayRolning oʻchirilgan huquqlari
data[].created_atstringYaratilgan
data[].updated_atstringYangilangan
data[].employees_countinteger
json
{
    "data": [
        {
            "id": 4,
            "creator_id": 2,
            "company_id": 1,
            "partner_id": null,
            "type": "employee",
            "name": "Employee 1",
            "description": "Description 3-1",
            "wasyt_new_routes": [
                "company.assistant.chat.message",
                "company.assistant.chat.index"
            ],
            "can_apply_sale_discount": true,
            "can_use_free_price": true,
            "can_view_purchase_price": true,
            "can_view_profit": true,
            "disabled_permissions": [],
            "created_at": "2026-11-25 16:42:00",
            "updated_at": "2026-11-25 16:42:00",
            "employees_count": 4
        }
    ],
    "links": {
        "first": "https://api.wasyt.uz/company/user/role?page=1",
        "last": "https://api.wasyt.uz/company/user/role?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [],
        "path": "https://api.wasyt.uz/company/user/role",
        "per_page": 20,
        "to": 1,
        "total": 1
    }
}

Rolni ko‘rish ​

wasyt_new_routes huquqlari ro‘yxati bilan bitta rol.

GET/company/user/role/{model}

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Yo‘l parametrlari ​

ParametrTavsif
modelYozuv ID si

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
base_routesobject
base_routes.companyobjectKompaniya
base_routes.company.cashboxobjectKassa
base_routes.company.cashbox.accountobjectHisob
base_routes.company.cashbox.account.overviewstring
base_routes.company.cashbox.account.cashboxesstring
base_routes.company.cashbox.account.reasonsstring
base_routes.company.cashbox.account.transferstring
base_routes.company.cashbox.account.conversionstring
base_routes.company.cashbox.account.cancelstring
base_routes.company.cashbox.account.returnstring
base_routes.company.cashbox.account.indexstring
base_routes.company.cashbox.account.createstring
base_routes.company.cashbox.account.updatestring
base_routes.company.cashbox.balance-documentobject
base_routes.company.cashbox.balance-document.cashboxesstring
base_routes.company.cashbox.balance-document.indexstring
base_routes.company.cashbox.balance-document.showstring
base_routes.company.cashbox.balance-document.createstring
base_routes.company.cashbox.cashboxobjectKassa
base_routes.company.cashbox.cashbox.balancesstring
base_routes.company.cashbox.cashbox.purgestring
base_routes.company.cashbox.cashbox.indexstring
base_routes.company.cashbox.cashbox.showstring
base_routes.company.cashbox.cashbox.createstring
base_routes.company.cashbox.cashbox.updatestring
base_routes.company.cashbox.cashbox.deletestring
base_routes.company.cashbox.cashbox.restorestring
base_routes.company.cashbox.collectionobject
base_routes.company.cashbox.collection.not-collected-amountsstring
base_routes.company.cashbox.collection.completestring
base_routes.company.cashbox.collection.cancelstring
base_routes.company.cashbox.collection.indexstring
base_routes.company.cashbox.collection.showstring
base_routes.company.cashbox.collection.createstring
base_routes.company.cashbox.currency-rateobject
base_routes.company.cashbox.currency-rate.show-mainstring
base_routes.company.cashbox.currency-rate.sync-with-mainstring
base_routes.company.cashbox.currency-rate.settingsobjectSozlamalar
base_routes.company.cashbox.currency-rate.indexstring
base_routes.company.cashbox.currency-rate.showstring
base_routes.company.cashbox.currency-rate.updatestring
base_routes.company.cashbox.currency-rate-historyobject
base_routes.company.cashbox.currency-rate-history.indexstring
base_routes.company.cashbox.operationobjectAmaliyot
base_routes.company.cashbox.operation.cashboxesstring
base_routes.company.cashbox.operation.statsstring
base_routes.company.cashbox.operation.reasonsstring
base_routes.company.cashbox.operation.collectionstring
base_routes.company.cashbox.operation.returnstring
base_routes.company.cashbox.operation.cancelstring
base_routes.company.cashbox.operation.indexstring
base_routes.company.cashbox.operation.createstring
base_routes.company.cashbox.transactionobjectTranzaksiya
base_routes.company.cashbox.transaction.cashboxstringKassa
base_routes.company.cashbox.transaction.conversionstring
base_routes.company.cashbox.transaction.completestring
base_routes.company.cashbox.transaction.cancelstring
base_routes.company.cashbox.transaction.indexstring
base_routes.company.cashbox.transaction.showstring
base_routes.company.cashbox.transaction.createstring
base_routes.company.cashbox.transaction-reasonobject
base_routes.company.cashbox.transaction-reason.treestring
base_routes.company.cashbox.transaction-reason.movestring
base_routes.company.cashbox.transaction-reason.mergestring
base_routes.company.cashbox.transaction-reason.forcestring
base_routes.company.cashbox.transaction-reason.indexstring
base_routes.company.cashbox.transaction-reason.showstring
base_routes.company.cashbox.transaction-reason.createstring
base_routes.company.cashbox.transaction-reason.updatestring
base_routes.company.cashbox.transaction-reason.deletestring
base_routes.company.cashbox.transaction-reason.restorestring
base_routes.company.companyobjectKompaniya
base_routes.company.company.companyobjectKompaniya
base_routes.company.company.company.locationstring
base_routes.company.company.company.statstring
base_routes.company.company.company.indexstring
base_routes.company.company.company.showstring
base_routes.company.company.company.updatestring
base_routes.company.company.transactionobjectTranzaksiya
base_routes.company.company.transaction.indexstring
base_routes.company.company.transaction.showstring
base_routes.company.company.notification-settingobject
base_routes.company.company.notification-setting.indexstring
base_routes.company.company.notification-setting.updatestring
base_routes.company.company.notification-setting.client-previewstring
base_routes.company.company.notification-setting.director-botstring
base_routes.company.company.pos-windowobject
base_routes.company.company.pos-window.indexstring
base_routes.company.company.pos-window.updatestring
base_routes.company.company.cashbox-shift-settingobject
base_routes.company.company.cashbox-shift-setting.indexstring
base_routes.company.company.cashbox-shift-setting.updatestring
base_routes.company.company.pos-layout-settingobject
base_routes.company.company.pos-layout-setting.indexstring
base_routes.company.company.pos-layout-setting.updatestring
base_routes.company.company.manual-discount-settingobject
base_routes.company.company.manual-discount-setting.indexstring
base_routes.company.company.manual-discount-setting.updatestring
base_routes.company.company.product-import-settingobject
base_routes.company.company.product-import-setting.indexstring
base_routes.company.company.product-import-setting.updatestring
base_routes.company.company.product-settingobject
base_routes.company.company.product-setting.indexstring
base_routes.company.company.product-setting.updatestring
base_routes.company.company.wholesale-settingobject
base_routes.company.company.wholesale-setting.indexstring
base_routes.company.company.wholesale-setting.updatestring
base_routes.company.company.message-templateobject
base_routes.company.company.message-template.togglestring
base_routes.company.company.message-template.indexstring
base_routes.company.company.message-template.showstring
base_routes.company.company.message-template.createstring
base_routes.company.company.message-template.updatestring
base_routes.company.company.message-template.deletestring
base_routes.company.company.campaignobject
base_routes.company.company.campaign.audiencestring
base_routes.company.company.campaign.sendstring
base_routes.company.company.campaign.cancelstring
base_routes.company.company.campaign.recipientsstring
json
{
    "base_routes": {
        "company": {
            "cashbox": {
                "account": {
                    "overview": "company.cashbox.account.overview",
                    "cashboxes": "company.cashbox.account.cashboxes",
                    "reasons": "company.cashbox.account.reasons",
                    "transfer": "company.cashbox.account.transfer",
                    "conversion": "company.cashbox.account.conversion",
                    "cancel": "company.cashbox.account.cancel",
                    "return": "company.cashbox.account.return",
                    "index": "company.cashbox.account.index",
                    "create": "company.cashbox.account.create",
                    "update": "company.cashbox.account.update"
                },
                "balance-document": {
                    "cashboxes": "company.cashbox.balance-document.cashboxes",
                    "index": "company.cashbox.balance-document.index",
                    "show": "company.cashbox.balance-document.show",
                    "create": "company.cashbox.balance-document.create"
                },
                "cashbox": {
                    "balances": "company.cashbox.cashbox.balances",
                    "purge": "company.cashbox.cashbox.purge",
                    "index": "company.cashbox.cashbox.index",
                    "show": "company.cashbox.cashbox.show",
                    "create": "company.cashbox.cashbox.create",
                    "update": "company.cashbox.cashbox.update",
                    "delete": "company.cashbox.cashbox.delete",
                    "restore": "company.cashbox.cashbox.restore"
                },
                "collection": {
                    "not-collected-amounts": "company.cashbox.collection.not-collected-amounts",
                    "complete": "company.cashbox.collection.complete",
                    "cancel": "company.cashbox.collection.cancel",
                    "index": "company.cashbox.collection.index",
                    "show": "company.cashbox.collection.show",
                    "create": "company.cashbox.collection.create"
                },
                "currency-rate": {
                    "show-main": "company.cashbox.currency-rate.show-main",
                    "sync-with-main": "company.cashbox.currency-rate.sync-with-main",
                    "settings": {
                        "index": "company.cashbox.currency-rate.settings",
                        "update": "company.cashbox.currency-rate.settings.update"
                    },
                    "index": "company.cashbox.currency-rate.index",
                    "show": "company.cashbox.currency-rate.show",
                    "update": "company.cashbox.currency-rate.update"
                },
                "currency-rate-history": {
                    "index": "company.cashbox.currency-rate-history.index"
                },
                "operation": {
                    "cashboxes": "company.cashbox.operation.cashboxes",
                    "stats": "company.cashbox.operation.stats",
                    "reasons": "company.cashbox.operation.reasons",
                    "collection": "company.cashbox.operation.collection",
                    "return": "company.cashbox.operation.return",
                    "cancel": "company.cashbox.operation.cancel",
                    "index": "company.cashbox.operation.index",
                    "create": "company.cashbox.operation.create"
                },
                "transaction": {
                    "cashbox": "company.cashbox.transaction.cashbox",
                    "conversion": "company.cashbox.transaction.conversion",
                    "complete": "company.cashbox.transaction.complete",
                    "cancel": "company.cashbox.transaction.cancel",
                    "index": "company.cashbox.transaction.index",
                    "show": "company.cashbox.transaction.show",
                    "create": "company.cashbox.transaction.create"
                },
                "transaction-reason": {
                    "tree": "company.cashbox.transaction-reason.tree",
                    "move": "company.cashbox.transaction-reason.move",
                    "merge": "company.cashbox.transaction-reason.merge",
                    "force": "company.cashbox.transaction-reason.force",
                    "index": "company.cashbox.transaction-reason.index",
                    "show": "company.cashbox.transaction-reason.show",
                    "create": "company.cashbox.transaction-reason.create",
                    "update": "company.cashbox.transaction-reason.update",
                    "delete": "company.cashbox.transaction-reason.delete",
                    "restore": "company.cashbox.transaction-reason.restore"
                }
            },
            "company": {
                "company": {
                    "location": "company.company.company.location",
                    "stat": "company.company.company.stat",
                    "index": "company.company.company.index",
                    "show": "company.company.company.show",
                    "update": "company.company.company.update"
                },
                "transaction": {
                    "index": "company.company.transaction.index",
                    "show": "company.company.transaction.show"
                },
                "notification-setting": {
                    "index": "company.company.notification-setting.index",
                    "update": "company.company.notification-setting.update",
                    "client-preview": "company.company.notification-setting.client-preview",
                    "director-bot": "company.company.notification-setting.director-bot"
                },
                "pos-window": {
                    "index": "company.company.pos-window.index",
                    "update": "company.company.pos-window.update"
                },
                "cashbox-shift-setting": {
                    "index": "company.company.cashbox-shift-setting.index",
                    "update": "company.company.cashbox-shift-setting.update"
                },
                "pos-layout-setting": {
                    "index": "company.company.pos-layout-setting.index",
                    "update": "company.company.pos-layout-setting.update"
                },
                "manual-discount-setting": {
                    "index": "company.company.manual-discount-setting.index",
                    "update": "company.company.manual-discount-setting.update"
                },
                "product-import-setting": {
                    "index": "company.company.product-import-setting.index",
                    "update": "company.company.product-import-setting.update"
                },
                "product-setting": {
                    "index": "company.company.product-setting.index",
                    "update": "company.company.product-setting.update"
                },
                "wholesale-setting": {
                    "index": "company.company.wholesale-setting.index",
                    "update": "company.company.wholesale-setting.update"
                },
                "message-template": {
                    "toggle": "company.company.message-template.toggle",
                    "index": "company.company.message-template.index",
                    "show": "company.company.message-template.show",
                    "create": "company.company.message-template.create",
                    "update": "company.company.message-template.update",
                    "delete": "company.company.message-template.delete"
                },
                "campaign": {
                    "audience": "company.company.campaign.audience",
                    "send": "company.company.campaign.send",
                    "cancel": "company.company.campaign.cancel",
                    "recipients": "company.company.campaign.recipients",
                    "resend-failed": "company.company.campaign.resend-failed",
                    "index": "company.company.campaign.index",
                    "show": "company.company.campaign.show",
                    "create": "company.company.campaign.create",
                    "update": "company.company.campaign.update",
                    "delete": "company.company.campaign.delete"
                },
                "menu-counters": "company.company.menu-counters",
                "sms": {
                    "index": "company.company.sms.index",
                    "birthdays": "company.company.sms.birthdays",
                    "recent": "company.company.sms.recent",
                    "send": "company.company.sms.send"
                },
                "integration": {
                    "index": "company.company.integration.index",
                    "show": "company.company.integration.show",
                    "update": "company.company.integration.update",
                    "action": "company.company.integration.action"
                }
            },
            "supplier": {
                "supplier": {
                    "start-balance": "company.supplier.supplier.start-balance",
                    "top-products": "company.supplier.supplier.top-products",
                    "index": "company.supplier.supplier.index",
                    "show": "company.supplier.supplier.show",
                    "create": "company.supplier.supplier.create",
                    "update": "company.supplier.supplier.update",
                    "delete": "company.supplier.supplier.delete",
                    "restore": "company.supplier.supplier.restore"
                },
                "transaction": {
                    "refund": "company.supplier.transaction.refund",
                    "index": "company.supplier.transaction.index",
                    "show": "company.supplier.transaction.show"
                },
                "supplier-return": {
                    "stats": "company.supplier.supplier-return.stats",
                    "products": "company.supplier.supplier-return.products",
                    "excel": "company.supplier.supplier-return.excel",
                    "index": "company.supplier.supplier-return.index",
                    "show": "company.supplier.supplier-return.show",
                    "create": "company.supplier.supplier-return.create"
                },
                "balance-document": {
                    "suppliers": "company.supplier.balance-document.suppliers",
                    "download-example": "company.supplier.balance-document.download-example",
                    "import": "company.supplier.balance-document.import",
                    "index": "company.supplier.balance-document.index",
                    "show": "company.supplier.balance-document.show",
                    "create": "company.supplier.balance-document.create",
                    "update": "company.supplier.balance-document.update"
                }
            },
            "user": {
                "client": {
                    "index": "company.user.client.index",
                    "show": "company.user.client.show"
                },
                "employee": {
                    "qr": "company.user.employee.qr",
                    "force": "company.user.employee.force",
                    "auth-as": "company.user.employee.auth-as",
                    "{model}": {
                        "device": {
                            "employee": {
                                "device": {
                                    "index": "company.user.employee.{model}.device.employee.device.index",
                                    "delete-all": "company.user.employee.{model}.device.employee.device.delete-all",
                                    "update": "company.user.employee.{model}.device.employee.device.update",
                                    "delete": "company.user.employee.{model}.device.employee.device.delete"
                                }
                            }
                        }
                    },
                    "notification": {
                        "index": "company.user.employee.notification.index",
                        "preview": "company.user.employee.notification.preview",
                        "show": "company.user.employee.notification.show",
                        "update": "company.user.employee.notification.update",
                        "code": "company.user.employee.notification.code",
                        "unlink": "company.user.employee.notification.unlink"
                    },
                    "index": "company.user.employee.index",
                    "show": "company.user.employee.show",
                    "create": "company.user.employee.create",
                    "update": "company.user.employee.update",
                    "delete": "company.user.employee.delete",
                    "restore": "company.user.employee.restore"
                },
                "role": {
                    "available-routes": "company.user.role.available-routes",
                    "index": "company.user.role.index",
                    "show": "company.user.role.show",
                    "create": "company.user.role.create",
                    "update": "company.user.role.update",
                    "delete": "company.user.role.delete"
                }
            }
        }
    },
    "wasyt_new_routes": {
        "company": {
            "assistant": {
                "chat": {
                    "message": "company.assistant.chat.message",
                    "index": "company.assistant.chat.index",
                    "show": "company.assistant.chat.show",
                    "delete": "company.assistant.chat.delete"
                },
                "ai-report": {
                    "generate": "company.assistant.ai-report.generate",
                    "run": "company.assistant.ai-report.run",
                    "filters": "company.assistant.ai-report.filters",
                    "favorite": "company.assistant.ai-report.favorite",
                    "index": "company.assistant.ai-report.index",
                    "show": "company.assistant.ai-report.show",
                    "create": "company.assistant.ai-report.create",
                    "update": "company.assistant.ai-report.update",
                    "delete": "company.assistant.ai-report.delete"
                }
            },
            "bonus": {
                "accumulation": {
                    "index": "company.bonus.accumulation.index",
                    "show": "company.bonus.accumulation.show",
                    "create": "company.bonus.accumulation.create"
                },
                "entry": {
                    "index": "company.bonus.entry.index",
                    "show": "company.bonus.entry.show"
                },
                "client-setting": {
                    "index": "company.bonus.client-setting.index",
                    "update": "company.bonus.client-setting.update"
                },
                "employee-setting": {
                    "index": "company.bonus.employee-setting.index",
                    "update": "company.bonus.employee-setting.update"
                },
                "product-rule": {
                    "index": "company.bonus.product-rule.index",
                    "show": "company.bonus.product-rule.show",
                    "create": "company.bonus.product-rule.create",
                    "update": "company.bonus.product-rule.update",
                    "delete": "company.bonus.product-rule.delete"
                },
                "promotion": {
                    "product-ids": "company.bonus.promotion.product-ids",
                    "product-card": "company.bonus.promotion.product-card",
                    "code-template": "company.bonus.promotion.code-template",
                    "code-import": "company.bonus.promotion.code-import",
                    "code-export": "company.bonus.promotion.code-export",
                    "promo-list": "company.bonus.promotion.promo-list",
                    "check-code": "company.bonus.promotion.check-code",
                    "calculate": "company.bonus.promotion.calculate",
                    "stop": "company.bonus.promotion.stop",
                    "resume": "company.bonus.promotion.resume",
                    "index": "company.bonus.promotion.index",
                    "show": "company.bonus.promotion.show",
                    "create": "company.bonus.promotion.create",
                    "update": "company.bonus.promotion.update",
                    "delete": "company.bonus.promotion.delete"
                },
                "tariff": {
                    "index": "company.bonus.tariff.index",
                    "update": "company.bonus.tariff.update"
                }
            },
            "client": {
                "client": {
                    "stats": "company.client.client.stats",
                    "download-example": "company.client.client.download-example",
                    "import": "company.client.client.import",
                    "purchases-dynamics": "company.client.client.purchases-dynamics",
                    "purchases": "company.client.client.purchases",
                    "loyalty-history": "company.client.client.loyalty-history",
                    "telegram-link": "company.client.client.telegram-link",
                    "telegram-code": "company.client.client.telegram-code",
                    "telegram-unlink": "company.client.client.telegram-unlink",
                    "index": "company.client.client.index",
                    "show": "company.client.client.show",
                    "create": "company.client.client.create",
                    "update": "company.client.client.update",
                    "delete": "company.client.client.delete",
                    "restore": "company.client.client.restore"
                },
                "source": {
                    "index": "company.client.source.index",
                    "show": "company.client.source.show",
                    "create": "company.client.source.create",
                    "update": "company.client.source.update",
                    "delete": "company.client.source.delete",
                    "restore": "company.client.source.restore"
                },
                "debt": {
                    "stats": "company.client.debt.stats",
                    "debtors": "company.client.debt.debtors",
                    "download-example": "company.client.debt.download-example",
                    "import": "company.client.debt.import",
                    "index": "company.client.debt.index",
                    "show": "company.client.debt.show",
                    "update": "company.client.debt.update"
                },
                "debt-payment": {
                    "stats": "company.client.debt-payment.stats",
                    "detail": "company.client.debt-payment.detail",
                    "refund": "company.client.debt-payment.refund",
                    "index": "company.client.debt-payment.index",
                    "show": "company.client.debt-payment.show",
                    "create": "company.client.debt-payment.create"
                }
            },
            "product": {
                "brand": {
                    "download-example": "company.product.brand.download-example",
                    "import": "company.product.brand.import",
                    "index": "company.product.brand.index",
                    "show": "company.product.brand.show",
                    "create": "company.product.brand.create",
                    "update": "company.product.brand.update",
                    "delete": "company.product.brand.delete",
                    "restore": "company.product.brand.restore"
                },
                "category": {
                    "tree": "company.product.category.tree",
                    "move": "company.product.category.move",
                    "index": "company.product.category.index",
                    "show": "company.product.category.show",
                    "create": "company.product.category.create",
                    "update": "company.product.category.update",
                    "delete": "company.product.category.delete",
                    "restore": "company.product.category.restore"
                },
                "option": {
                    "index": "company.product.option.index",
                    "show": "company.product.option.show",
                    "update": "company.product.option.update"
                },
                "price": {
                    "stats": "company.product.price.stats",
                    "import-template": "company.product.price.import-template",
                    "import": "company.product.price.import",
                    "min-price": "company.product.price.min-price",
                    "index": "company.product.price.index",
                    "show": "company.product.price.show"
                },
                "price-tag": {
                    "index": "company.product.price-tag.index",
                    "show": "company.product.price-tag.show",
                    "create": "company.product.price-tag.create",
                    "update": "company.product.price-tag.update",
                    "delete": "company.product.price-tag.delete",
                    "restore": "company.product.price-tag.restore"
                },
                "product": {
                    "next-value": "company.product.product.next-value",
                    "download-example": "company.product.product.download-example",
                    "import": "company.product.product.import",
                    "free-price": "company.product.product.free-price",
                    "favorite": "company.product.product.favorite",
                    "add-variants": "company.product.product.add-variants",
                    "stocks": "company.product.product.stocks",
                    "index": "company.product.product.index",
                    "show": "company.product.product.show",
                    "create": "company.product.product.create",
                    "update": "company.product.product.update",
                    "delete": "company.product.product.delete",
                    "restore": "company.product.product.restore"
                },
                "bundle": {
                    "index": "company.product.bundle.index",
                    "show": "company.product.bundle.show",
                    "create": "company.product.bundle.create",
                    "update": "company.product.bundle.update",
                    "delete": "company.product.bundle.delete",
                    "restore": "company.product.bundle.restore"
                },
                "imei": {
                    "index": "company.product.imei.index",
                    "show": "company.product.imei.show"
                },
                "service": {
                    "index": "company.product.service.index",
                    "show": "company.product.service.show",
                    "create": "company.product.service.create",
                    "update": "company.product.service.update",
                    "delete": "company.product.service.delete",
                    "restore": "company.product.service.restore"
                },
                "service-unit": {
                    "index": "company.product.service-unit.index",
                    "show": "company.product.service-unit.show",
                    "create": "company.product.service-unit.create",
                    "update": "company.product.service-unit.update",
                    "delete": "company.product.service-unit.delete",
                    "restore": "company.product.service-unit.restore"
                },
                "specification": {
                    "index": "company.product.specification.index",
                    "show": "company.product.specification.show",
                    "create": "company.product.specification.create",
                    "update": "company.product.specification.update",
                    "delete": "company.product.specification.delete",
                    "restore": "company.product.specification.restore"
                },
                "unit": {
                    "index": "company.product.unit.index",
                    "show": "company.product.unit.show",
                    "delete": "company.product.unit.delete",
                    "restore": "company.product.unit.restore"
                }
            },
            "stat": {
                "dashboard": {
                    "common": {
                        "amounts-total": "company.stat.dashboard.common.amounts-total",
                        "cashbox-main-balancies": "company.stat.dashboard.common.cashbox-main-balancies",
                        "cashbox-transactions": "company.stat.dashboard.common.cashbox-transactions",
                        "suppliers-total": "company.stat.dashboard.common.suppliers-total",
                        "top-suppliers": "company.stat.dashboard.common.top-suppliers",
                        "top-trade-sale-products": "company.stat.dashboard.common.top-trade-sale-products",
                        "trade-sale-products-charts": "company.stat.dashboard.common.trade-sale-products-charts"
                    },
                    "common-new": {
                        "average-check": "company.stat.dashboard.common-new.average-check",
                        "branch-payment-methods": "company.stat.dashboard.common-new.branch-payment-methods",
                        "branch-sales": "company.stat.dashboard.common-new.branch-sales",
                        "branch-stock": "company.stat.dashboard.common-new.branch-stock",
                        "clients": "company.stat.dashboard.common-new.clients",
                        "clients-count": "company.stat.dashboard.common-new.clients-count",
                        "companies-by-regions": "company.stat.dashboard.common-new.companies-by-regions",
                        "daily-checks": "company.stat.dashboard.common-new.daily-checks",
                        "debtors": "company.stat.dashboard.common-new.debtors",
                        "debtors-list": "company.stat.dashboard.common-new.debtors-list",
                        "monthly-sales": "company.stat.dashboard.common-new.monthly-sales",
                        "payment-methods": "company.stat.dashboard.common-new.payment-methods",
                        "sellers": "company.stat.dashboard.common-new.sellers",
                        "stock-products-count": "company.stat.dashboard.common-new.stock-products-count",
                        "stock-balances": "company.stat.dashboard.common-new.stock-balances",
                        "top-trade-sale-products": "company.stat.dashboard.common-new.top-trade-sale-products",
                        "top-products": "company.stat.dashboard.common-new.top-products",
                        "top-sellers": "company.stat.dashboard.common-new.top-sellers",
                        "totals": "company.stat.dashboard.common-new.totals",
                        "transactions-summary": "company.stat.dashboard.common-new.transactions-summary",
                        "trade-sales-by-companies": "company.stat.dashboard.common-new.trade-sales-by-companies",
                        "trade-sales-by-time": "company.stat.dashboard.common-new.trade-sales-by-time",
                        "trade-sale-transactions-by-payment-types": "company.stat.dashboard.common-new.trade-sale-transactions-by-payment-types"
                    }
                },
                "report": {
                    "cash-flow": "company.stat.report.cash-flow",
                    "cashiers": "company.stat.report.cashiers",
                    "cashiers-total": "company.stat.report.cashiers-total",
                    "abc": "company.stat.report.abc",
                    "abc-total": "company.stat.report.abc-total",
                    "abc-thresholds": {
                        "index": "company.stat.report.abc-thresholds",
                        "update": "company.stat.report.abc-thresholds.update"
                    },
                    "bonus-tariffs": "company.stat.report.bonus-tariffs",
                    "branch-transactions": "company.stat.report.branch-transactions",
                    "branch-transactions-filters": "company.stat.report.branch-transactions-filters",
                    "branch-transactions-total": "company.stat.report.branch-transactions-total",
                    "branches": "company.stat.report.branches",
                    "branches-total": "company.stat.report.branches-total",
                    "combined-series": "company.stat.report.combined-series",
                    "sale-categories": "company.stat.report.sale-categories",
                    "client-products": "company.stat.report.client-products",
                    "client-products-total": "company.stat.report.client-products-total",
                    "client-purchases": "company.stat.report.client-purchases",
                    "client-purchases-total": "company.stat.report.client-purchases-total",
                    "client-purchases-items": "company.stat.report.client-purchases-items",
                    "clients": "company.stat.report.clients",
                    "clients-total": "company.stat.report.clients-total",
                    "debt-repayments": "company.stat.report.debt-repayments",
                    "debt-repayments-filters": "company.stat.report.debt-repayments-filters",
                    "debt-repayments-total": "company.stat.report.debt-repayments-total",
                    "efficiency": "company.stat.report.efficiency",
                    "installments": "company.stat.report.installments",
                    "installments-filters": "company.stat.report.installments-filters",
                    "installments-total": "company.stat.report.installments-total",
                    "sale-products": "company.stat.report.sale-products",
                    "sales": "company.stat.report.sales",
                    "sales-total": "company.stat.report.sales-total",
                    "stock-balance": "company.stat.report.stock-balance",
                    "stock-balance-total": "company.stat.report.stock-balance-total",
                    "stock-movement": "company.stat.report.stock-movement",
                    "stock-warehouses": "company.stat.report.stock-warehouses",
                    "stock-warehouses-total": "company.stat.report.stock-warehouses-total",
                    "stock-warehouses-products": "company.stat.report.stock-warehouses-products",
                    "supplier-reconciliation": "company.stat.report.supplier-reconciliation",
                    "supplier-imports": "company.stat.report.supplier-imports",
                    "supplier-imports-filters": "company.stat.report.supplier-imports-filters",
                    "supplier-imports-products": "company.stat.report.supplier-imports-products",
                    "supplier-imports-total": "company.stat.report.supplier-imports-total",
                    "supplier-returns": "company.stat.report.supplier-returns",
                    "supplier-returns-filters": "company.stat.report.supplier-returns-filters",
                    "supplier-returns-total": "company.stat.report.supplier-returns-total",
                    "suppliers": "company.stat.report.suppliers",
                    "suppliers-filters": "company.stat.report.suppliers-filters",
                    "suppliers-total": "company.stat.report.suppliers-total",
                    "trade-sale-index-totals": "company.stat.report.trade-sale-index-totals",
                    "trade-sale-print-report": "company.stat.report.trade-sale-print-report",
                    "warehouse-movement": "company.stat.report.warehouse-movement",
                    "warehouse-movement-documents": "company.stat.report.warehouse-movement-documents",
                    "warehouse-movement-products": "company.stat.report.warehouse-movement-products",
                    "writeoffs": "company.stat.report.writeoffs"
                }
            },
            "stock": {
                "product": {
                    "catalog": {
                        "stats": "company.stock.product.catalog.stats",
                        "index": "company.stock.product.catalog.index"
                    },
                    "movement-history": "company.stock.product.movement-history",
                    "index": "company.stock.product.index",
                    "show": "company.stock.product.show"
                },
                "stock": {
                    "stats": "company.stock.stock.stats",
                    "summary": "company.stock.stock.summary",
                    "index": "company.stock.stock.index",
                    "show": "company.stock.stock.show",
                    "create": "company.stock.stock.create",
                    "update": "company.stock.stock.update",
                    "delete": "company.stock.stock.delete",
                    "restore": "company.stock.stock.restore"
                }
            },
            "tariff": {
                "info": "company.tariff.info",
                "pay-card": {
                    "index": "company.tariff.pay-card",
                    "confirm": "company.tariff.pay-card.confirm"
                },
                "pay-qr": "company.tariff.pay-qr",
                "payment-status": "company.tariff.payment-status"
            },
            "trade": {
                "cashbox-shift": {
                    "current": "company.trade.cashbox-shift.current",
                    "stats": "company.trade.cashbox-shift.stats",
                    "expense-reasons": "company.trade.cashbox-shift.expense-reasons",
                    "create-expense-reason": "company.trade.cashbox-shift.create-expense-reason",
                    "close": "company.trade.cashbox-shift.close",
                    "expense": "company.trade.cashbox-shift.expense",
                    "acknowledge-collection-return": "company.trade.cashbox-shift.acknowledge-collection-return",
                    "index": "company.trade.cashbox-shift.index",
                    "show": "company.trade.cashbox-shift.show",
                    "create": "company.trade.cashbox-shift.create"
                },
                "hold": {
                    "cancel": "company.trade.hold.cancel",
                    "add-products": "company.trade.hold.add-products",
                    "update-products": "company.trade.hold.update-products",
                    "index": "company.trade.hold.index",
                    "show": "company.trade.hold.show",
                    "create": "company.trade.hold.create"
                },
                "hold-product": {
                    "index": "company.trade.hold-product.index",
                    "show": "company.trade.hold-product.show"
                },
                "inventory": {
                    "stats": "company.trade.inventory.stats",
                    "categories": "company.trade.inventory.categories",
                    "add-products": "company.trade.inventory.add-products",
                    "remove-products": "company.trade.inventory.remove-products",
                    "comparison-sheet": "company.trade.inventory.comparison-sheet",
                    "product-movement-summary": "company.trade.inventory.product-movement-summary",
                    "complete": "company.trade.inventory.complete",
                    "cancel": "company.trade.inventory.cancel",
                    "index": "company.trade.inventory.index",
                    "show": "company.trade.inventory.show",
                    "create": "company.trade.inventory.create"
                },
                "inventory-product": {
                    "index": "company.trade.inventory-product.index",
                    "show": "company.trade.inventory-product.show",
                    "update": "company.trade.inventory-product.update"
                },
                "purchase": {
                    "complete": "company.trade.purchase.complete",
                    "cancel": "company.trade.purchase.cancel",
                    "products": "company.trade.purchase.products",
                    "index": "company.trade.purchase.index",
                    "show": "company.trade.purchase.show",
                    "create": "company.trade.purchase.create",
                    "update": "company.trade.purchase.update"
                },
                "purchase-product": {
                    "import": "company.trade.purchase-product.import",
                    "full-import": "company.trade.purchase-product.full-import",
                    "ai-import": "company.trade.purchase-product.ai-import",
                    "download-example": "company.trade.purchase-product.download-example",
                    "download-full-example": "company.trade.purchase-product.download-full-example",
                    "index": "company.trade.purchase-product.index",
                    "show": "company.trade.purchase-product.show"
                },
                "recalculation-product": {
                    "index": "company.trade.recalculation-product.index",
                    "show": "company.trade.recalculation-product.show",
                    "create": "company.trade.recalculation-product.create"
                },
                "recalculation-batch": {
                    "stats": "company.trade.recalculation-batch.stats",
                    "index": "company.trade.recalculation-batch.index",
                    "show": "company.trade.recalculation-batch.show",
                    "create": "company.trade.recalculation-batch.create"
                },
                "receipt-template": {
                    "index": "company.trade.receipt-template.index",
                    "show": "company.trade.receipt-template.show",
                    "create": "company.trade.receipt-template.create",
                    "update": "company.trade.receipt-template.update",
                    "delete": "company.trade.receipt-template.delete",
                    "restore": "company.trade.receipt-template.restore"
                },
                "payment-type": {
                    "system-names": "company.trade.payment-type.system-names",
                    "update-system-names": "company.trade.payment-type.update-system-names",
                    "index": "company.trade.payment-type.index",
                    "show": "company.trade.payment-type.show",
                    "create": "company.trade.payment-type.create",
                    "update": "company.trade.payment-type.update",
                    "delete": "company.trade.payment-type.delete",
                    "restore": "company.trade.payment-type.restore"
                },
                "invoice-template": {
                    "index": "company.trade.invoice-template.index",
                    "update": "company.trade.invoice-template.update"
                },
                "sale": {
                    "next-code": "company.trade.sale.next-code",
                    "return": "company.trade.sale.return",
                    "exchange": "company.trade.sale.exchange",
                    "print": "company.trade.sale.print",
                    "invoice": "company.trade.sale.invoice",
                    "check-detail": "company.trade.sale.check-detail",
                    "credit-detail": "company.trade.sale.credit-detail",
                    "index": "company.trade.sale.index",
                    "show": "company.trade.sale.show",
                    "create": "company.trade.sale.create"
                },
                "sale-product": {
                    "index": "company.trade.sale-product.index",
                    "show": "company.trade.sale-product.show"
                },
                "sale-transaction": {
                    "credit-detail": "company.trade.sale-transaction.credit-detail",
                    "index": "company.trade.sale-transaction.index",
                    "show": "company.trade.sale-transaction.show"
                },
                "seller-cart": {
                    "stats": "company.trade.seller-cart.stats",
                    "sales": "company.trade.seller-cart.sales",
                    "sales-stats": "company.trade.seller-cart.sales-stats",
                    "direct-sale-detail": "company.trade.seller-cart.direct-sale-detail",
                    "sale-detail": "company.trade.seller-cart.sale-detail",
                    "queue": "company.trade.seller-cart.queue",
                    "cheque": "company.trade.seller-cart.cheque",
                    "send": "company.trade.seller-cart.send",
                    "cancel": "company.trade.seller-cart.cancel",
                    "index": "company.trade.seller-cart.index",
                    "show": "company.trade.seller-cart.show",
                    "create": "company.trade.seller-cart.create",
                    "update": "company.trade.seller-cart.update",
                    "delete": "company.trade.seller-cart.delete"
                },
                "reservation": {
                    "index": "company.trade.reservation.index",
                    "cancel": "company.trade.reservation.cancel",
                    "detail": "company.trade.reservation.detail"
                },
                "temporary-cart": {
                    "destroy": "company.trade.temporary-cart.destroy",
                    "index": "company.trade.temporary-cart.index",
                    "create": "company.trade.temporary-cart.create"
                },
                "transfer": {
                    "stats": "company.trade.transfer.stats",
                    "price-diff": "company.trade.transfer.price-diff",
                    "download-example": "company.trade.transfer.download-example",
                    "import": "company.trade.transfer.import",
                    "complete": "company.trade.transfer.complete",
                    "cancel": "company.trade.transfer.cancel",
                    "index": "company.trade.transfer.index",
                    "show": "company.trade.transfer.show",
                    "create": "company.trade.transfer.create",
                    "update": "company.trade.transfer.update"
                },
                "transfer-product": {
                    "index": "company.trade.transfer-product.index",
                    "show": "company.trade.transfer-product.show"
                },
                "writeoff": {
                    "stats": "company.trade.writeoff.stats",
                    "complete": "company.trade.writeoff.complete",
                    "cancel": "company.trade.writeoff.cancel",
                    "index": "company.trade.writeoff.index",
                    "show": "company.trade.writeoff.show",
                    "create": "company.trade.writeoff.create",
                    "update": "company.trade.writeoff.update"
                },
                "writeoff-product": {
                    "index": "company.trade.writeoff-product.index",
                    "show": "company.trade.writeoff-product.show"
                }
            }
        }
    }
}

Rol yaratish ​

Xodim rolini yaratadi. Nomi kompaniyada yagona, description majburiy, is_last_step true bo‘lishi kerak. wasyt_new_routes dagi har bir huquq chaqiruvchining company. bo‘limidagi o‘z huquqlariga kirishi kerak; can_apply_sale_discount kassirga sotuvda chegirma berishga, can_use_free_price — erkin narxda sotishga ruxsat beradi (usiz erkin narxli tovarlar, xizmatlar va to‘plamlar faqat katalog narxida sotiladi); ikkalasi ham standart true.

POST/company/user/role

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

So‘rov tanasi ​

MaydonTuriMajburiyTavsif
namestringHaNomlanish. Maks. 255 belgi. Takrorlanmas qiymat
descriptionstringHaTavsif. Maks. 1000 belgi
wasyt_new_routesarrayHa (null bo‘lishi mumkin)Rol huquqlari — available-routes dagi marshrut nomlari
wasyt_new_routes[]stringHaMarshrut nomi
can_apply_sale_discountbooleanYo‘qToʻgʻridan-toʻgʻri sotuvda chegirmaga ruxsat berish
can_use_free_pricebooleanYo‘qErkin narxda sotishga ruxsat berish
can_view_purchase_pricebooleanYo‘qTannarx va ustamani koʻrish
can_view_profitbooleanYo‘qFoyda va marjani koʻrish
disabled_permissionsarrayYo‘qIxtiyoriy. Rol konstruktorining o‘chirilgan va o‘z marshruti bo‘lmagan huquqlari kalitlari (bosh sahifa kartalari, kassa tugmalari va h.k.), masalan sale.new.debt. Bo‘lim yoki guruh kaliti (sale, sale.new) ichidagi hammasini o‘chiradi. sale.new.debt nasiyaga sotishni, sale.new.bonus — bonuslar bilan to‘lashni taqiqlaydi (422). Bo‘sh ro‘yxat — hammasi ruxsat; o‘zgartirishda maydon yuborilmasa ro‘yxat o‘zgarmaydi.
disabled_permissions[]stringHaHuquq kaliti (lotin harflari, raqamlar, ., _, -). Maks. 100 belgi. Shablon /^[a-z0-9_.-]+$/
is_last_stepbooleanYo‘qtrue bo‘lishi shart
json
{
    "name": "Employee 2",
    "description": "Description 3-2",
    "wasyt_new_routes": [
        "company.company.company.index",
        "company.company.company.show"
    ],
    "is_last_step": 1
}
bash
curl -X POST "https://api.wasyt.uz/company/user/role" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"name":"Employee 2","description":"Description 3-2","wasyt_new_routes":["company.company.company.index","company.company.company.show"],"is_last_step":1}'

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
namestringNomlanish
descriptionstringTavsif
wasyt_new_routesarray
typestringTuri
updated_atstringYangilangan
created_atstringYaratilgan
creator_idintegerYaratuvchi
company_idintegerKompaniya
partner_idnullHamkor
idintegerID
json
{
    "name": "Employee 2",
    "description": "Description 3-2",
    "wasyt_new_routes": [
        "company.company.company.index",
        "company.company.company.show"
    ],
    "type": "employee",
    "updated_at": "2026-11-25 16:55:09",
    "created_at": "2026-11-25 16:55:09",
    "creator_id": 2,
    "company_id": 1,
    "partner_id": null,
    "id": 177
}

Xato misoli · 422 ​

json
{
    "message": "Право 'admin.company.company.index' недоступно",
    "errors": {
        "wasyt_new_routes": [
            "Право 'admin.company.company.index' недоступно"
        ]
    }
}

Rolni o‘zgartirish ​

Rolni yaratishdagi qoidalar bo‘yicha o‘zgartiradi. O‘z rolini va id = 1 tizim rolini o‘zgartirib bo‘lmaydi.

PUT/company/user/role/{model}

Formadan (multipart/form-data) PUT metodi POST + ?_method=PUT parametri bilan yuboriladi.

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Yo‘l parametrlari ​

ParametrTavsif
modelYozuv ID si

So‘rov tanasi ​

MaydonTuriMajburiyTavsif
namestringHaNomlanish. Maks. 255 belgi. Takrorlanmas qiymat
descriptionstringHaTavsif. Maks. 1000 belgi
wasyt_new_routesarrayHa (null bo‘lishi mumkin)Rol huquqlari — available-routes dagi marshrut nomlari
wasyt_new_routes[]stringHaMarshrut nomi
can_apply_sale_discountbooleanYo‘qToʻgʻridan-toʻgʻri sotuvda chegirmaga ruxsat berish
can_use_free_pricebooleanYo‘qErkin narxda sotishga ruxsat berish
can_view_purchase_pricebooleanYo‘qTannarx va ustamani koʻrish
can_view_profitbooleanYo‘qFoyda va marjani koʻrish
disabled_permissionsarrayYo‘qIxtiyoriy. Rol konstruktorining o‘chirilgan va o‘z marshruti bo‘lmagan huquqlari kalitlari (bosh sahifa kartalari, kassa tugmalari va h.k.), masalan sale.new.debt. Bo‘lim yoki guruh kaliti (sale, sale.new) ichidagi hammasini o‘chiradi. sale.new.debt nasiyaga sotishni, sale.new.bonus — bonuslar bilan to‘lashni taqiqlaydi (422). Bo‘sh ro‘yxat — hammasi ruxsat; o‘zgartirishda maydon yuborilmasa ro‘yxat o‘zgarmaydi.
disabled_permissions[]stringHaHuquq kaliti (lotin harflari, raqamlar, ., _, -). Maks. 100 belgi. Shablon /^[a-z0-9_.-]+$/
is_last_stepbooleanYo‘qtrue bo‘lishi shart
json
{
    "name": "Employee 1",
    "description": "Description 3-1",
    "wasyt_new_routes": [
        "company.company.company.index",
        "company.company.company.show"
    ],
    "is_last_step": 1
}
bash
curl -X PUT "https://api.wasyt.uz/company/user/role/4" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"name":"Employee 1","description":"Description 3-1","wasyt_new_routes":["company.company.company.index","company.company.company.show"],"is_last_step":1}'

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
idintegerID
creator_idintegerYaratuvchi
company_idintegerKompaniya
partner_idnullHamkor
typestringTuri
namestringNomlanish
descriptionstringTavsif
wasyt_new_routesarray
can_apply_sale_discountbooleanToʻgʻridan-toʻgʻri sotuvda chegirmaga ruxsat berish
can_use_free_pricebooleanErkin narxda sotishga ruxsat berish
can_view_purchase_pricebooleanTannarx va ustamani koʻrish
can_view_profitbooleanFoyda va marjani koʻrish
disabled_permissionsarrayRolning oʻchirilgan huquqlari
created_atstringYaratilgan
updated_atstringYangilangan
employees_countinteger
json
{
    "id": 4,
    "creator_id": 2,
    "company_id": 1,
    "partner_id": null,
    "type": "employee",
    "name": "Employee 1",
    "description": "Description 3-1",
    "wasyt_new_routes": [
        "company.company.company.index",
        "company.company.company.show"
    ],
    "can_apply_sale_discount": true,
    "can_use_free_price": true,
    "can_view_purchase_price": true,
    "can_view_profit": true,
    "disabled_permissions": [],
    "created_at": "2026-11-25 16:42:00",
    "updated_at": "2026-11-25 16:55:11",
    "employees_count": 4
}

Rolni o‘chirish ​

Rolni butunlay o‘chiradi. Kamida bitta xodimga biriktirilgan rolni o‘chirib bo‘lmaydi.

DELETE/company/user/role/{model}

Formadan (multipart/form-data) DELETE metodi POST + ?_method=DELETE parametri bilan yuboriladi.

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Yo‘l parametrlari ​

ParametrTavsif
modelYozuv ID si

Javob ​

Javob misoli hali testlar tomonidan yozib olinmagan.