AlmondTill/G3N API

Dispute

object type

A Dispute — the Stripe chargeback lifecycle mirrored. Never wire-created: webhook-born from charge.dispute.created — the ingress resolves the parent Payment through the PI-metadata law, mints record-first (needs_response, deduped by a uniq reservation on disputeRef), appends Order.disputeIds (32 bound), and emits the payment_dispute_opened operational line (money-loss events are operator-mandatory). The processor holds the disputed funds while evidenceDueBy runs; won/lost land via charge.dispute.closed (an unanswered dispute closing lost rides the two-edge cascade needs_response→under_review→lost — the must-pass-under_review law); on lost the funds+fee reverse reports-only.

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 DP-… — stable for the record’s life.
typeString String!The kind of record — always Dispute here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of needs_response, under_review, won, lost or accepted.
parentIdID ID!The Payment whose charge is disputed; the record also names the Order anchoring the money story (orderId); 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.
orderIdID ID!The Order anchoring the money story (the parent Payment’s own parent — the Order.disputeIds bounded-append twin).
disputeRefID ID!The processor dispute ref (dp_…) — required always (webhook-born records carry their processor identity from birth; the uniq mint-dedup key).
amountMinorInt Int!The disputed amount in minor units (the processor’s figure verbatim — may differ from the payment on partial disputes).
currencyString String!The dispute currency — the processor’s figure verbatim.
reasonString String!The processor dispute reason code verbatim.
evidenceDueByStringThe processor’s evidence deadline (UTC ISO-8601) — operator-facing urgency; the processor enforces it.
stripeAccountRefStringThe Connect account context threaded from the parent Payment’s stamp. Null = the platform account.
evidenceTextStringThe evidence text submitted through the caller lane (stamped with the respond flip — the presence law; null on dashboard-side submissions and the accept path).

Used by