Answer a card dispute
Fight the chargeback with your evidence — usually one shot — or accept it and let the money go back to the cardholder.
Payments & fulfillment · a play in 2 steps.
The steps
- Submit your evidence — receipts, delivery proof — complete, the first time. — submitEvidenceDispute
- Or accept it — the money returns to the cardholder for good. — acceptDispute
The calls
Every operation this use case runs, in the order it first appears, with the request and the response its reference page shows.
submitEvidenceDispute
submitEvidenceDispute — mutation · Fight a card dispute — submit your evidence (receipts, delivery proof) to the card networks.
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
}
}
}
}
}
acceptDispute
acceptDispute — mutation · Record that you accept a customer’s card dispute (a chargeback) instead of fighting it.
Example request
mutation ExampleAcceptDispute($id: ID!, $revision: ID!, $reason: String) {
acceptDispute(id: $id, revision: $revision, reason: $reason) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
organizationId
orderId
disputeRef
amountMinor
currency
reason
evidenceDueBy
stripeAccountRef
evidenceText
}
}
Variables:
{
"id": "01900000-0000-7000-8000-37386ae00000",
"revision": "01900000-0000-7000-8000-b7960e180000",
"reason": "Correcting a miscount."
}
Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.
Example response
{
"data": {
"acceptDispute": {
"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
}
}
}
}
}