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