# acceptDispute

mutation · in the family [Dispute](/reference/dispute/)

## What it does

Record that you accept a customer’s card dispute (a chargeback) instead of fighting it.

Accept (concede) a Dispute: the processor close fires FIRST (POST /v1/disputes/:id/close — never inside a transaction; a processor refusal is CONFLICT/RECONCILE, retryable), then the flip commits. The withdrawn funds stay withdrawn — reports-only impact. Carries authority:manage_dispute. Requires the unrestricted capability + the record's CURRENT revision.

## What happens

Moves the dispute to “accepted” — the card networks return the money to the cardholder.

## Careful

Money leaves for good: an accepted dispute cannot be re-fought. Use it when the customer is right or fighting costs more than the sale.

## 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:acceptDispute`

## Arguments

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | [ID](/types/#scalars) `ID!` | yes | The id of the record. |
| `revision` | [ID](/types/#scalars) `ID!` | yes | The revision id you read on the record; the change is refused if an edit landed in the meantime. |
| `reason` | [String](/types/#scalars) | no | No further notes. |

## Returns

[Dispute](/types/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

```graphql
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:

```json
{
  "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

```json
{
  "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
        }
      }
    }
  }
}
```

## Errors this call can answer

- `VALIDATION/INVALID` — Something in the request is not valid. ([VALIDATION](/errors/VALIDATION/))
- `AUTHN/REQUIRED` — Sign in to do this. ([AUTHN](/errors/AUTHN/))
- `AUTHZ/FORBIDDEN` — Your role does not allow this action. ([AUTHZ](/errors/AUTHZ/))
- `RATE_LIMIT/THROTTLED` — Too many requests in a short time. ([RATE_LIMIT](/errors/RATE_LIMIT/))
- `NOT_FOUND/*` — That record could not be found. ([NOT_FOUND](/errors/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](/errors/CONFLICT/))
- `VALIDATION/VERSION_REQUIRED` — The request did not say which app version it came from. ([VALIDATION](/errors/VALIDATION/))

## Used in

- [Answer a card dispute](/use-cases/answer-a-card-dispute/)
