validate_invoice_schema
Check an invoice JSON for mandatory fields required by EU VAT law for a given European country. Returns validation status, missing and present fields, and warnings.
Instructions
Validates whether an invoice JSON object contains all mandatory fields required for a valid VAT invoice in a given European country, based on EU VAT Directive 2006/112/EC and local implementations. Returns { valid: boolean, country, missing_fields: [], present_fields: [], warnings: [] }. Use when building invoice generation pipelines, pre-submission validation, or compliance checks in agent workflows. Information is reference only — not legal advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_code | Yes | Two-letter ISO country code. Example: 'PT', 'DE', 'IT' | |
| invoice | Yes | Invoice object to validate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| country | No | ||
| missing_fields | No | ||
| present_fields | No | ||
| warnings | No | ||
| disclaimer | No |