create_article
Add a new product or service article to the Lexware Office catalogue. Returns the new article ID and version for later retrieval.
Instructions
Add an article to the catalogue.
Writes to the account. One API call, and it is not retried.
Returns the new id and version, not the record. Read it back with
get_article to see the price the API computed from the one given.
Unlike a voucher, an article can be removed again with
delete_article.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"article_type": "<article_type>",
"unit_name": "<unit_name>",
"price": "<price>",
"tax_rate": "<tax_rate>"
},
"name": "create_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gtin | No | Barcode number. Thirteen digits, checked by the API. | |
| note | No | Internal note. Not shown on a document. | |
| price | Yes | The price for one unit. | |
| title | Yes | What the article is called on a document. | |
| tax_rate | Yes | The tax rate as a percentage, for example 19. | |
| unit_name | Yes | What one of it is, for example 'Stueck' or 'Stunde'. | |
| description | No | Longer text shown under the title on a document. | |
| article_type | Yes | Whether this is goods or a service. | |
| leading_price | No | Whether `price` is before or after tax. The other figure is computed by the API from `tax_rate`. | NET |
| article_number | No | Your own number for it. Not assigned by Lexware. |