Start a set of books
set_opening_balancesEnter the opening trial balance for a new set of books, once per set. Call with no lines to see whether these books can still take them and the rules; with lines to preview the trial balance; with the token to post. Enter opening debtors and creditors as the outstanding invoices and bills themselves where you can, so aged reports and statements can show them. A lump figure is allowed (a migration brings one for old balances), but money in a control account with no document behind it never appears on an aged report or statement. Never do both for the same debt: it would count twice.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_opening_balances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_at | No | The day before trading starts in these books. Usually the old system's last day. | |
| lines | No | The opening trial balance, one line per account: the account (code or exact name) and a debit or a credit in pounds. Debits and credits must balance. | |
| description | No | A note saved on the opening balance journal, e.g. "Opening balances from Xero". | |
| lock_period | No | Lock everything up to as_at once the balances are in, so nothing can be posted behind them. Default true, and it is the right default. | |
| organisation_id | No | Which books. Leave it out to use the books chosen with select_organisation, or the only set this account has. | |
| confirmation_token | No | Leave it out to preview. To carry the change out, send the token the preview returned, unchanged. |