set_article_supplier
Add, update, or remove a supplier entry on an article, including part number, purchase price, currency, lead time, and MOQ, while protecting existing supplier data.
Instructions
Add/update/remove one supplier entry on an article ('Leverantörsinformation': supplier part number, purchase price in the supplier's currency, lead time, MOQ). Reads the full list first and writes it back with only this supplier changed. Fortnox answers a random 404 now and then; if the list can't be read at all, the write is refused unless article_has_no_supplier_entries=true (otherwise other suppliers would be wiped).
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>",
"supplier_number": "<supplier_number>"
},
"name": "set_article_supplier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | ||
| remove | No | ||
| dry_run | No | ||
| currency | No | ||
| article_number | Yes | ||
| supplier_number | Yes | ||
| minimum_quantity | No | ||
| delivery_time_days | No | ||
| supplier_article_name | No | ||
| supplier_article_number | No | ||
| article_has_no_supplier_entries | No |