# GET /api/v1/vendors/{id}

> Get vendor

- **Tag:** vendors
- **Operation ID:** `get_vendor_api_v1_vendors__id__get`

## Description

Retrieve a specific vendor by ID.

## Authentication

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

## Parameters

- `id` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `VendorResponse`

- `id` (string · required) — Vendor UUID.
- `business_id` (string · required) — Business UUID.
- `name` (string · required) — Vendor name.
- `email` (string) — Vendor email address.
- `address` (string) — Vendor business address.
- `phone` (string) — Vendor phone number.
- `tax_id` (string) — Tax identification number.
- `website` (string) — Vendor website URL.
- `notes` (string) — Internal notes.
- `credit_limit_cents` (integer) — Credit limit in cents.
- `default_payment_term_id` (string) — Default payment term ID.
- `status` (string) — Vendor status.
- `category` (string) — Business category.
- `default_location_id` (string) — Default ship-from location ID for purchase orders.
- `default_location_name` (string) — Default ship-from location name (resolved).
- `is_deleted` (boolean) — Whether vendor is soft deleted.
- `deleted_at` (string · date-time) — Timestamp when vendor was deleted.
- `created_at` (string · date-time · required) — Creation timestamp.
- `updated_at` (string · date-time · required) — Last update timestamp.
- `contacts` (array · VendorContactResponse) — Vendor contacts.

### 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/vendors/{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/vendors/{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/vendors/{id}", headers=headers)
data = response.json()
```

## See also

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