Skapa eller ändra konto
upsert_accountSkapar ett konto i bolagets kontoplan eller ändrar namn, kontotyp, SRU-kod och momskod på ett befintligt konto. Använd när ett konto som behövs för en bokning saknas eller har fel uppgifter; slå först upp kontoplanen med list_accounts. Returnerar ok och kontonumret. Bieffekt: ändringen gäller kontot framöver; inga belopp i befintliga verifikat ändras. Kräver behörigheten book.
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": {
"orgnr": "<orgnr>",
"number": "<number>",
"name": "<name>",
"type": "<type>"
},
"name": "upsert_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sru | No | Valfritt: SRU-kod som kontot summeras på i deklarationen. | |
| name | Yes | Kontots namn, t.ex. IT-tjänster. | |
| type | Yes | Kontotyp: T (tillgång), S (skuld eller eget kapital), I (intäkt) eller K (kostnad). | |
| orgnr | Yes | Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies. | |
| number | Yes | Kontonummer i BAS-kontoplanen, minst fyrsiffrigt (1000 eller högre) och i klass 1 till 8, t.ex. 6540. | |
| vat_code | No | Valfritt: kontots momskod. |