v1

latestOpenAPI 3.0.02026-07-1315476656.4 KB
OrderPos

Update an existing order position

Update an order position

put/OrderPos/{orderPosId}

Path parameters

orderPosIdinteger required

ID of order position to update

Request body

idinteger

The order position id

objectNamestring

The order position object name

createstring date-time

Date of order position creation

updatestring date-time

Date of last order position update

quantitynumber nullable

Quantity of the article/part

pricenumber nullable

Price of the article/part. Is either gross or net, depending on the sevdesk account setting.

priceNetnumber nullable

Net price of the part

priceTaxnumber nullable

Tax on the price of the part

priceGrossnumber nullable

Gross price of the part

namestring nullable

Name of the article/part.

positionNumberinteger nullable

Position number of your position. Can be used to order multiple positions.

textstring nullable

A text describing your position.

discountnumber nullable

An optional discount of the position.

optionalboolean nullable

Defines if the position is optional.

taxRatenumber nullable

Tax rate of the position.

sumDiscountnumber nullable

Discount sum of the position

Example request

{
  "objectName": "OrderPos",
  "create": "01.01.2020",
  "update": "01.01.2020",
  "order": {
    "objectName": "Order"
  },
  "part": {
    "objectName": "Part"
  },
  "quantity": 1,
  "price": 100,
  "name": "Dragonglass",
  "unity": {
    "objectName": "Unity"
  },
  "positionNumber": 1,
  "taxRate": 19
}

Response

Successful operation - Returns changed order position resource

idstring

The order position id

objectNamestring

The order position object name

createstring date-time

Date of order position creation

updatestring date-time

Date of last order position update

quantitystring

Quantity of the article/part

pricestring nullable

Price of the article/part. Is either gross or net, depending on the sevdesk account setting.

priceNetstring nullable

Net price of the part

priceTaxstring nullable

Tax on the price of the part

priceGrossstring nullable

Gross price of the part

namestring nullable

Name of the article/part.

positionNumberstring nullable

Position number of your position. Can be used to order multiple positions.

textstring nullable

A text describing your position.

discountstring nullable

An optional discount of the position.

optionalboolean nullable

Defines if the position is optional.

taxRatestring

Tax rate of the position.

sumDiscountstring nullable

Discount sum of the position

Example response

{
  "id": "0",
  "objectName": "OrderPos",
  "create": "01.01.2020",
  "update": "01.01.2020",
  "order": {
    "id": "0",
    "objectName": "Order"
  },
  "part": {
    "id": "0",
    "objectName": "Part"
  },
  "quantity": "1",
  "price": "100",
  "priceNet": "100",
  "priceTax": "19",
  "priceGross": "119",
  "name": "Dragonglass",
  "unity": {
    "id": "0",
    "objectName": "Unity"
  },
  "sevClient": {
    "id": "0"
  },
  "positionNumber": "1",
  "taxRate": "19"
}