# GET /api/v1/vendor-contracts/{contract_id}

> Get vendor contract

- **Tag:** vendor-contracts
- **Operation ID:** `get_vendor_contract_api_v1_vendor_contracts__contract_id__get`

## Description

Get details of a specific vendor contract.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `contract_id` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `VendorContractResponse`

- `name` (string · required) — Contract/agreement name.
- `vendor_id` (string · required) — Vendor UUID.
- `status` (string) — Contract status: draft, active, expired, terminated.
- `effective_date` (string · date) — Contract start date.
- `expiration_date` (string · date) — Contract end date.
- `contracted_amount_cents` (integer) — Agreed amount per billing period in cents.
- `billing_frequency` (string) — Billing frequency: monthly, quarterly, annually, one_time, weekly, biweekly.
- `terms_summary` (string) — Summary of key contract terms (AI-extracted or manual).
- `s3_key` (string) — S3 key for the original MSA/contract PDF.
- `id` (string · required) — Contract UUID.
- `business_id` (string · required) — Business UUID.
- `vendor_name` (string) — Vendor name (resolved).
- `created_at` (string)
- `updated_at` (string)

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/vendor-contracts/{contract_id}' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/vendor-contracts/{contract_id}', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/vendor-contracts/{contract_id}", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/vendor-contracts/get-vendor-contract
- OpenAPI slice: https://www.ondayzero.com/docs/reference/vendor-contracts/get-vendor-contract/openapi.json
- Other endpoints in **vendor-contracts**: https://www.ondayzero.com/docs/reference/vendor-contracts
