AlmondTill/G3N API

TokenPurchase

object type

A TokenPurchase — buying platform tokens with real money: $ → tokens at the volume tier (tier_1 | tier_2 | tier_3 | tier_4 — server-computed, never client-asserted), loaded into the group's TokenAccount as a purchase TokenEntry when the webhook settles. **AT/stack charging the merchant** — the platform account's OWN PaymentIntent. **non-refundable**. The birth op mints the test PaymentIntent api-side with the load-bearing metadata {at_kind, tokenPurchaseId, rootId}. The real-money gate = classification × Stripe mode. Purchase-abandon reconciliation beyond canceled = deferral 14a. NOT searchable. Template class A16_BILLING (hand-derived v23).

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 TP-… — stable for the record’s life.
typeString String!The kind of record — always TokenPurchase here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of created, succeeded or failed.
parentIdID ID!The parent TokenAccount; rootId = the org group; parentId!== rootId always.
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.
usdAmountCentsInt Int!The charge magnitude, USD cents. 500..2500000.
tokensPurchasedInt Int!The server-computed token load at the volume tier.
volumeTierCodeString String!tier_1 | tier_2 | tier_3 | tier_4 — the tier that priced it (replayability with rateCardVersion).
rateCardVersionInt Int!The rate-card/tier config version in force at birth.
stripePaymentIntentIdString String!The platform Stripe PaymentIntent.
settledAtStringWhen the webhook settled it (stamped at succeeded/failed; absent while created).

Used by