AlmondTill/G3N API

AffiliateAccrual

object type

One platform referral-earnings fact. accrue (+, the subscription line — 20% of each referred group's collected base-fee overhead, lifetime both-in-good-standing) · usage (+, the consumption line — 10% of the referred group's monthly consumed paid-kernel value, its first 12 billed months) · applied (−, bill-netting — your own base fee credit-settled against earnings) · clawback (−, a dispute reversal). Each entry snapshots its rate + basis (self-auditing at every parse).

Fields

FieldTypeNotes
idID ID!
typeString String!
captionString String!
statusString String!
parentIdID ID!The paying group's TokenAccount (the driving fact's own anchor — your wallet on applied entries).
rootIdID ID!The paying org group.
createdAtString String!
updatedAtString String!
revisionNumInt Int!
revisionID ID!
entryTypeString String!accrue | usage | applied | clawback.
ownerOrgGroupIdID ID!The earning org group.
periodMonthString String!The entry's month (yyyy-mm — the collected/consumed/netted period).
cycleIntaccrue only: the referred group's billed-cycle ordinal.
ratePercentIntThe rate that applied (percent — the two earning lines; snapshotted, the entry never lies).
collectedUsdCentsIntaccrue only: the accrual basis in USD cents.
usageBasisCentsIntusage only: the month's consumed paid-kernel value this entry commissions (USD cents — exact per-block prices).
amountUsdCentsInt Int!The figure, USD cents — signed by type: accrue/usage strictly positive · applied/clawback strictly negative.
billingChargeIdIDaccrue only: the driving BillingCharge. Absent on a credit-settled cycle's accrue (no charge document exists — the payer's own applied entry is the netting's trail).

Used by