v1

latestOpenAPI 3.0.02026-07-1315476656.4 KB
Part

Create a new part

Creates a part in your sevdesk inventory.

post/Part

Request body

idinteger

The part id

objectNamestring

The part object name

createstring date-time

Date of part creation

updatestring date-time

Date of last part update

namestring required

Name of the part

partNumberstring required

The part number

textstring nullable

A text describing the part

stocknumber float required

The stock of the part

stockEnabledboolean

Defines if the stock should be enabled

pricenumber float nullable

Net price for which the part is sold. we will change this parameter so that the gross price is calculated automatically, until then the priceGross parameter must be used.

priceNetnumber float nullable

Net price for which the part is sold

priceGrossnumber float nullable

Gross price for which the part is sold

pricePurchasenumber float nullable

Purchase price of the part

taxRatenumber float required

Tax rate of the part

status50 | 100 nullable

Status of the part. 50 <-> Inactive - 100 <-> Active

internalCommentstring nullable

An internal comment for the part.<br> Does not appear on invoices and orders.

Example request

{
  "name": "Dragonglass",
  "partNumber": "Part-1000",
  "category": {
    "objectName": "Category"
  },
  "stock": 10000,
  "unity": {
    "id": 1,
    "objectName": "Unity"
  },
  "price": 100,
  "priceNet": 100,
  "priceGross": 119,
  "pricePurchase": 50,
  "taxRate": 19,
  "status": 100
}

Response

Created - Returns created part

idinteger

The part id

objectNamestring

The part object name

createstring date-time

Date of part creation

updatestring date-time

Date of last part update

namestring required

Name of the part

partNumberstring required

The part number

textstring nullable

A text describing the part

stocknumber float required

The stock of the part

stockEnabledboolean

Defines if the stock should be enabled

pricenumber float nullable

Net price for which the part is sold. we will change this parameter so that the gross price is calculated automatically, until then the priceGross parameter must be used.

priceNetnumber float nullable

Net price for which the part is sold

priceGrossnumber float nullable

Gross price for which the part is sold

pricePurchasenumber float nullable

Purchase price of the part

taxRatenumber float required

Tax rate of the part

status50 | 100 nullable

Status of the part. 50 <-> Inactive - 100 <-> Active

internalCommentstring nullable

An internal comment for the part.<br> Does not appear on invoices and orders.

Example response

{
  "name": "Dragonglass",
  "partNumber": "Part-1000",
  "category": {
    "objectName": "Category"
  },
  "stock": 10000,
  "unity": {
    "id": 1,
    "objectName": "Unity"
  },
  "price": 100,
  "priceNet": 100,
  "priceGross": 119,
  "pricePurchase": 50,
  "taxRate": 19,
  "status": 100
}