List document series
list_seriesList document series configured on the account, each with the next number to be issued. Use this to obtain a seriesName or check the upcoming invoice number.
Instructions
List the document series configured on the account, each with the next number it will issue. Read-only and cheap.
Call this whenever you need a seriesName and do not already have one, and after any call that fails with an unknown-series error — rather than guessing a series name. Also answers 'what number will the next invoice get?'.
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": "list_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentType | No | Restrict to one document type. Omit to list every series. | |
| companyVatCode | No | Company CIF. Falls back to SMARTBILL_VAT_CODE. |