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). Requires the doc current revision + the unrestricted capability.
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Refunds and payment corrections — Refunds, corrective notes and voiding invoices.
Roles that may call it:
- Owner
- Manager
- Associate Manager
- An API key whose scope allows
api:submitEvidenceDispute
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.
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
input | SubmitEvidenceDisputeInput SubmitEvidenceDisputeInput! | yes | Evidence-input for submitEvidenceDispute: ONE free-text field (the minimal-strict surface — maps to the processor's uncategorized_text evidence slot; structured evidence fields are deferred growth). |
Concurrency
Send the record’s current revision from your last read as expectedRevision. A stale revision is refused as CONFLICT/REVISION_STALE — read the record again and retry with the new value.
Returns
Dispute Dispute! — 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.
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-c8f04d1b0000",
"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-c8f04d1b0000",
"sysId": "DP-EXMP-0000-000F",
"type": "Dispute",
"caption": "Blue jeans",
"status": "under_review",
"parentId": "01900000-0000-7000-8000-20f641110000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"organizationId": "01900000-0000-7000-8000-1971e30a0000",
"orderId": "01900000-0000-7000-8000-18e782370000",
"disputeRef": "01900000-0000-7000-8000-fec151240000",
"amountMinor": 1250,
"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. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (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. Retry: no. (VALIDATION)