---
title: "Add/modify a product"
method: POST
path: "/company/products"
tags: ["Configuration"]
---

# Add/modify a product

`POST /company/products`

## Request

- Base URL: `https://api.altera.co`
- URL: `https://api.altera.co/company/products`
- Auth: API key in header `Authorization`

This endpoint provides the means for adding/updating sale invoice products for later use in the system

## Request body

- InvoiceProduct
  - `productId` integer
  - `itemType` 'PRODUCT' | 'SERVICE'
  - `productName` string
  - `unit` string
  - `price` string
  - `vatPerc` string
  - `pkwiu` string
  - `gtu` string
  - `category` integer
  - `favourite` boolean
  - `enabled` boolean

## Response `200`

OK

- object
  - `result` string
  - `data` object
    - `productId` integer

## Other responses

- `401`: KEY_EXPIRED: a verified API key has expired. This requires that the company still has OpenAPI access. Unknown/invalid keys can receive the gateway 403.

## Changes

- **2026-10-12** `45544bcb4e8a`: 1 info
  - added the non-success response with the status `401`
- **2024-08-26** `64c683372c45`: 1 info
  - endpoint added
- **2024-08-26** `a2d864f3a8db`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/altera-co/apis/altera-api/changes/company/products/post.md)

---

[API](https://skmtc.dev/altera-co/apis/altera-api.md) - [All operations](https://skmtc.dev/altera-co/apis/altera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/altera-co/apis/altera-api/revisions/45544bcb4e8a?raw)
