CommissionConfig
object type
A CommissionConfig — ONE cell of the multi-axis commission matrix: the axes scope where it applies (each singular, absent = all, immutable at birth — re-target = create + doom): Agent (a Role the agent holds at the sale's org ⊕ a specific User) · Merchandise (Division ⊕ Category-SUBTREE ⊕ Style — a style outranks any category depth) · Location (Organization ⊕ LogicalFacility — **the Location axis IS the org scoping; this construct is NOT org-selected**) · Channel. The sparse parameters (≥1 required): rate (percent_net = the line's final post-position-5 discounted net · percent_margin = max(net − landed COGS, 0), COGS-absent ⇒ 0 · fixed_per_unit — a currency-mismatched fixed rate is NON-matching) + enabled (false at the winning cell suppresses the entry). At place, per (line × attributed agent): candidates = active cells matching every axis; the winner per parameter is the most specific (set-axis count, tie-break Agent ≻ Merchandise ≻ Location ≻ Channel). appliesToAllSalesInScope=true + Agent=Role is the manager-on-all override: every active holder of the Role at the sale's org earns additively (entryClass manager_on_all; bounded ≤ 32 holders — the write refuses over, the place mint skips over [the sale never blocks]). the collision rule: an active same-normalized-tuple sibling with an intersecting SET-parameter set refuses CONFLICT/IDENTITY_TAKEN naming the holder(s) + the intersection (create, param-GROWING edits, reactivate; same-tuple disjoint-parameter cells are legal — the flag rides IN the tuple, so flagged/unflagged never compete). At most 128 active per org group (the per-place resolution bound). NOT searchable (the config non-joiner stance — configs are axis-addressed, not name-found); NO uniq marker.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like CG-… — stable for the record’s life. |
type | String String! | The kind of record — always CommissionConfig here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of active, inactive or doomed. |
parentId | ID ID! | The parent org group; for a CommissionConfig parentId === rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
appliesToAllSalesInScope | Boolean | The manager-on-all flag: every active holder earns on every in-scope line, additively. |
agentRoleId | ID | Agent axis. Singular with agentUserId; absent both = all agents. |
agentUserId | ID | Agent axis (User arm — the most specific agent level). Singular with agentRoleId. |
divisionId | ID | Merchandise axis (Division arm). Singular with categoryId/styleId; absent all three = all merchandise. |
categoryId | ID | Merchandise axis (Category arm — subtree semantics; deeper beats shallower). |
styleId | ID | Merchandise axis (Style arm — the per-style override; outranks ANY category depth). |
organizationId | ID | Location axis (Organization arm) — THE org scoping. Singular with logicalFacilityId. |
logicalFacilityId | ID | Location axis (LogicalFacility arm — the most specific location level). |
channel | OrderChannel | Channel axis — the live selling channels; absent = both. |
rate | CommissionRate | The earning formula (sparse — the most-specific SET cell wins the parameter; unresolved anywhere = NO entry, commission is config-opt-in). |
enabled | Boolean | The per-cell master switch (sparse) — false at the winning cell suppresses the entry. |