POST
/
articles
/
Create a new article (custom logic)
curl --request POST \
  --url http:localhost:3000/v2/articles/ \
  --header 'Content-Type: application/json' \
  --header 'x-API-Key: <api-key>' \
  --data '{
  "_id": "<string>",
  "number": 123,
  "companyId": "<string>",
  "status": {
    "status": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "chatId": "<string>",
  "type": "ARTICLE",
  "name": "<string>",
  "price": 123,
  "unit": "<string>",
  "description": "<string>",
  "numberExtern": "<string>",
  "prices": [
    {
      "sellPrice": 19.99,
      "buyPrice": 15,
      "currency": "EUR",
      "tax": 0.19,
      "taxRateId": "60c72b2f9b1e8d3f4c8b4567",
      "comment": "<string>"
    }
  ],
  "bookingAccountNumber": "<string>",
  "skontoBookingAccountNumber": "<string>",
  "comment": "<string>",
  "attachmentIds": [
    "<string>"
  ],
  "articleDescription": "<string>",
  "imageUrl": "<string>",
  "groupId": "<string>",
  "supplierId": "<string>",
  "priority": 123,
  "inStock": 123,
  "minimumInStock": 123
}'
{
  "_id": "<string>",
  "number": 123,
  "companyId": "<string>",
  "status": {
    "status": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "chatId": "<string>",
  "type": "ARTICLE",
  "name": "<string>",
  "price": 123,
  "unit": "<string>",
  "description": "<string>",
  "numberExtern": "<string>",
  "prices": [
    {
      "sellPrice": 19.99,
      "buyPrice": 15,
      "currency": "EUR",
      "tax": 0.19,
      "taxRateId": "60c72b2f9b1e8d3f4c8b4567",
      "comment": "<string>"
    }
  ],
  "bookingAccountNumber": "<string>",
  "skontoBookingAccountNumber": "<string>",
  "comment": "<string>",
  "attachmentIds": [
    "<string>"
  ],
  "articleDescription": "<string>",
  "imageUrl": "<string>",
  "groupId": "<string>",
  "supplierId": "<string>",
  "priority": 123,
  "inStock": 123,
  "minimumInStock": 123
}

Authorizations

x-API-Key
string
header
required

Body

application/json

An article is a type of product. Base class for products, which can be either service products or articles. Base class for all entities that can have a chat associated with them. Base class for all entities in the system, providing common properties and methods.

Response

201
application/json

Article created

An article is a type of product. Base class for products, which can be either service products or articles. Base class for all entities that can have a chat associated with them. Base class for all entities in the system, providing common properties and methods.