declarations_sync
Synchronizes ANAF declarations and SPV messages via the local storno-agent to enable automated retrieval.
Instructions
RETIRED server-side sync: ANAF SPVWS2 accepts only the qualified certificate (mTLS), so this endpoint now answers 409 AGENT_REQUIRED. Declarations and SPV messages are pulled through the local storno-agent from the web app (declarations page or the SPV documents page); the tools spv_sync_prepare / spv_sync_agent_result cover the same flow for automation.
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) |