---
search:
  tags:
    - Products
    - POST
seo:
  description: >-
    Create a product. Requires a Write key. Reference for the POST /products
    endpoint in the scango.ch API.
sidebar:
  label: Create product
  badge: POST
title: Create product
type: openapi-operation
---
Create a product. Requires a Write key.

`POST /products`

**Request body** (`application/json`, required)

- `name` (string, required)
- `price` (number, required) — Price in cents
- `taxCategory` (string, required)
- `supplier` (string)
- `category` (string)
- `declarations` (string)
- `barcode` (string) — Normalized to lowercase; empty becomes the document id
- `barcodeAliases` (object[]) — Optional additional EANs. Omit when unused. Available when the barcode aliases feature is enabled for the organization. Returns 403 \`Feature not available\` when barcode aliases are not enabled for the organization.
- `externalId` (string)
- `depositProduct` (number) — Deposit in cents
- `depositProductLabel` (string)
- `description` (string)
- `salePrice` (number)
- `salePercentage` (number)
- `salePriceDateFrom` (string<date-time>)
- `salePriceDateTo` (string<date-time>)
- `costPrice` (number)
- `margin` (number)
- `showOnScreen` (boolean)
- `ageRestriction` (boolean)
- `showOnScale` (boolean)
- `saleStop` (boolean)
- `deactivated` (boolean)
- `imageUrl` (string) — Image URL, stored as given. To upload a file, use \`POST /products/{productId}/image\`.
- `index` (number)

Request body example:

```json
{
  "name": "Orange juice 1L",
  "price": 349,
  "taxCategory": "2.6",
  "description": "Fresh orange juice",
  "supplier": "sup_01",
  "category": "cat_beverages",
  "barcode": "7610800009999",
  "externalId": "sku-oj-1l",
  "showOnScreen": true,
  "ageRestriction": false,
  "showOnScale": false,
  "saleStop": false
}
```

**Responses**

- `200` — Product created
- `400` — Invalid parameters or body.
- `403` — Missing, unknown or inactive API key, or a Read key on a write operation.

Response example, 200:

```json
{
  "success": true,
  "id": "newProductId"
}
```

Response example, 400:

```json
{
  "statusCode": 400,
  "message": "Validation failed for Field: name, Error: Required",
  "timestamp": "2024-04-20T12:00:00.000Z",
  "path": "/api/v1/suppliers"
}
```

Response example, 403:

```json
{
  "statusCode": 403,
  "message": "Unknown Error",
  "timestamp": "2024-04-20T12:00:00.000Z",
  "path": "/api/v1/products"
}
```
