# POST /api/v1/o2c/deals/{deal_id}/reopen

> Reopen a lost deal

- **Tag:** deals
- **Operation ID:** `reopen_deal_api_v1_o2c_deals__deal_id__reopen_post`

## Description

Restore a closed_lost deal to whatever stage it was in right before it was marked lost. Pre-handoff only -- a deal that has already converted to an order (`order_id` set) can never be reopened here.

## Authentication

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

## Parameters

- `deal_id` (path, string, required)

## Responses

### 201 — Successful Response

Schema: `SuccessEnvelope_DealResponse_`

- `success` (boolean)
- `message` (string)
- `code` (string)
- `data` (DealResponse)

### 400 — Bad Request - Invalid input

### 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 POST 'https://api.ondayzero.com/api/v1/o2c/deals/{deal_id}/reopen' \
  -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/o2c/deals/{deal_id}/reopen', {
  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/o2c/deals/{deal_id}/reopen", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/deals/reopen-deal
- OpenAPI slice: https://www.ondayzero.com/docs/reference/deals/reopen-deal/openapi.json
- Other endpoints in **deals**: https://www.ondayzero.com/docs/reference/deals
