declarations_sync
Requests declaration sync for a specified year; retired because ANAF requires a qualified certificate, so route sync through the local storno-agent or spv_sync_prepare / spv_sync_agent_result instead.
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) |