declarations_prepare
Prepares a declaration for agent-based ANAF submission, returning XML, URL, Bearer token, and CIF so a local agent can proxy the mTLS request; supports submit, listMessages, and download flows.
Instructions
Prepare a declaration for agent-based submission. Returns XML content, ANAF URL, Bearer token, and CIF needed by the local agent to proxy the mTLS request. Use operation param for different flows: submit (default), listMessages, download.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Declaration UUID | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| operation | No | Operation type (default: submit) | |
| downloadId | No | ANAF download ID (required for operation=download) |