validate_fa2_invoice
Check a KSeF FA(2) XML invoice for compliance with XSD schema and Polish business rules, then output validation errors and warnings.
Instructions
Validate a KSeF FA(2) XML invoice.
Runs XSD validation (when the official schema is present) and Polish business-rule checks. Returns a DocumentValidationResult with errors and warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | No | ||
| warnings | No | ||
| metadata | No |