Skip to main content

Check Command

optimus check validates VAT IDs from a CSV file or from a folder.

Syntax

optimus check <path> [options]

<path> is required. It can point to:

  • A CSV file for single-file mode.
  • A folder for folder mode.

Examples

Validate one CSV file with a mapping file:

optimus check customers.csv --map mapping.yml --standard

Run a qualified check and request a PDF report:

optimus check customers.csv --map mapping.yml --qualified --pdf

Run without a mapping file by naming the VAT ID column directly:

optimus check customers.csv --col-vat-id VatId --standard --token "<token>"

Process a folder:

optimus check C:\inbox\ --map mapping.yml

Validate parsing and mapping without calling the API:

optimus check customers.csv --map mapping.yml --standard --dry-run

Dry-run output includes a preview of the first 5 checkable rows that would be sent to the API. It does not create support logs.

Arguments

ArgumentDescription
<path>Path to a CSV file or folder.

Options

OptionValueDefaultDescription
--mapPathnot setPath to the YAML mapping file.
--outPath<input-name>_result.csv in single-file modePath to the result CSV. Single-file mode only.
--tokenStringOPTIMUS_TOKENBearer token for API calls.
--envtest or prodprodAPI environment, unless a base URL is set.
--base-urlAbsolute URLdepends on environmentFull API base URL override.
--col-vat-idColumn name or indexnot setColumn containing VAT IDs. Required unless mapped in YAML.
--col-nameColumn name or indexnot setCompany name column.
--col-streetColumn name or indexnot setStreet column.
--col-zipColumn name or indexnot setPostal code column.
--col-cityColumn name or indexnot setCity column.
--in-delimiterStringauto-detected or YAMLInput CSV delimiter.
--in-encodingutf-8, windows-1252, iso-8859-1utf-8Input CSV encoding.
--no-headerFlagfalseTreat mappings as 1-based column indexes instead of header names.
--skip-rowsNumber0Rows to skip before reading the header or records.
--out-delimiterStringinput delimiter or ;Result CSV delimiter.
--out-encodingutf-8, windows-1252, iso-8859-1utf-8Result CSV encoding.
--no-bomFlagfalseWrite output without a BOM.
--out-columnsComma-separated listdefault result columnsSelect result CSV columns.
--pdfFlagfalseRequest a PDF report.
--no-pdfFlagfalseDisable PDF output even when YAML enables it.
--signFlagfalseDigitally sign the PDF. Requires PDF output.
--no-signFlagfalseDisable signing even when YAML enables it.
--pdf-dirPathoutput directory or input directoryFolder for saved PDFs.
--pdf-timestampFlagfalseAdd timestamp to PDF file names.
--transliterationFlagfalseEnable transliteration for the validation request.
--notifyFlagfalseAsk the API to send a notification email.
--email-pdfFlagfalseAsk the API to send the PDF by email. Requires PDF output.
--company-vat-idVAT IDnot setOwn VAT ID used for validation.
--standardFlagnot setRequest standard verification.
--qualifiedFlagnot setRequest qualified verification.
--retry-durationDurationNoneRetry duration: None, OneHour, TwoHours, FourHours, EightHours, TwentyFourHours.
--force-newFlagfalseStart a new validation operation and replace saved resume state.
--dry-runFlagfalseValidate file and mapping, print the first 5 checkable API rows, do not create support logs, and do not call the API.
--patternGlob*.csvFile pattern for folder mode.
--min-ageSeconds0Minimum file age before folder mode picks up a file.
--on-duplicateskip, overwrite, renameskipDuplicate file handling for folder mode moves.
--retryFlagfalseRetry files that previously moved to the folder-mode error directory.
-v, --verboseFlagfalseShow detailed output.
-q, --quietFlagfalseOnly print errors.
--log-dirPathmode-specific logs folderFolder for support logs.
--no-logFlagfalseDisable the support log for this run.

Validation Rules

  • <path> is required.
  • --env must be test or prod.
  • --verbose and --quiet cannot be used together.
  • --sign requires PDF output and cannot be used with --no-pdf.
  • --standard and --qualified cannot be used together.
  • A check type is required through --standard, --qualified, or defaults.checkType in the mapping file.
  • vatId must be mapped through --col-vat-id or columns.vatId.
  • --out is not accepted in folder mode.