declarations_upload
Import an existing tax declaration XML or ANAF PDF into Storno for validation and filing. The document's type, year, and month are read automatically.
Instructions
Bring a declaration made in another program into Storno: an XML file, or the ANAF PDF produced by SAGA / DUKIntegrator / the filled ANAF form (Storno reads the XML embedded in it). Type, year and month come from the document. The uploaded document is what gets validated (declarations_validate) and filed (declarations_file_via_agent) — nothing is regenerated. The recipisa lands in the dosar like any other filing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Local path of the .xml or .pdf file | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |