declarations_prepare
Prepare a declaration for ANAF e-Factura submission by returning XML content, ANAF URL, Bearer token, and CIF for agent-based mTLS proxying. Supports submit, listMessages, and download operations.
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) |