# PUT /api/v1/invoices/{invoice_id}/delivered

> Mark Invoice Delivered

- **Tag:** invoices
- **Operation ID:** `mark_invoice_delivered_api_v1_invoices__invoice_id__delivered_put`

## Description

Mark an invoice as delivered to the customer.

**Path Parameters:**
- `invoice_id`: UUID of the invoice

**Query Parameters:**
- `delivered_on`: Delivery date (ISO 8601 format)

**Effect:** Records when the invoice was sent/delivered to the customer.

## Authentication

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

## Parameters

- `invoice_id` (path, string · uuid, required)
- `delivered_on` (query, string, required) — Delivered date (ISO 8601 format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ)

## Responses

### 200 — Successful Response

Schema: `SuccessEnvelope_InvoiceResponse_`

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

### 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 PUT 'https://api.ondayzero.com/api/v1/invoices/{invoice_id}/delivered' \
  -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/invoices/{invoice_id}/delivered', {
  method: 'PUT',
  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.put("https://api.ondayzero.com/api/v1/invoices/{invoice_id}/delivered", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/invoices/mark-invoice-delivered
- OpenAPI slice: https://www.ondayzero.com/docs/reference/invoices/mark-invoice-delivered/openapi.json
- Other endpoints in **invoices**: https://www.ondayzero.com/docs/reference/invoices
