declarations_sync
Syncs annual tax declarations from ANAF by discovering filed declarations via SPV messages, creating missing records, downloading receipts, and updating statuses.
Instructions
Sync declarations from ANAF for a given year. Discovers filed declarations via SPV messages, creates missing local records, downloads recipise, and updates in-flight statuses. Returns 202 (async processing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Year to sync declarations for (e.g. 2026) | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |