---
title: "Retrieve a contract"
method: GET
path: "/customers/{customerID}/contracts/{contractID}"
tags: ["Contracts"]
---

# Retrieve a contract

`GET /customers/{customerID}/contracts/{contractID}`

Returns the specified contract.

## Path parameters

- `customerID` string, required
- `contractID` string, required

## Response `200`

OK - Contract returned.

- MTSContractDetailResponse — External view of a contract. DoiT-internal fields are not exposed.
  - `id` string — The unique identifier of the contract.
  - `customerId` string — The customer (tenant) that holds the contract.
  - `type` string — The immutable contract type.
  - `status` 'draft' | 'scheduled' | 'active' | 'cancelled' | 'expired' | 'superseded' — The contract status.
  - `name` string — The contract name.
  - `startDate` string, date-time, nullable — The contract start date.
  - `endDate` string, date-time, nullable — The contract end date.
  - `renewalPolicy` 'auto' | 'manual' | 'fixed' — The renewal policy.
  - `currentVersionNumber` integer, nullable — The current version number of the contract.
  - `timeCreated` string, date-time — When the contract was created.
  - `versions` object[] — The contract versions, newest last, with their billing terms.
    - `version` integer — Contract version number.
    - `status` string — Version status.
    - `name` string
    - `startDate` string, date-time
    - `endDate` string, date-time, nullable
    - `effectiveStart` string, date-time
    - `effectiveEnd` string, date-time, nullable
    - `renewalPolicy` string
    - `cancellationReason` string, nullable
    - `billingProfile` object
    - `invoicesEmail` string, email
    - `contractUpdatesEmail` string, email
    - `managementAccounts` string[]
    - `billingRules` object[]
    - `priceBooks` object[]
    - `customLineItems` object[]

## Other responses

- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `404` — Not Found - The requested resource does not exist.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
