On this page
submitEvidenceDispute
mutation · in the family Refunds and payment corrections
What it does
Fight a card dispute — submit your evidence (receipts, delivery proof) to the card networks.
SUBMIT dispute evidence: the processor submission fires FIRST (evidence[uncategorized_text] + submit=true — never inside a transaction; a processor refusal is CONFLICT/RECONCILE, retryable, nothing changed), then the flip stamps evidenceText WITH it (the presence law). Carries authority:manage_dispute. Requires the doc CURRENT revision (OCC) + the unrestricted capability.
What happens
The evidence goes to the processor; the networks decide won or lost.
Careful
Usually one shot — networks rarely accept second evidence. Submit your best case, complete, the first time.
Who may call it
Capability area: Refunds and payment corrections — Refunds, corrective notes and voiding invoices.
- Owner
- Manager
- Associate Manager
- An API key whose scope allows
api:submitEvidenceDispute
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
input | SubmitEvidenceDisputeInput SubmitEvidenceDisputeInput! | yes | No further notes. |
Returns
Dispute Dispute! — A Dispute — the Stripe chargeback lifecycle mirrored (SPEC_CATALOG 147; the / fraud-signal seed). 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. The TWO caller lanes carry authority:manage_dispute: submitEvidenceDispute (the evidence bespoke) and acceptDispute (concede via the processor close).
Example request
mutation ExampleSubmitEvidenceDispute($input: SubmitEvidenceDisputeInput!) {
submitEvidenceDispute(input: $input) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
organizationId
orderId
disputeRef
amountMinor
currency
reason
evidenceDueBy
stripeAccountRef
evidenceText
}
}
Variables:
{
"input": {
"disputeId": "01900000-0000-7000-8000-8d9f8e960000",
"expectedRevision": "01900000-0000-7000-8000-e02b2e6c0000",
"evidenceText": "<evidence text>"
}
}
Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.
Example response
{
"data": {
"submitEvidenceDispute": {
"id": "01900000-0000-7000-8000-37386ae00000",
"sysId": "DP-EXMP-0000-000F",
"type": "Dispute",
"caption": "Blue jeans",
"status": "needs_response",
"parentId": "01900000-0000-7000-8000-065235280000",
"rootId": "01900000-0000-7000-8000-a093dd800000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-b7960e180000",
"organizationId": "01900000-0000-7000-8000-44b781470000",
"orderId": "01900000-0000-7000-8000-f6d8263a0000",
"disputeRef": "01900000-0000-7000-8000-fec151240000",
"amountMinor": 1,
"currency": "USD",
"reason": "Correcting a miscount.",
"evidenceDueBy": "<evidence due by>",
"stripeAccountRef": "<stripe account ref>",
"evidenceText": "<evidence text>"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": {
"name": "genesis",
"number": 0
},
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}
Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. (NOT_FOUND)CONFLICT/*— The record’s state, or a change made in the meantime, does not allow this; the codes are on the CONFLICT page. (CONFLICT)VALIDATION/VERSION_REQUIRED— The request did not say which app version it came from. (VALIDATION)