List active business-logic rules for the authenticated organization
Returns active business-logic rules for the caller’s organization with optional filters on phase, actionFamily, and scope dimensions (shop, brand, variant, supplier). Filter predicates and pagination (limit, offset) are pushed into the SQL query. limit defaults to 100 (max 1000); offset defaults to 0. Scope filters follow transversal semantics: a rule with an empty list on a dimension applies to all entities on that dimension. The response includes a pagination block with limit, offset, and totalCount (count of rules matching the filters, before pagination) and a templatesMetadata map keyed by sourceTemplateId. Requires intelligenceLayer.view permission.
Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Query Parameters
Filter by business phase
SCORING, SIZING, SOURCING, APPROVAL Filter by action family (e.g. RESTOCK, MARKDOWN)
RESTOCK_PLAN, REBALANCE_PLAN, MARKDOWN_PLAN, PRE_SEASON_PLAN, RECOMMENDATION, WORKFLOW, SUPPLIER_RETURN_PLAN, SUPPLIER_EXCHANGE_PLAN Filter rules whose scope includes this shop ID
1Filter rules whose scope includes this brand ID
1Filter rules whose scope includes this variant ID
1Filter rules whose scope includes this supplier ID
1Maximum number of rules to return (default: 100, max: 1000)
1 <= x <= 1000Number of rules to skip (default: 0)
0 <= x <= 9007199254740991
