Kontakte: Create Kontakt
create_kontaktAdd a customer (debitor) or supplier (kreditor). Fibalo assigns the DATEV account number.
An invoice can only be written to a debitor, so this comes first for a new customer. Search list_kontakte before creating: Fibalo refuses a likely duplicate (same VAT id, or same name and postal code) and returns the existing Kontakt instead. A VAT id is checked with the EU's VIES service. An invoice needs the customer's full postal address, so ask for it.
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": {
"company": "<company>",
"typ": "<typ>",
"name": "<name>"
},
"name": "create_kontakt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typ | Yes | debitor (customer) or kreditor (supplier). Cannot be changed later. | |
| land | No | 2-letter ISO country code, DE for Germany. | |
| name | Yes | legal name as it must appear on the invoice. | |
| No | where invoices are sent. | ||
| company | Yes | company name or id. | |
| beleg_id | No | link the new Kontakt to this Beleg: a supplier Beleg takes a kreditor, an outgoing invoice a debitor. | |
| ust_idnr | No | VAT id, e.g. DE123456789. Its checksum is verified. | |
| address_city | No | city. | |
| address_street | No | street and house number. | |
| address_postal_code | No | postal code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||