Lock date for all but advisers
lock_dateThe lock date for everyone but advisers (Xero's lock dates): nobody but an adviser posts on or before it. action=read: the date, its reason, the lock date from filing, whether the connected AI may set it, and the history. action=set with date (YYYY-MM-DD, not in the future) and reason; action=unlock with reason. The connected AI sets and lifts it only where the owner switched that on (Adviser and audit, the switch for the AI and this lock date); otherwise the owner sets it there. Round 793: read also names each VAT registration's own VAT lock (set and lifted by a person on Period close, Lock dates); action=exceptions: what was posted into a locked time and by whom (before the adviser lock date in force then, into a month after it was unlocked, with VAT in a filed VAT period), newest at the top. Round 794, while the owner's switch "My AI may set the VAT lock and lift the filing lock" is on (on unless switched off; Period close, Lock dates; read says you_may_lock_vat): action=vat_lock with registration, date (empty lifts it) and reason; action=lift with date (the lock date from filing moved back to it; empty clears it) and reason. Off, both stay the owner's.
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": "lock_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| action | No | read | |
| reason | No | ||
| company | No | ||
| registration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||