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?'.
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. |