# POST /api/v1/inventory/counts/{count_id}/cancel

> Cancel a cycle count

- **Tag:** inventory:counts
- **Operation ID:** `cancel_count_api_v1_inventory_counts__count_id__cancel_post`

## Description

Mark a count as cancelled without posting adjustments.

## Authentication

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

## Parameters

- `count_id` (path, string, required)

## Responses

### 201 — Successful Response

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

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

### 409 — Conflict - Resource already exists

### 422 — Validation Error - Invalid data format

## Code samples

### cURL

```bash
curl -X POST 'https://api.ondayzero.com/api/v1/inventory/counts/{count_id}/cancel' \
  -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/inventory/counts/{count_id}/cancel', {
  method: 'POST',
  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.post("https://api.ondayzero.com/api/v1/inventory/counts/{count_id}/cancel", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/inventory-counts/cancel-count
- OpenAPI slice: https://www.ondayzero.com/docs/reference/inventory-counts/cancel-count/openapi.json
- Other endpoints in **inventory:counts**: https://www.ondayzero.com/docs/reference/inventory-counts
