Skip to content

Роли ​

Роли администраторов, директоров компаний и директоров партнёров с набором доступных маршрутов (wasyt_new_routes).

МетодАдресНазначение
GET/admin/user/role/available-routesДоступные маршруты
GET/admin/user/roleСписок ролей
GET/admin/user/role/{model}Карточка роли
POST/admin/user/roleСоздать роль
PUT/admin/user/role/{model}Изменить роль
DELETE/admin/user/role/{model}Удалить роль

Доступные маршруты ​

GET/admin/user/role/available-routes

Возвращает дерево всех маршрутов, которые можно выдать роли, разделённое на base_routes и wasyt_new_routes.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Ответ · 200 ​

Поля ответа
ПолеТипОписание
base_routesobject
base_routes.adminobject
base_routes.admin.companyobjectКомпания
base_routes.admin.company.companyobjectКомпания
base_routes.admin.company.company.update-agreement_htmlstring
base_routes.admin.company.company.sync-icanstring
base_routes.admin.company.company.unsync-icanstring
base_routes.admin.company.company.purgestring
base_routes.admin.company.company.invoicestring
base_routes.admin.company.company.blockstring
base_routes.admin.company.company.unblockstring
base_routes.admin.company.company.accept-paymentstring
base_routes.admin.company.company.defer-paymentstring
base_routes.admin.company.company.indexstring
base_routes.admin.company.company.showstring
base_routes.admin.company.company.createstring
base_routes.admin.company.company.updatestring
base_routes.admin.company.company.deletestring
base_routes.admin.company.company.restorestring
base_routes.admin.company.transactionobject
base_routes.admin.company.transaction.refillstring
base_routes.admin.company.transaction.cancelstring
base_routes.admin.company.transaction.indexstring
base_routes.admin.company.transaction.showstring
base_routes.admin.company.demo-accessobject
base_routes.admin.company.demo-access.indexstring
base_routes.admin.company.demo-access.extend-trialstring
base_routes.admin.company.demo-access.defer-paymentstring
base_routes.admin.company.demo-access.disablestring
base_routes.admin.company.demo-access.activatestring
base_routes.admin.company.demo-access.destroystring
base_routes.admin.departmentobject
base_routes.admin.department.departmentobject
base_routes.admin.department.department.indexstring
base_routes.admin.department.department.showstring
base_routes.admin.department.department.createstring
base_routes.admin.department.department.updatestring
base_routes.admin.department.department.deletestring
base_routes.admin.department.department.restorestring
base_routes.admin.department.positionobjectДолжность
base_routes.admin.department.position.indexstring
base_routes.admin.department.position.showstring
base_routes.admin.department.position.createstring
base_routes.admin.department.position.updatestring
base_routes.admin.department.position.deletestring
base_routes.admin.department.position.restorestring
base_routes.admin.partnerobject
base_routes.admin.partner.partnerobject
base_routes.admin.partner.partner.indexstring
base_routes.admin.partner.partner.showstring
base_routes.admin.partner.partner.createstring
base_routes.admin.partner.partner.updatestring
base_routes.admin.partner.partner.deletestring
base_routes.admin.partner.partner.restorestring
base_routes.admin.partner.transactionobject
base_routes.admin.partner.transaction.indexstring
base_routes.admin.partner.transaction.showstring
base_routes.admin.regionobject
base_routes.admin.region.districtobject
base_routes.admin.region.district.indexstring
base_routes.admin.region.district.showstring
base_routes.admin.region.district.createstring
base_routes.admin.region.district.updatestring
base_routes.admin.region.district.deletestring
base_routes.admin.region.district.restorestring
base_routes.admin.region.mfyobject
base_routes.admin.region.mfy.indexstring
base_routes.admin.region.mfy.showstring
base_routes.admin.region.mfy.createstring
base_routes.admin.region.mfy.updatestring
base_routes.admin.region.mfy.deletestring
base_routes.admin.region.mfy.restorestring
base_routes.admin.region.regionobject
base_routes.admin.region.region.indexstring
base_routes.admin.region.region.showstring
base_routes.admin.region.region.updatestring
base_routes.admin.systemobject
base_routes.admin.system.languageobject
base_routes.admin.system.language.indexstring
base_routes.admin.system.language.showstring
base_routes.admin.system.language.updatestring
base_routes.admin.system.settingsobjectНастройки
base_routes.admin.system.settings.indexstring
base_routes.admin.system.settings.updatestring
base_routes.admin.system.ai-assistantobject
base_routes.admin.system.ai-assistant.indexstring
base_routes.admin.system.ai-assistant.updatestring
base_routes.admin.system.versionobjectВерсия
base_routes.admin.system.version.indexstring
base_routes.admin.system.version.showstring
base_routes.admin.system.version.createstring
base_routes.admin.system.version.updatestring
base_routes.admin.system.version.deletestring
base_routes.admin.system.version.restorestring
base_routes.admin.userobject
base_routes.admin.user.documentobjectДокумент
base_routes.admin.user.document.search-passportstring
base_routes.admin.user.document.update-passportstring
base_routes.admin.user.notificationobject
base_routes.admin.user.notification.createstring
base_routes.admin.user.roleobject
base_routes.admin.user.role.available-routesstring
base_routes.admin.user.role.indexstring
base_routes.admin.user.role.showstring
base_routes.admin.user.role.createstring
base_routes.admin.user.role.updatestring
base_routes.admin.user.role.deletestring
base_routes.admin.user.userobject
base_routes.admin.user.user.auth-asstring
base_routes.admin.user.user.indexstring
base_routes.admin.user.user.showstring
base_routes.admin.user.user.createstring
base_routes.admin.user.user.updatestring
base_routes.admin.user.user.deletestring
base_routes.admin.user.user.restorestring
base_routes.companyobjectКомпания
base_routes.company.cashboxobject
base_routes.company.cashbox.cashboxobject
base_routes.company.cashbox.cashbox.balancesstring
base_routes.company.cashbox.cashbox.indexstring
json
{
    "base_routes": {
        "admin": {
            "company": {
                "company": {
                    "update-agreement_html": "admin.company.company.update-agreement_html",
                    "sync-ican": "admin.company.company.sync-ican",
                    "unsync-ican": "admin.company.company.unsync-ican",
                    "purge": "admin.company.company.purge",
                    "invoice": "admin.company.company.invoice",
                    "block": "admin.company.company.block",
                    "unblock": "admin.company.company.unblock",
                    "accept-payment": "admin.company.company.accept-payment",
                    "defer-payment": "admin.company.company.defer-payment",
                    "index": "admin.company.company.index",
                    "show": "admin.company.company.show",
                    "create": "admin.company.company.create",
                    "update": "admin.company.company.update",
                    "delete": "admin.company.company.delete",
                    "restore": "admin.company.company.restore"
                },
                "transaction": {
                    "refill": "admin.company.transaction.refill",
                    "cancel": "admin.company.transaction.cancel",
                    "index": "admin.company.transaction.index",
                    "show": "admin.company.transaction.show"
                },
                "demo-access": {
                    "index": "admin.company.demo-access.index",
                    "extend-trial": "admin.company.demo-access.extend-trial",
                    "defer-payment": "admin.company.demo-access.defer-payment",
                    "disable": "admin.company.demo-access.disable",
                    "activate": "admin.company.demo-access.activate",
                    "destroy": "admin.company.demo-access.destroy"
                }
            },
            "department": {
                "department": {
                    "index": "admin.department.department.index",
                    "show": "admin.department.department.show",
                    "create": "admin.department.department.create",
                    "update": "admin.department.department.update",
                    "delete": "admin.department.department.delete",
                    "restore": "admin.department.department.restore"
                },
                "position": {
                    "index": "admin.department.position.index",
                    "show": "admin.department.position.show",
                    "create": "admin.department.position.create",
                    "update": "admin.department.position.update",
                    "delete": "admin.department.position.delete",
                    "restore": "admin.department.position.restore"
                }
            },
            "partner": {
                "partner": {
                    "index": "admin.partner.partner.index",
                    "show": "admin.partner.partner.show",
                    "create": "admin.partner.partner.create",
                    "update": "admin.partner.partner.update",
                    "delete": "admin.partner.partner.delete",
                    "restore": "admin.partner.partner.restore"
                },
                "transaction": {
                    "index": "admin.partner.transaction.index",
                    "show": "admin.partner.transaction.show"
                }
            },
            "region": {
                "district": {
                    "index": "admin.region.district.index",
                    "show": "admin.region.district.show",
                    "create": "admin.region.district.create",
                    "update": "admin.region.district.update",
                    "delete": "admin.region.district.delete",
                    "restore": "admin.region.district.restore"
                },
                "mfy": {
                    "index": "admin.region.mfy.index",
                    "show": "admin.region.mfy.show",
                    "create": "admin.region.mfy.create",
                    "update": "admin.region.mfy.update",
                    "delete": "admin.region.mfy.delete",
                    "restore": "admin.region.mfy.restore"
                },
                "region": {
                    "index": "admin.region.region.index",
                    "show": "admin.region.region.show",
                    "update": "admin.region.region.update"
                }
            },
            "system": {
                "language": {
                    "index": "admin.system.language.index",
                    "show": "admin.system.language.show",
                    "update": "admin.system.language.update"
                },
                "settings": {
                    "index": "admin.system.settings.index",
                    "update": "admin.system.settings.update"
                },
                "ai-assistant": {
                    "index": "admin.system.ai-assistant.index",
                    "update": "admin.system.ai-assistant.update"
                },
                "version": {
                    "index": "admin.system.version.index",
                    "show": "admin.system.version.show",
                    "create": "admin.system.version.create",
                    "update": "admin.system.version.update",
                    "delete": "admin.system.version.delete",
                    "restore": "admin.system.version.restore"
                }
            },
            "user": {
                "document": {
                    "search-passport": "admin.user.document.search-passport",
                    "update-passport": "admin.user.document.update-passport"
                },
                "notification": {
                    "create": "admin.user.notification.create"
                },
                "role": {
                    "available-routes": "admin.user.role.available-routes",
                    "index": "admin.user.role.index",
                    "show": "admin.user.role.show",
                    "create": "admin.user.role.create",
                    "update": "admin.user.role.update",
                    "delete": "admin.user.role.delete"
                },
                "user": {
                    "auth-as": "admin.user.user.auth-as",
                    "index": "admin.user.user.index",
                    "show": "admin.user.user.show",
                    "create": "admin.user.user.create",
                    "update": "admin.user.user.update",
                    "delete": "admin.user.user.delete",
                    "restore": "admin.user.user.restore"
                }
            }
        },
        "company": {
            "cashbox": {
                "cashbox": {
                    "balances": "company.cashbox.cashbox.balances",
                    "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": {
                    "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"
                },
                "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"
                },
                "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",
                    "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"
                },
                "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",
                    "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"
                }
            },
            "user": {
                "client": {
                    "index": "company.user.client.index",
                    "show": "company.user.client.show"
                },
                "employee": {
                    "qr": "company.user.employee.qr",
                    "force": "company.user.employee.force",
                    "notification": {
                        "show": "company.user.employee.notification.show",
                        "update": "company.user.employee.notification.update",
                        "link": "company.user.employee.notification.link",
                        "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"
                }
            }
        },
        "partner": {
            "company": {
                "company": {
                    "update-agreement_html": "partner.company.company.update-agreement_html",
                    "sync-ican": "partner.company.company.sync-ican",
                    "unsync-ican": "partner.company.company.unsync-ican",
                    "purge": "partner.company.company.purge",
                    "invoice": "partner.company.company.invoice",
                    "block": "partner.company.company.block",
                    "unblock": "partner.company.company.unblock",
                    "accept-payment": "partner.company.company.accept-payment",
                    "defer-payment": "partner.company.company.defer-payment",
                    "index": "partner.company.company.index",
                    "show": "partner.company.company.show",
                    "create": "partner.company.company.create",
                    "update": "partner.company.company.update",
                    "delete": "partner.company.company.delete",
                    "restore": "partner.company.company.restore"
                },
                "transaction": {
                    "refill": "partner.company.transaction.refill",
                    "cancel": "partner.company.transaction.cancel",
                    "index": "partner.company.transaction.index",
                    "show": "partner.company.transaction.show"
                },
                "demo-access": {
                    "index": "partner.company.demo-access.index",
                    "extend-trial": "partner.company.demo-access.extend-trial",
                    "defer-payment": "partner.company.demo-access.defer-payment",
                    "disable": "partner.company.demo-access.disable",
                    "activate": "partner.company.demo-access.activate",
                    "destroy": "partner.company.demo-access.destroy"
                }
            },
            "user": {
                "employee": {
                    "index": "partner.user.employee.index",
                    "show": "partner.user.employee.show",
                    "create": "partner.user.employee.create",
                    "update": "partner.user.employee.update",
                    "delete": "partner.user.employee.delete",
                    "restore": "partner.user.employee.restore"
                },
                "user": {
                    "auth-as": "partner.user.user.auth-as",
                    "index": "partner.user.user.index",
                    "show": "partner.user.user.show",
                    "create": "partner.user.user.create",
                    "update": "partner.user.user.update",
                    "delete": "partner.user.user.delete",
                    "restore": "partner.user.user.restore"
                },
                "role": {
                    "available-routes": "partner.user.role.available-routes",
                    "index": "partner.user.role.index",
                    "show": "partner.user.role.show",
                    "create": "partner.user.role.create",
                    "update": "partner.user.role.update",
                    "delete": "partner.user.role.delete"
                }
            }
        }
    },
    "wasyt_new_routes": {
        "": "",
        "mcp": {
            "server": "mcp.server",
            "oauth": {
                "protected-resource": {
                    "index": "mcp.oauth.protected-resource",
                    "nested": "mcp.oauth.protected-resource.nested"
                },
                "authorization-server": {
                    "index": "mcp.oauth.authorization-server",
                    "nested": "mcp.oauth.authorization-server.nested"
                }
            },
            "login": "mcp.login"
        },
        "login": "login",
        "oauth": {
            "passport": {
                "token": {
                    "index": "oauth.passport.token",
                    "refresh": "oauth.passport.token.refresh"
                },
                "authorizations": {
                    "authorize": "oauth.passport.authorizations.authorize",
                    "approve": "oauth.passport.authorizations.approve",
                    "deny": "oauth.passport.authorizations.deny"
                }
            }
        },
        "admin": {
            "product": {
                "unit": {
                    "index": "admin.product.unit.index",
                    "show": "admin.product.unit.show",
                    "create": "admin.product.unit.create",
                    "update": "admin.product.unit.update",
                    "delete": "admin.product.unit.delete",
                    "restore": "admin.product.unit.restore"
                },
                "service-unit": {
                    "index": "admin.product.service-unit.index",
                    "show": "admin.product.service-unit.show",
                    "create": "admin.product.service-unit.create",
                    "update": "admin.product.service-unit.update",
                    "delete": "admin.product.service-unit.delete",
                    "restore": "admin.product.service-unit.restore"
                }
            },
            "trade": {
                "purchase": {
                    "uncancel": "admin.trade.purchase.uncancel",
                    "index": "admin.trade.purchase.index",
                    "show": "admin.trade.purchase.show"
                }
            }
        },
        "company": {
            "assistant": {
                "chat": {
                    "message": "company.assistant.chat.message",
                    "index": "company.assistant.chat.index",
                    "show": "company.assistant.chat.show",
                    "delete": "company.assistant.chat.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"
                },
                "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-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"
                },
                "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"
                },
                "debt-payment": {
                    "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",
                    "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",
                    "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"
                },
                "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",
                        "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": {
                    "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",
                    "clients": "company.stat.report.clients",
                    "clients-total": "company.stat.report.clients-total",
                    "efficiency": "company.stat.report.efficiency",
                    "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",
                    "supplier-reconciliation": "company.stat.report.supplier-reconciliation",
                    "trade-sale-index-totals": "company.stat.report.trade-sale-index-totals",
                    "trade-sale-print-report": "company.stat.report.trade-sale-print-report",
                    "writeoffs": "company.stat.report.writeoffs"
                }
            },
            "stock": {
                "product": {
                    "catalog": {
                        "stats": "company.stock.product.catalog.stats",
                        "index": "company.stock.product.catalog.index"
                    },
                    "plu": "company.stock.product.plu",
                    "movement-history": "company.stock.product.movement-history",
                    "index": "company.stock.product.index",
                    "show": "company.stock.product.show"
                },
                "stock": {
                    "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",
                    "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",
                    "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",
                    "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": {
                    "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": {
                    "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": {
                    "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",
                    "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"
                },
                "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",
                    "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": {
                    "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"
                }
            }
        },
        "client": {
            "webhook": {
                "client": {
                    "webhook": {
                        "paylov-welcome": "client.webhook.client.webhook.paylov-welcome"
                    }
                }
            }
        }
    }
}

Список ролей ​

GET/admin/user/role

Постраничный список ролей типов admin, director и partner_director.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры запроса ​

ПараметрОписание
filter[id]ID — точное значение
filter[creator_id]Создатель — точное значение
filter[company_id]Компания — точное значение
filter[partner_id]Партнёр — точное значение
filter[type]Тип — одно значение или список filter[type][]
filter[name]Название — поиск по части строки
sort[]Сортировка, - — по убыванию: id, -id, name, -name
with[]Подгрузить связи: creator.profile, company, partner
pageНомер страницы, с 1
page-sizeЗаписей на странице, не больше 20
http
GET /admin/user/role?sort[0]=id&sort[1]=-id&sort[2]=name&sort[3]=-name

Ответ · 200 ​

Постраничный ответ: записи в data[], пагинация в links и meta.

Поля ответа
ПолеТипОписание
dataobject[]Данные
data[].idintegerID
data[].creator_idintegerСоздатель
data[].company_idnullКомпания
data[].partner_idnullПартнёр
data[].typestringТип
data[].namestringНазвание
data[].descriptionstringОписание
data[].wasyt_new_routesarray
data[].can_apply_sale_discountbooleanРазрешить скидку в прямой продаже
data[].created_atstringСоздано
data[].updated_atstringОбновлено
json
{
    "data": [
        {
            "id": 1,
            "creator_id": 1,
            "company_id": null,
            "partner_id": null,
            "type": "admin",
            "name": "Admin 1",
            "description": "Description 1-1",
            "wasyt_new_routes": [
                "admin.company.company.update-agreement_html",
                "admin.company.company.sync-ican"
            ],
            "can_apply_sale_discount": true,
            "created_at": "2026-09-30 12:47:58",
            "updated_at": "2026-09-30 12:47:58"
        },
        {
            "id": 2,
            "creator_id": 1,
            "company_id": null,
            "partner_id": null,
            "type": "director",
            "name": "Director 1",
            "description": "Description 2-1",
            "wasyt_new_routes": [
                "company.assistant.chat.message",
                "company.assistant.chat.index"
            ],
            "can_apply_sale_discount": true,
            "created_at": "2026-09-30 12:47:58",
            "updated_at": "2026-09-30 12:47:58"
        }
    ],
    "links": {
        "first": "https://api.wasyt.uz/admin/user/role?page=1",
        "last": "https://api.wasyt.uz/admin/user/role?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [],
        "path": "https://api.wasyt.uz/admin/user/role",
        "per_page": 20,
        "to": 4,
        "total": 4
    }
}

Карточка роли ​

GET/admin/user/role/{model}

Возвращает роль по ID.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры пути ​

ПараметрОписание
modelID записи

Ответ · 200 ​

Поля ответа
ПолеТипОписание
base_routesobject
base_routes.adminobject
base_routes.admin.companyobjectКомпания
base_routes.admin.company.companyobjectКомпания
base_routes.admin.company.company.update-agreement_htmlstring
base_routes.admin.company.company.sync-icanstring
base_routes.admin.company.company.unsync-icanstring
base_routes.admin.company.company.purgestring
base_routes.admin.company.company.invoicestring
base_routes.admin.company.company.blockstring
base_routes.admin.company.company.unblockstring
base_routes.admin.company.company.accept-paymentstring
base_routes.admin.company.company.defer-paymentstring
base_routes.admin.company.company.indexstring
base_routes.admin.company.company.showstring
base_routes.admin.company.company.createstring
base_routes.admin.company.company.updatestring
base_routes.admin.company.company.deletestring
base_routes.admin.company.company.restorestring
base_routes.admin.company.transactionobject
base_routes.admin.company.transaction.refillstring
base_routes.admin.company.transaction.cancelstring
base_routes.admin.company.transaction.indexstring
base_routes.admin.company.transaction.showstring
base_routes.admin.company.demo-accessobject
base_routes.admin.company.demo-access.indexstring
base_routes.admin.company.demo-access.extend-trialstring
base_routes.admin.company.demo-access.defer-paymentstring
base_routes.admin.company.demo-access.disablestring
base_routes.admin.company.demo-access.activatestring
base_routes.admin.company.demo-access.destroystring
base_routes.admin.departmentobject
base_routes.admin.department.departmentobject
base_routes.admin.department.department.indexstring
base_routes.admin.department.department.showstring
base_routes.admin.department.department.createstring
base_routes.admin.department.department.updatestring
base_routes.admin.department.department.deletestring
base_routes.admin.department.department.restorestring
base_routes.admin.department.positionobjectДолжность
base_routes.admin.department.position.indexstring
base_routes.admin.department.position.showstring
base_routes.admin.department.position.createstring
base_routes.admin.department.position.updatestring
base_routes.admin.department.position.deletestring
base_routes.admin.department.position.restorestring
base_routes.admin.partnerobject
base_routes.admin.partner.partnerobject
base_routes.admin.partner.partner.indexstring
base_routes.admin.partner.partner.showstring
base_routes.admin.partner.partner.createstring
base_routes.admin.partner.partner.updatestring
base_routes.admin.partner.partner.deletestring
base_routes.admin.partner.partner.restorestring
base_routes.admin.partner.transactionobject
base_routes.admin.partner.transaction.indexstring
base_routes.admin.partner.transaction.showstring
base_routes.admin.regionobject
base_routes.admin.region.districtobject
base_routes.admin.region.district.indexstring
base_routes.admin.region.district.showstring
base_routes.admin.region.district.createstring
base_routes.admin.region.district.updatestring
base_routes.admin.region.district.deletestring
base_routes.admin.region.district.restorestring
base_routes.admin.region.mfyobject
base_routes.admin.region.mfy.indexstring
base_routes.admin.region.mfy.showstring
base_routes.admin.region.mfy.createstring
base_routes.admin.region.mfy.updatestring
base_routes.admin.region.mfy.deletestring
base_routes.admin.region.mfy.restorestring
base_routes.admin.region.regionobject
base_routes.admin.region.region.indexstring
base_routes.admin.region.region.showstring
base_routes.admin.region.region.updatestring
base_routes.admin.systemobject
base_routes.admin.system.languageobject
base_routes.admin.system.language.indexstring
base_routes.admin.system.language.showstring
base_routes.admin.system.language.updatestring
base_routes.admin.system.settingsobjectНастройки
base_routes.admin.system.settings.indexstring
base_routes.admin.system.settings.updatestring
base_routes.admin.system.ai-assistantobject
base_routes.admin.system.ai-assistant.indexstring
base_routes.admin.system.ai-assistant.updatestring
base_routes.admin.system.versionobjectВерсия
base_routes.admin.system.version.indexstring
base_routes.admin.system.version.showstring
base_routes.admin.system.version.createstring
base_routes.admin.system.version.updatestring
base_routes.admin.system.version.deletestring
base_routes.admin.system.version.restorestring
base_routes.admin.userobject
base_routes.admin.user.documentobjectДокумент
base_routes.admin.user.document.search-passportstring
base_routes.admin.user.document.update-passportstring
base_routes.admin.user.notificationobject
base_routes.admin.user.notification.createstring
base_routes.admin.user.roleobject
base_routes.admin.user.role.available-routesstring
base_routes.admin.user.role.indexstring
base_routes.admin.user.role.showstring
base_routes.admin.user.role.createstring
base_routes.admin.user.role.updatestring
base_routes.admin.user.role.deletestring
base_routes.admin.user.userobject
base_routes.admin.user.user.auth-asstring
base_routes.admin.user.user.indexstring
base_routes.admin.user.user.showstring
base_routes.admin.user.user.createstring
base_routes.admin.user.user.updatestring
base_routes.admin.user.user.deletestring
base_routes.admin.user.user.restorestring
base_routes.companyobjectКомпания
base_routes.company.cashboxobject
base_routes.company.cashbox.cashboxobject
base_routes.company.cashbox.cashbox.balancesstring
base_routes.company.cashbox.cashbox.indexstring
json
{
    "base_routes": {
        "admin": {
            "company": {
                "company": {
                    "update-agreement_html": "admin.company.company.update-agreement_html",
                    "sync-ican": "admin.company.company.sync-ican",
                    "unsync-ican": "admin.company.company.unsync-ican",
                    "purge": "admin.company.company.purge",
                    "invoice": "admin.company.company.invoice",
                    "block": "admin.company.company.block",
                    "unblock": "admin.company.company.unblock",
                    "accept-payment": "admin.company.company.accept-payment",
                    "defer-payment": "admin.company.company.defer-payment",
                    "index": "admin.company.company.index",
                    "show": "admin.company.company.show",
                    "create": "admin.company.company.create",
                    "update": "admin.company.company.update",
                    "delete": "admin.company.company.delete",
                    "restore": "admin.company.company.restore"
                },
                "transaction": {
                    "refill": "admin.company.transaction.refill",
                    "cancel": "admin.company.transaction.cancel",
                    "index": "admin.company.transaction.index",
                    "show": "admin.company.transaction.show"
                },
                "demo-access": {
                    "index": "admin.company.demo-access.index",
                    "extend-trial": "admin.company.demo-access.extend-trial",
                    "defer-payment": "admin.company.demo-access.defer-payment",
                    "disable": "admin.company.demo-access.disable",
                    "activate": "admin.company.demo-access.activate",
                    "destroy": "admin.company.demo-access.destroy"
                }
            },
            "department": {
                "department": {
                    "index": "admin.department.department.index",
                    "show": "admin.department.department.show",
                    "create": "admin.department.department.create",
                    "update": "admin.department.department.update",
                    "delete": "admin.department.department.delete",
                    "restore": "admin.department.department.restore"
                },
                "position": {
                    "index": "admin.department.position.index",
                    "show": "admin.department.position.show",
                    "create": "admin.department.position.create",
                    "update": "admin.department.position.update",
                    "delete": "admin.department.position.delete",
                    "restore": "admin.department.position.restore"
                }
            },
            "partner": {
                "partner": {
                    "index": "admin.partner.partner.index",
                    "show": "admin.partner.partner.show",
                    "create": "admin.partner.partner.create",
                    "update": "admin.partner.partner.update",
                    "delete": "admin.partner.partner.delete",
                    "restore": "admin.partner.partner.restore"
                },
                "transaction": {
                    "index": "admin.partner.transaction.index",
                    "show": "admin.partner.transaction.show"
                }
            },
            "region": {
                "district": {
                    "index": "admin.region.district.index",
                    "show": "admin.region.district.show",
                    "create": "admin.region.district.create",
                    "update": "admin.region.district.update",
                    "delete": "admin.region.district.delete",
                    "restore": "admin.region.district.restore"
                },
                "mfy": {
                    "index": "admin.region.mfy.index",
                    "show": "admin.region.mfy.show",
                    "create": "admin.region.mfy.create",
                    "update": "admin.region.mfy.update",
                    "delete": "admin.region.mfy.delete",
                    "restore": "admin.region.mfy.restore"
                },
                "region": {
                    "index": "admin.region.region.index",
                    "show": "admin.region.region.show",
                    "update": "admin.region.region.update"
                }
            },
            "system": {
                "language": {
                    "index": "admin.system.language.index",
                    "show": "admin.system.language.show",
                    "update": "admin.system.language.update"
                },
                "settings": {
                    "index": "admin.system.settings.index",
                    "update": "admin.system.settings.update"
                },
                "ai-assistant": {
                    "index": "admin.system.ai-assistant.index",
                    "update": "admin.system.ai-assistant.update"
                },
                "version": {
                    "index": "admin.system.version.index",
                    "show": "admin.system.version.show",
                    "create": "admin.system.version.create",
                    "update": "admin.system.version.update",
                    "delete": "admin.system.version.delete",
                    "restore": "admin.system.version.restore"
                }
            },
            "user": {
                "document": {
                    "search-passport": "admin.user.document.search-passport",
                    "update-passport": "admin.user.document.update-passport"
                },
                "notification": {
                    "create": "admin.user.notification.create"
                },
                "role": {
                    "available-routes": "admin.user.role.available-routes",
                    "index": "admin.user.role.index",
                    "show": "admin.user.role.show",
                    "create": "admin.user.role.create",
                    "update": "admin.user.role.update",
                    "delete": "admin.user.role.delete"
                },
                "user": {
                    "auth-as": "admin.user.user.auth-as",
                    "index": "admin.user.user.index",
                    "show": "admin.user.user.show",
                    "create": "admin.user.user.create",
                    "update": "admin.user.user.update",
                    "delete": "admin.user.user.delete",
                    "restore": "admin.user.user.restore"
                }
            }
        },
        "company": {
            "cashbox": {
                "cashbox": {
                    "balances": "company.cashbox.cashbox.balances",
                    "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": {
                    "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"
                },
                "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"
                },
                "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",
                    "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"
                },
                "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",
                    "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"
                }
            },
            "user": {
                "client": {
                    "index": "company.user.client.index",
                    "show": "company.user.client.show"
                },
                "employee": {
                    "qr": "company.user.employee.qr",
                    "force": "company.user.employee.force",
                    "notification": {
                        "show": "company.user.employee.notification.show",
                        "update": "company.user.employee.notification.update",
                        "link": "company.user.employee.notification.link",
                        "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"
                }
            }
        },
        "partner": {
            "company": {
                "company": {
                    "update-agreement_html": "partner.company.company.update-agreement_html",
                    "sync-ican": "partner.company.company.sync-ican",
                    "unsync-ican": "partner.company.company.unsync-ican",
                    "purge": "partner.company.company.purge",
                    "invoice": "partner.company.company.invoice",
                    "block": "partner.company.company.block",
                    "unblock": "partner.company.company.unblock",
                    "accept-payment": "partner.company.company.accept-payment",
                    "defer-payment": "partner.company.company.defer-payment",
                    "index": "partner.company.company.index",
                    "show": "partner.company.company.show",
                    "create": "partner.company.company.create",
                    "update": "partner.company.company.update",
                    "delete": "partner.company.company.delete",
                    "restore": "partner.company.company.restore"
                },
                "transaction": {
                    "refill": "partner.company.transaction.refill",
                    "cancel": "partner.company.transaction.cancel",
                    "index": "partner.company.transaction.index",
                    "show": "partner.company.transaction.show"
                },
                "demo-access": {
                    "index": "partner.company.demo-access.index",
                    "extend-trial": "partner.company.demo-access.extend-trial",
                    "defer-payment": "partner.company.demo-access.defer-payment",
                    "disable": "partner.company.demo-access.disable",
                    "activate": "partner.company.demo-access.activate",
                    "destroy": "partner.company.demo-access.destroy"
                }
            },
            "user": {
                "employee": {
                    "index": "partner.user.employee.index",
                    "show": "partner.user.employee.show",
                    "create": "partner.user.employee.create",
                    "update": "partner.user.employee.update",
                    "delete": "partner.user.employee.delete",
                    "restore": "partner.user.employee.restore"
                },
                "user": {
                    "auth-as": "partner.user.user.auth-as",
                    "index": "partner.user.user.index",
                    "show": "partner.user.user.show",
                    "create": "partner.user.user.create",
                    "update": "partner.user.user.update",
                    "delete": "partner.user.user.delete",
                    "restore": "partner.user.user.restore"
                },
                "role": {
                    "available-routes": "partner.user.role.available-routes",
                    "index": "partner.user.role.index",
                    "show": "partner.user.role.show",
                    "create": "partner.user.role.create",
                    "update": "partner.user.role.update",
                    "delete": "partner.user.role.delete"
                }
            }
        }
    },
    "wasyt_new_routes": {
        "": "",
        "mcp": {
            "server": "mcp.server",
            "oauth": {
                "protected-resource": {
                    "index": "mcp.oauth.protected-resource",
                    "nested": "mcp.oauth.protected-resource.nested"
                },
                "authorization-server": {
                    "index": "mcp.oauth.authorization-server",
                    "nested": "mcp.oauth.authorization-server.nested"
                }
            },
            "login": "mcp.login"
        },
        "login": "login",
        "oauth": {
            "passport": {
                "token": {
                    "index": "oauth.passport.token",
                    "refresh": "oauth.passport.token.refresh"
                },
                "authorizations": {
                    "authorize": "oauth.passport.authorizations.authorize",
                    "approve": "oauth.passport.authorizations.approve",
                    "deny": "oauth.passport.authorizations.deny"
                }
            }
        },
        "admin": {
            "product": {
                "unit": {
                    "index": "admin.product.unit.index",
                    "show": "admin.product.unit.show",
                    "create": "admin.product.unit.create",
                    "update": "admin.product.unit.update",
                    "delete": "admin.product.unit.delete",
                    "restore": "admin.product.unit.restore"
                },
                "service-unit": {
                    "index": "admin.product.service-unit.index",
                    "show": "admin.product.service-unit.show",
                    "create": "admin.product.service-unit.create",
                    "update": "admin.product.service-unit.update",
                    "delete": "admin.product.service-unit.delete",
                    "restore": "admin.product.service-unit.restore"
                }
            },
            "trade": {
                "purchase": {
                    "uncancel": "admin.trade.purchase.uncancel",
                    "index": "admin.trade.purchase.index",
                    "show": "admin.trade.purchase.show"
                }
            }
        },
        "company": {
            "assistant": {
                "chat": {
                    "message": "company.assistant.chat.message",
                    "index": "company.assistant.chat.index",
                    "show": "company.assistant.chat.show",
                    "delete": "company.assistant.chat.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"
                },
                "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-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"
                },
                "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"
                },
                "debt-payment": {
                    "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",
                    "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",
                    "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"
                },
                "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",
                        "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": {
                    "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",
                    "clients": "company.stat.report.clients",
                    "clients-total": "company.stat.report.clients-total",
                    "efficiency": "company.stat.report.efficiency",
                    "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",
                    "supplier-reconciliation": "company.stat.report.supplier-reconciliation",
                    "trade-sale-index-totals": "company.stat.report.trade-sale-index-totals",
                    "trade-sale-print-report": "company.stat.report.trade-sale-print-report",
                    "writeoffs": "company.stat.report.writeoffs"
                }
            },
            "stock": {
                "product": {
                    "catalog": {
                        "stats": "company.stock.product.catalog.stats",
                        "index": "company.stock.product.catalog.index"
                    },
                    "plu": "company.stock.product.plu",
                    "movement-history": "company.stock.product.movement-history",
                    "index": "company.stock.product.index",
                    "show": "company.stock.product.show"
                },
                "stock": {
                    "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",
                    "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",
                    "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",
                    "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": {
                    "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": {
                    "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": {
                    "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",
                    "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"
                },
                "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",
                    "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": {
                    "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"
                }
            }
        },
        "client": {
            "webhook": {
                "client": {
                    "webhook": {
                        "paylov-welcome": "client.webhook.client.webhook.paylov-welcome"
                    }
                }
            }
        }
    }
}

Создать роль ​

POST/admin/user/role

Создаёт роль типа type (admin, director или partner_director) с набором маршрутов wasyt_new_routes, которые проверяются по разделу своего типа, и правом can_apply_sale_discount.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Тело запроса ​

ПолеТипОбязательноОписание
namestringДаНазвание. Макс. 255 символов
descriptionstringДаОписание. Макс. 1000 символов
wasyt_new_routesarrayДа (можно null)
wasyt_new_routes[]stringДа
can_apply_sale_discountbooleanНетРазрешить скидку в прямой продаже
is_last_stepbooleanНетДолжно быть true
typestringДаТип. Допустимые значения: admin, director, partner_director
json
{
    "type": "admin",
    "name": "Admin 2",
    "description": "Description 1-2",
    "wasyt_new_routes": [
        "admin.company.company.index",
        "admin.company.company.create",
        "admin.company.company.update"
    ],
    "is_last_step": 1
}
bash
curl -X POST "https://api.wasyt.uz/admin/user/role" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"type":"admin","name":"Admin 2","description":"Description 1-2","wasyt_new_routes":["admin.company.company.index","admin.company.company.create","admin.company.company.update"],"is_last_step":1}'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
namestringНазвание
descriptionstringОписание
typestringТип
wasyt_new_routesarray
updated_atstringОбновлено
created_atstringСоздано
creator_idintegerСоздатель
company_idnullКомпания
partner_idnullПартнёр
idintegerID
json
{
    "name": "Admin 2",
    "description": "Description 1-2",
    "type": "admin",
    "wasyt_new_routes": [
        "admin.company.company.index",
        "admin.company.company.create"
    ],
    "updated_at": "2026-09-30 12:50:24",
    "created_at": "2026-09-30 12:50:24",
    "creator_id": 1,
    "company_id": null,
    "partner_id": null,
    "id": 7
}

Пример ошибки · 422 ​

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

Изменить роль ​

PUT/admin/user/role/{model}

Обновляет название, описание, маршруты и право на скидку. Тип роли после создания не меняется.

Из формы (multipart/form-data) метод PUT отправляется как POST с параметром ?_method=PUT.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры пути ​

ПараметрОписание
modelID записи

Тело запроса ​

ПолеТипОбязательноОписание
namestringДаНазвание. Макс. 255 символов
descriptionstringДаОписание. Макс. 1000 символов
wasyt_new_routesarrayДа (можно null)
wasyt_new_routes[]stringДа
can_apply_sale_discountbooleanНетРазрешить скидку в прямой продаже
is_last_stepbooleanНетДолжно быть true
typestringНетТип. Допустимые значения: admin, director, partner_director
json
{
    "name": "Director 1",
    "description": "Description 2-1",
    "wasyt_new_routes": [
        "company.company.company.index",
        "company.company.company.show"
    ],
    "is_last_step": 1
}
bash
curl -X PUT "https://api.wasyt.uz/admin/user/role/2" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"name":"Director 1","description":"Description 2-1","wasyt_new_routes":["company.company.company.index","company.company.company.show"],"is_last_step":1}'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
idintegerID
creator_idintegerСоздатель
company_idnullКомпания
partner_idnullПартнёр
typestringТип
namestringНазвание
descriptionstringОписание
wasyt_new_routesarray
can_apply_sale_discountbooleanРазрешить скидку в прямой продаже
created_atstringСоздано
updated_atstringОбновлено
json
{
    "id": 2,
    "creator_id": 1,
    "company_id": null,
    "partner_id": null,
    "type": "director",
    "name": "Director 1",
    "description": "Description 2-1",
    "wasyt_new_routes": [
        "company.company.company.index",
        "company.company.company.show"
    ],
    "can_apply_sale_discount": true,
    "created_at": "2026-09-30 12:47:58",
    "updated_at": "2026-09-30 12:50:26"
}

Удалить роль ​

DELETE/admin/user/role/{model}

Удаляет роль. Ошибка 400 для системной роли с ID 1 и для роли, назначенной сотрудникам.

Из формы (multipart/form-data) метод DELETE отправляется как POST с параметром ?_method=DELETE.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры пути ​

ПараметрОписание
modelID записи

Ответ ​

Пример ответа пока не записан тестами.