# POST /api/v1/inventory/adjustments

> Create manual inventory adjustment

- **Tag:** inventory:adjustments
- **Operation ID:** `create_inventory_adjustment_api_v1_inventory_adjustments_post`

## Description

Create a manual inventory adjustment for a variant at a specific location. If no location is specified, the adjustment is applied to the default location.

## Authentication

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

## Request body

Schema: `InventoryAdjustmentRequest`

- `variant_id` (string · required) — Product variant UUID to adjust.
- `quantity_change` (integer · required) — Quantity change: positive to add, negative to subtract. Cannot be zero.
- `reason` (string · required) — Required reason for the adjustment.
- `location_id` (string) — Location UUID where adjustment applies. Uses default location if not specified.

## Responses

### 201 — Successful Response

Schema: `InventoryAdjustmentResponse`

- `id` (string · required) — Adjustment UUID.
- `business_id` (string · required) — Business UUID.
- `variant_id` (string · required) — Adjusted variant UUID.
- `delta` (integer · required) — Quantity change applied.
- `correction_reason` (string) — Adjustment reason.
- `location_id` (string) — Location where adjustment was applied.
- `created_at` (string · date-time · required) — When adjustment was made.

### 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/inventory/adjustments' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "variant_id": "string",
  "quantity_change": 0,
  "reason": "string"
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/inventory/adjustments', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "variant_id": "string",
  "quantity_change": 0,
  "reason": "string"
}),
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

payload = {
  "variant_id": "string",
  "quantity_change": 0,
  "reason": "string"
}

response = httpx.post("https://api.ondayzero.com/api/v1/inventory/adjustments", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/inventory-adjustments/create-inventory-adjustment
- OpenAPI slice: https://www.ondayzero.com/docs/reference/inventory-adjustments/create-inventory-adjustment/openapi.json
- Other endpoints in **inventory:adjustments**: https://www.ondayzero.com/docs/reference/inventory-adjustments
