declarations_create
Create a tax declaration and auto-populate it from existing invoice data. Supports d394, d300, d390, d100, and d112 types, aggregating invoices by partner CIF and VAT rate for a specified period.
Instructions
Create a new tax declaration and auto-populate it from existing invoice data. Supported types: d394, d300, d390, d100, d112. The system automatically aggregates invoice data by partner CIF and VAT rate for the specified period.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Declaration type | |
| year | Yes | Declaration year (e.g. 2026) | |
| month | Yes | Declaration month (1–12) | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| periodType | No | Period type (default: "monthly") |