AlmondTill/G3N API

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

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like AF-… — stable for the record’s life.
typeString String!The kind of record — always Affiliate here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of active, inactive or doomed.
parentIdID ID!The parent org group; for an Affiliate parentId === rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID 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.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
organizationIdsID [ID!]The canned-pool org selection — absent = every org in the group participates.
codesAffiliateCode [AffiliateCode!]The owned referral codes (≤ 8; stored normalized; each marker-reserved). Absent/empty = a code-less (idle) affiliate — legal.
ratePpmIntThe flat earning rate
consumerIdIDThe shopper link. Optional — a link, never an identity merge; flows byte-for-byte unchanged.
handleStringThe public influencer handle (trimmed 1..64). NOT unique.
bioStringThe influencer bio (trimmed ≤2000).
socialLinksString [String!]The social profile links (≤8 trimmed url-ish strings; wholesale-replace on edit — the codes-array class).
audienceSizeIntThe self-reported audience figure (≥0 — informational; verification).
nicheTagsString [String!]The content-niche descriptors.

Used by