# POST /api/v1/inventory/products

> Create product

- **Tag:** inventory:products
- **Operation ID:** `create_product_api_v1_inventory_products_post`

## Description

Create a new product for the specified business. A connected Stripe account is **not** required; Stripe Catalog sync happens later when variants are added with Stripe connected.

## Authentication

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

## Request body

Schema: `ProductCreateRequest`

- `name` (string · required) — Product name displayed to customers.
- `type` (string · required) — Product source type: 'manual' (created here) or 'shopify' (synced).
- `category` (string) — Product category (e.g. 'Finished Goods', 'Intermediate Goods', 'Ingredients', 'Packaging').
- `tracks_expiration` (boolean) — When true, cost-lot consumption uses FEFO (earliest expiration first) instead of FIFO. Defaults to false.

## Responses

### 201 — Successful Response

Schema: `SuccessEnvelope_ProductResponse_`

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

### 400 — Bad request - invalid data

### 404 — Business not found

### 409 — Product with same identifier already exists

### 422 — Validation error

## Code samples

### cURL

```bash
curl -X POST 'https://api.ondayzero.com/api/v1/inventory/products' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "type": "string"
}'
```

### JavaScript

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

### Python

```python
import httpx

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

payload = {
  "name": "string",
  "type": "string"
}

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

## See also

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