# GET /api/v1/tax/rates

> List tax rates

- **Tag:** tax
- **Operation ID:** `list_tax_rates_api_v1_tax_rates_get`

## Description

List all tax rates for the business.

## Authentication

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

## Parameters

- `active_only` (query, boolean, optional) — Only show active rates
- `country` (query, string, optional) — Filter by country
- `state` (query, string, optional) — Filter by state

## Responses

### 200 — Successful Response

Schema: `TaxRatesListResponse`

- `items` (array · TaxRateResponse · required) → `TaxRateResponse` — List of items
  - `id` (string · required) — Tax rate UUID
  - `business_id` (string · required) — Business UUID
  - `name` (string · required) — Tax rate name
  - `rate` (number · required) — Tax rate as decimal
  - `rate_percent` (number · required) — Tax rate as percentage
  - `tax_type` (string · required) — Tax type
  - `country` (string · required) — Country code
  - `state` (string) — State/province
  - `county` (string) — County
  - `city` (string) — City
  - `tax_liability_ledger_id` (string) — Tax liability ledger
  - `is_default` (boolean · required) — Is default
  - `is_active` (boolean · required) — Is active
  - `created_at` (string · date-time · required) — Creation timestamp
  - `updated_at` (string · date-time · required) — Last update timestamp
- `total` (integer) — Total number of items (null when not calculated for performance)
- `limit` (integer) — Pagination limit
- `next_cursor` (string) — Cursor for next page
- `prev_cursor` (string) — Cursor for previous page
- `has_next` (boolean · required) — Whether there are more items
- `has_prev` (boolean · required) — Whether there are previous items

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 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/tax/rates' \
  -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/tax/rates', {
  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/tax/rates", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/tax/list-tax-rates
- OpenAPI slice: https://www.ondayzero.com/docs/reference/tax/list-tax-rates/openapi.json
- Other endpoints in **tax**: https://www.ondayzero.com/docs/reference/tax
