create_item_position
Add an item position to quotes, orders, or invoices in Bexio, including article, unit price, tax, and discount.
Instructions
Create an item position
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": {
"kb_document_type": "<kb_document_type>",
"document_id": "<document_id>"
},
"name": "create_item_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| amount | No | ||
| tax_id | No | References a [tax object](#operation/ListTaxes) Please note that only active sales taxes can be used as references on the document types `quote`, `order` and `invoice`. An easy way to retrieve all valid taxes is by calling the taxes endpoint with the query parameters `types=sales_tax&scope=active` ( | |
| unit_id | No | References a [unit object](#operation/v2ListUnits) | |
| account_id | No | References an [account object](#operation/ListAccounts) | |
| article_id | No | References an [item object](#operation/v2ListItems) | |
| unit_price | No | The price of one unit (max. 6 decimals) | |
| amount_open | No | ||
| document_id | Yes | the id of the document. E.g. if the `kb_document_type` is set to `kb_invoice` the `document_id` must be set to the ID of the invoice | |
| is_optional | No | Only valid in the case of Quotes or Orders | |
| amount_reserved | No | ||
| amount_completed | No | ||
| kb_document_type | Yes | The type of the document. Item positions can be added to quotes, orders and invoices | |
| discount_in_percent | No | The discount (max. 6 decimals) |