{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Команда и права доступа","description":"Участники компании в Lumo B2B: роли, каталог прав, приглашения и личные API-ключи с ограниченным доступом.","siteUrl":"https://b2b-app.lumowallet.io","lang":"ru-RU","keywords":"Lumo B2B, платёжный API, крипто-платежи, USDT, TRC-20, СБП QR, виртуальные карты VISA, выплаты в рублях","image":"https://b2b-app.lumowallet.io/og-cover.png","meta":[{"name":"twitter:card","content":"summary_large_image"},{"name":"og:type","content":"website"},{"name":"og:site_name","content":"Lumo B2B"},{"name":"og:locale","content":"ru_RU"}],"jsonLd":{"@context":"https://schema.org","@type":"Organization","name":"Lumo B2B","url":"https://b2b-app.lumowallet.io","logo":"https://b2b-app.lumowallet.io/apple-touch-icon.png","description":"Крипто-платежи для бизнеса: приём по QR СБП, депозиты USDT, виртуальные VISA-карты и выплаты в рублях.","sameAs":["https://t.me/LumoB2B"]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"команда-и-права","__idx":0},"children":["Команда и права"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["В одной компании может работать несколько человек и сервисов. У каждого"," ","участника свой вход в кабинет, свой ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/authentication"},"children":["API-ключ"]}," и"," ","свой набор прав. Права определяют, какие эндпоинты доступны ключу и"," ","сессии участника."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"роли","__idx":1},"children":["Роли"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Роль"},"children":["Роль"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Что значит"},"children":["Что значит"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["owner"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Владелец. Полный доступ ко всему, независимо от списка прав"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["admin"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Администратор. Доступ — по списку прав"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["member"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Участник. Доступ — по списку прав"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Роль ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["admin"]}," или ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["member"]}," сама по себе прав не даёт: решает список"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["permissions"]},". Назначить владельца через API нельзя — только ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["admin"]}," или"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["member"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"права","__idx":2},"children":["Права"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Право нужно для вызова эндпоинта. Если его нет, API отвечает"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 PERMISSION_DENIED"]},", а в поле ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["required"]}," называет недостающее право."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Право"},"children":["Право"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Что открывает"},"children":["Что открывает"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cards.read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /cards"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /cards/{id}"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /cards/balances"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /cards/balances/query"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /cards/{id}/balance"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /cards/requests/{id}"]},", операции и выгрузки (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/cards/transactions"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/cards/{id}/transactions"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".csv"]},"), пополнения (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/cards/recharges"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/cards/{id}/recharges"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cards.create"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /cards/request"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /cards/requests/{id}/cancel"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cards.recharge"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /cards/recharge/quote"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /cards/recharge"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cards.retire"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /cards/{id}/retire"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cards.sensitive"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /cards/{id}/sensitive"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /cards/{id}/otp/latest"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orders.read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /orders"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /orders/{id}"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /disputes"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /rates/current"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orders.create"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /orders/prepare"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /orders/accept/{id}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["orders.write"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /orders/{id}/disputes"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["balance.read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /wallets"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /wallets/balance"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /wallets/deposits"]},", история баланса, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /user-wallets"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /user-wallets/blocked"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /user-wallets/deposits"]},", статус вывода"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["balance.withdraw"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /user-wallets"]},", блокировка, замена и вывод с кошельков пользователей — по сути полный контроль над средствами на этих кошельках"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payouts.read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /payouts/config"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /payouts/banks"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /payouts/quote"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /payouts"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /payouts/{id}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payouts.create"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /payouts"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payouts.write"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /payouts/{id}/cancel"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /payouts/{id}/dispute"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sbp.read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /sbp/rate"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /sbp/customers/{customerId}"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /sbp/orders"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /sbp/orders/{id}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sbp.create"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /sbp/customers"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /sbp/customers/{customerId}/kyc"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /sbp/quotes"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /sbp/orders"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /sbp/orders/{id}/cancel"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["members.read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /members"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /members/invites"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["members.invite"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /members/invites"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE /members/invites/{id}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["members.remove"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE /members/{userId}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["members.role.write"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /members/{userId}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["settings.write"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /auth/company/profile"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["apikey.regenerate"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /auth/company/regenerate-key"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /auth/company/api-key/reveal"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["webhook.manage"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Секрет вебхуков (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/auth/company/webhook-secret/*"]},"), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /webhooks/test"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /webhooks/deliveries"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /auth/company/profile"]}," доступен любому участнику без отдельного права."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Помимо прав, эндпоинты карт работают только при подключённой программе"," ","карт (иначе ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 CARDS_NOT_ENABLED"]},"), а создание выплат — при подключённых"," ","выплатах (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 PAYOUTS_NOT_ENABLED"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[":::warning Права, равные доступу владельца"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["members.role.write"]}," позволяет менять роль и права любого участника, кроме"," ","владельца, — в том числе собственные."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["members.invite"]}," позволяет пригласить участника с любым набором прав."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Список прав не сверяется с каталогом: значение ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["*"]}," даёт полный доступ."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["settings.write"]}," меняет адрес вебхуков, их секрет и адрес, на который"," ","пересылаются депозиты пользователей."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Выдавайте эти права только тем, кому доверили бы роль владельца."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[":::"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"приглашение-участника","__idx":3},"children":["Приглашение участника"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Пригласить можно участника с правом ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["members.invite"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST 'https://b2b.lumowallet.io/members/invites' \\\n  -H 'X-API-Key: YOUR_API_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"email\": \"accountant@acme.com\",\n    \"role\": \"member\",\n    \"permissions\": [\"orders.read\", \"balance.read\"]\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"5b1c0e7a-2d3f-4e8a-9b6c-1a2b3c4d5e6f\",\n  \"token\": \"9f2c…e41a\",\n  \"email\": \"accountant@acme.com\",\n  \"role\": \"member\",\n  \"permissions\": [\"orders.read\", \"balance.read\"],\n  \"expiresAt\": \"2026-10-10T12:00:00.000Z\",\n  \"createdAt\": \"2026-10-03T12:00:00.000Z\",\n  \"url\": \"https://…/invite/9f2c…e41a\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}," необязателен. Если он указан, принять приглашение можно только с"," ","этим email."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Приглашение действует 7 дней."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Ссылку ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["url"]}," передайте участнику: по ней он задаёт email и пароль в"," ","кабинете и сразу получает свой API-ключ."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Принять приглашение можно и через API, без кабинета:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST 'https://b2b.lumowallet.io/auth/invites/{token}/accept' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"email\": \"accountant@acme.com\", \"password\": \"at-least-8-chars\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"company\": {\n    \"id\": \"660e8400-e29b-41d4-a716-446655440001\",\n    \"name\": \"Acme LLC\",\n    \"email\": \"accountant@acme.com\"\n  },\n  \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n  \"apiKey\": \"lb2b_7d0e9c8b6a5f4e3d2c1b0a9f8e7d6c5b\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Один email может состоять только в одной компании: если пользователь с таким"," ","email уже есть, придёт ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["409 CONFLICT"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /auth/invites/{token}"]}," без авторизации показывает, куда ведёт"," ","приглашение: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["companyId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["companyName"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["role"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["permissions"]},","," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["expiresAt"]}," и ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["active"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accepted"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["expired"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Активные приглашения — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /members/invites"]},", отозвать —"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE /members/invites/{id}"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"участники","__idx":4},"children":["Участники"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl 'https://b2b.lumowallet.io/members' -H 'X-API-Key: YOUR_API_KEY'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"[\n  {\n    \"userId\": \"3c9e2f6a-1b7d-4c55-9a0e-7d2f4b8c1e90\",\n    \"email\": \"owner@acme.com\",\n    \"role\": \"owner\",\n    \"permissions\": [\"*\"],\n    \"joinedAt\": \"2026-03-01T10:00:00.000Z\"\n  },\n  {\n    \"userId\": \"8a7b6c5d-4e3f-4a1b-9c8d-7e6f5a4b3c2d\",\n    \"email\": \"accountant@acme.com\",\n    \"role\": \"member\",\n    \"permissions\": [\"orders.read\", \"balance.read\"],\n    \"joinedAt\": \"2026-10-03T12:05:00.000Z\"\n  }\n]\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Изменить роль или права — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /members/{userId}"]}," с полями ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["role"]}," ","(",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["admin"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["member"]},") и ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["permissions"]},", оба необязательные. Новый список прав"," ","заменяет прежний целиком."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Удалить участника — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE /members/{userId}"]},". Его API-ключ сразу"," ","перестаёт работать."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ограничения:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["свою роль менять нельзя (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 CANNOT_CHANGE_OWN_ROLE"]},");"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["менять или понижать владельца может только другой владелец"," ","(",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 ROLE_CHANGE_NOT_ALLOWED"]},");"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["нельзя удалить последнего владельца, и владелец не может удалить сам"," ","себя (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 ROLE_CHANGE_NOT_ALLOWED"]},")."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Приглашать, менять и удалять участников можно только от имени участника —"," ","с ключом компании старого образца эти запросы отвечают ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ошибки","__idx":5},"children":["Ошибки"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"HTTP"},"children":["HTTP"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"errorCode"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["errorCode"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Когда"},"children":["Когда"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INVITE_USED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Приглашение уже принято"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INVITE_EXPIRED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Срок приглашения истёк или приглашение отозвано"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INVITE_INVALID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Email не совпадает с указанным в приглашении"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CANNOT_CHANGE_OWN_ROLE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Попытка изменить свою роль"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ROLE_CHANGE_NOT_ALLOWED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Действие с владельцем, на которое нет полномочий"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INVITE_NOT_FOUND"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Приглашения с таким токеном или id нет"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MEMBER_NOT_FOUND"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Участника с таким ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["userId"]}," в компании нет"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["409"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CONFLICT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Пользователь с таким email уже существует"]}]}]}]}]}]},"headings":[{"value":"Команда и права","id":"команда-и-права","depth":1},{"value":"Роли","id":"роли","depth":2},{"value":"Права","id":"права","depth":2},{"value":"Приглашение участника","id":"приглашение-участника","depth":2},{"value":"Участники","id":"участники","depth":2},{"value":"Ошибки","id":"ошибки","depth":2}],"frontmatter":{"seo":{"title":"Команда и права доступа","description":"Участники компании в Lumo B2B: роли, каталог прав, приглашения и личные API-ключи с ограниченным доступом."}},"lastModified":"2026-10-24T08:10:20.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/team-and-permissions","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}