create_article
Creates a Fortnox stock article, cleans the description, validates EAN, and sets sales price before enabling webshop display to prevent zero-price listings.
Instructions
Create a stock article. Applies the server's article defaults (FORTNOX_ARTICLE_DEFAULTS; Type STOCK, StockGoods). The description is cleaned of characters Fortnox would silently delete, and an EAN is checked (GS1 check digit, not already used). If sales_price is given it is set on the price list BEFORE the webshop flag, so a webshop never shows the product at 0. Articles can't be deleted once used on any document.
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": {
"article_number": "<article_number>",
"description": "<description>"
},
"name": "create_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ean | No | ||
| note | No | ||
| unit | No | ||
| dry_run | No | ||
| description | Yes | ||
| sales_price | No | ||
| extra_fields | No | ||
| manufacturer | No | ||
| weight_grams | No | ||
| article_number | Yes | ||
| supplier_number | No | ||
| webshop_article | No | ||
| manufacturer_article_number | No |