Shop Role Schema
Felder
Shop Role Schema
Customer-tenant-defined shop role granting a permission bundle to a customer organization. Roles are owned by a single customer party (the organization) and assigned per-person via party_relationship.shopRoleId. Visibility (which articles/bundles a customer sees in the shop) lives on the entity itself via availableForPartyIds — not on the role.
partyId
Owner organization party ID (the customer this role belongs to).
name
Display name (e.g. "Admin", "Einkäufer", "Leseberechtigt")
description
Free-text description of what this role is for
isDefault
When true, this role is auto-assigned to new contacts that have no explicit shopRoleId. Exactly one role per partyId may carry this flag.
permissions
Capabilities this role grants in the customer portal (view products/prices, place orders, subscribe, view invoices/orders, manage users). Org-level shopConfig.featureFlags can mask these (kill switches).
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/shop_roles— Liste, paginiert + filterbarGET /api/v1/shop_roles/<id>— Einzelne EntityPOST /api/v1/shop_roles— AnlegenPATCH /api/v1/shop_roles/<id>— Teil-UpdateDELETE /api/v1/shop_roles/<id>— Soft-DeleteGET /api/v1/shop_roles/<id>/timeline— Audit + Aktivitäten