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