Affiliate
object type
An Affiliate — the merchant's affiliate/influencer promoter, rewarded for driving retail sales. Org participation is the canned-pool selection (≤ 32; absent = every org). The referral and coupon namespaces are independent: couponId is an informational link (validated live, same-group) — registering the same string in both, linked, is the influencer pattern (use code for 10% off — the coupon discounts, the referral attributes). Cancel claws in full; returns claw pro-rata with the cumulative floor (the arm class); payouts are period reports. Searchable (the merchant-curated book is name-found — the law); at most 128 active per group.
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 AF-… — stable for the record’s life. |
type | String String! | The kind of record — always Affiliate 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 an Affiliate 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. |
organizationIds | ID [ID!] | The canned-pool org selection — absent = every org in the group participates. |
codes | AffiliateCode [AffiliateCode!] | The owned referral codes (≤ 8; stored normalized; each marker-reserved). Absent/empty = a code-less (idle) affiliate — legal. |
ratePpm | Int | The flat earning rate |
consumerId | ID | The shopper link. Optional — a link, never an identity merge; flows byte-for-byte unchanged. |
handle | String | The public influencer handle (trimmed 1..64). NOT unique. |
bio | String | The influencer bio (trimmed ≤2000). |
socialLinks | String [String!] | The social profile links (≤8 trimmed url-ish strings; wholesale-replace on edit — the codes-array class). |
audienceSize | Int | The self-reported audience figure (≥0 — informational; verification). |
nicheTags | String [String!] | The content-niche descriptors. |