create_simplified_supplier_invoice
Create a new simplified supplier invoice (factură simplificată de la furnizor). Provide supplier_id when the supplier already exists, or supplier_name + address fields to create it on the fly.
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": {
"invoice_number": "<invoice_number>",
"currency": "<currency>",
"document_positions": "<document_positions>"
},
"name": "create_simplified_supplier_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Currency code, e.g. "RON", "EUR" | |
| due_date | No | Payment due date in YYYY-MM-DD format (optional) | |
| supplier_id | No | Supplier ID (from search_suppliers). Takes priority over supplier_name. | |
| supplier_uid | No | Supplier fiscal code / CUI / VAT number (optional) | |
| document_date | No | Document date in YYYY-MM-DD format | |
| supplier_city | No | Supplier city | |
| supplier_name | No | Supplier name. If supplier_id is absent and the supplier does not yet exist, a new supplier is created automatically when address, city, and country are also provided. | |
| invoice_number | Yes | Invoice number as printed on the supplier's document, e.g. "FACT-123". Required by the API. | |
| supplier_address | No | Supplier street address | |
| supplier_country | No | Supplier country code, e.g. "RO" | |
| document_positions | Yes | Line items |