# Get a customer

> GET /api/public/v1/customers/{id}, scope directory.read. Techvia TMS public API v1 reference.

Source: https://techvia.software/docs/tms/reference/customers/get-a-customer/

`GET /api/public/v1/customers/{id}`

**Scope:** `directory.read`. **MCP tool:** `get_customer`. Rules and edge cases: [Customers guide](/docs/tms/guides/directory/).

## Parameters

| Name | In | Type | Required | Notes |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes |  |

## Responses

| Status | Meaning | Body |
|---|---|---|
| `200` | OK | `PublicCustomer` |
| `404` | Not Found | `ProblemDetails` |

### `200` body

| Field | Type | Notes |
|---|---|---|
| `id` | string (uuid) |  |
| `name` | string |  |
| `mcType` | string |  |
| `mcNumber` | string |  |
| `city` | string |  |
| `state` | string |  |
| `status` | enum CustomerStatus | One of `Active`, `Inactive` |
| `contactName` | string |  |
| `phone` | string |  |
| `email` | string |  |
| `rowVersion` | integer |  |

Errors are RFC 7807 problem details; see [Errors](/docs/tms/concepts/errors/).

**Example request**

**curl**

```bash
curl "https://tms-api.techvia.software/api/public/v1/customers/$ID" \
  -H "Authorization: Bearer $TMS_KEY"
```

**JavaScript**

```js
const id = '...'; // from a list or read call
const res = await fetch(`https://tms-api.techvia.software/api/public/v1/customers/${id}`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TMS_KEY}`,
  },
});
if (!res.ok) throw new Error(await res.text());
console.log(await res.json());
```

**Python**

```python

id = "..."  # from a list or read call
res = requests.request(
    "GET",
    f"https://tms-api.techvia.software/api/public/v1/customers/{id}",
    headers={"Authorization": f"Bearer {os.environ['TMS_KEY']}"},
)
res.raise_for_status()
print(res.json())
```

**Example response** `200`

```json
{
  "id": "01a20943-75ec-78ad-9764-7a1d1cc95684",
  "name": "Acme Foods",
  "mcType": null,
  "mcNumber": null,
  "city": "Dallas",
  "state": "TX",
  "status": "Active",
  "contactName": "Jordan Price",
  "phone": "214-555-0101",
  "email": "logistics@acmefoods.example",
  "rowVersion": 310
}
```

<p class="ep-caption">Illustrative values.</p>
