> For the complete documentation index, see [llms.txt](https://gp0.gitbook.io/graphql-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gp0.gitbook.io/graphql-docs/legal/select-contract-details.md).

# Select contract details

## Explanation

Contract IDs are retrieved for a single contract along with relevant information including works and dates.

```
query GetContractDetails($contractId: Int!) {
  contract(contractSearch: {idEq: $contractId}) {
    id
    contractName
    description
    client {
      name
    }
    work {
      title
    }
    signedDate
    term
    terminatedDate
    terminationReason
    deliveryDates {
      dateDue
      deliverableType
      deliveryRequirement
      id
      percentageOfTotal
      slippedDate
    }
    gratisCopies {
      note
      numberOfCopies
      sendOn
      sentOn
      productId
    }
  }
}
```

Define your contract ID variable:

```
{
  "contractId": YOUR_CONTRACT_ID_HERE
}
```
