v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
ProductCalculation

Create product calculation line item V3

This endpoint requires the following scopes: productCalculation:create.

Create a product calculation line item

post/api/v3/products/{id}/calculationItems

Path parameters

idstring required

Request body

datestring date required

Date of the cost.

costType'oneTime' | 'perPiece' | 'perLot' | 'purchase' | 'oldMovingAverage' required

Type of the cost.

includeInCalculationboolean

Includes the line item into the calculation of the purchase price.

forQuantityinteger

Quantity for the total cost of the line item.

archivedboolean

Marks a calculation line item as archived. Archived line items will not be used for further calculations.

internalCommentstring

Internal comment. Intended to be used for company-internal notes.

Example request

{
  "date": "2026-01-01",
  "costType": "purchase",
  "includeInCalculation": true,
  "totalCost": {
    "amount": "100.00",
    "currency": "EUR"
  },
  "forQuantity": 10,
  "internalComment": "this is an internal comment"
}

Response

Create a product calculation line item

Example response

{
  "data": {
    "id": "33",
    "date": "2026-01-01",
    "costType": "purchase",
    "includeInCalculation": true,
    "totalCost": {
      "amount": "100.00",
      "currency": "EUR"
    },
    "forQuantity": 10,
    "costPerUnit": {
      "amount": "10.00",
      "currency": "EUR"
    },
    "purchaseOrder": {
      "id": "1234"
    },
    "editor": {
      "id": "17",
      "name": "JohnDoe"
    },
    "internalComment": "this is an internal comment"
  }
}