vat_rates_create
Create a VAT rate for the active company, optionally set it as default, and demote any existing default rate; a first rate becomes default automatically.
Instructions
Create a new VAT rate for the active company. If isDefault is true, any existing default rate is demoted. If this is the first VAT rate, it automatically becomes the default. Common e-Factura category codes: S=standard, AA=reduced, E=exempt, O=outside scope, Z=zero rated, AE=reverse charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | VAT percentage (e.g., 19 for 19%, 0 for exempt) | |
| label | Yes | Display label shown in dropdowns (e.g., "TVA 19%", "Scutit") | |
| position | No | Display order position in dropdowns (lower = first). Auto-assigned if not provided. | |
| companyId | No | Company UUID override (uses active company if not set) | |
| isDefault | No | Set this as the default VAT rate for new invoice lines (default: false) | |
| categoryCode | No | e-Factura category code (default: "S"). Options: S, Z, E, AE, K, L, O, M |