# disputes

Query · GraphQL API

A paginated list of disputes that match the DisputeSearchInput.

## Authentication

- SERVER

## Input

- `input` (`DisputeSearchInput!`) — required
- `first` (`Int`)
- `after` (`String`)

## Returns [DisputeConnection](/braintree/graphql/reference/types/dispute-connection)

A paginated list of disputes.

### Returned fields

- `edges` (`[DisputeConnectionEdge]`): A list of disputes.
- `pageInfo` (`PageInfo!`) — non-null: Information about the page of disputes contained in `edges`.

## Examples

### Search disputes

A paginated list of disputes that match the DisputeSearchInput.

```graphql
query searchDisputes($input: DisputeSearchInput!, $first: Int, $after: String)  {
  disputes(input: $input, first: $first, after: $after) {
    edges {
      cursor
      node {
        __typename
        id
        legacyId
        amountDisputed {
          value
          currencyCode
        }
        amountWon {
          value
          currencyCode
        }
        caseNumber
        createdAt
        receivedDate
        referenceNumber
        responseDeadline
        replyByDate
        type
        evidence {
          __typename
          ... on DisputeFileEvidence {
            __typename
            id
            legacyId
            createdAt
            sentToProcessorAt
            url
            category
          }
          ... on DisputeTextEvidence {
            __typename
            id
            legacyId
            createdAt
            sentToProcessorAt
            content
            category
          }
        }
        originalDispute {
          __typename
          id
          legacyId
        }
        processorResponse {
          processorComments
          reason
          reasonCode
          reasonDescription
          receivedDate
          referenceNumber
        }
        status
        statusHistory {
          disbursementDate
          status
          timestamp
          effectiveDate
        }
        transaction {
          __typename
          id
          legacyId
        }
        protectionLevel
        preDisputeProgram
        remainingFileEvidenceStorage
      }
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)