AlmondTill/G3N API

Payment

object type

A Payment — a processor-backed payment (the integrated processing mode), spawned by a card Tender. Aligned to the deposit→recognition model: authorize = the hold = deposit at tender; capture = recognized at delivery — POS carry-out collapses authorize+capture by arriving at delivery in the same request, never by skipping states. Record-first/processor-after: minted created before any processor call; the StripePort attempt fires post-commit; state flips ride the ACK/webhook path; 32 attempts bound each order (the Order.paymentIds cap). PCI-min: the PAN never touches AT/stack — the record holds the opaque tokenized methodRef + processor refs + at most brand/last4. The StripePort is faked at 7.7a (deterministic, keyless); the live adapter + webhook ingress are 7.7b.

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 PY-… — stable for the record’s life.
typeString String!The kind of record — always Payment here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of created, authorized, captured, succeeded, failed, cancelled or voided.
parentIdID ID!The Order this payment settles; 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.
organizationIdID ID!The selling Organization.
amountMinorInt Int!The amount applied toward the order balance in minor units (positive — the spawning tender appliedMinor twin).
tipMinorIntThe tip portion charged ON top of amountMinor.
currencyString String!The settlement currency — the order currency snapshot.
methodRefString String!The opaque tokenized payment method presented (Stripe pm_… class — never a PAN; the raw-card shape refuses at the boundary).
tenderIdIDThe spawned Tender row — stamped with the authorize flip (present from authorized onward).
stripeAccountRefStringThe Connect account this payment routes direct on. Null = the platform account. Capture/cancel/refund thread this stamp — immutable payment history.
sagaIdIDThe orchestrating checkout Saga: its WaitForTaskToken owns the capture instant. Null = the inline capture lanes own this payment (the bulkhead).
intentRefIDThe processor PaymentIntent ref — stamped from the authorize ACK (present from authorized onward).
chargeRefIDThe processor charge ref — stamped from the capture ACK (present from captured onward).
brandStringThe card brand as the processor reported it (PCI-min — never caller-typed).
last4StringThe last four digits as the processor reported them.
declineReasonStringThe processor decline/failure reason (failed payments only).

Used by