Shop Role Schema
Fields
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).
No fields match the filter.
Standard endpoints
This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:
GET /api/v1/shop_roles— List, paginated + filterableGET /api/v1/shop_roles/<id>— Single entityPOST /api/v1/shop_roles— CreatePATCH /api/v1/shop_roles/<id>— Partial updateDELETE /api/v1/shop_roles/<id>— Soft deleteGET /api/v1/shop_roles/<id>/timeline— Audit + activities