Get AEAT tax model (modelo)
get_modeloGet an AEAT tax model summary (modelo / declaración): 303 & 390 (IVA), 130 (IRPF), 347, 349, 202. Read-only calculation from existing invoices and gastos. Provide quarter (1-4) for 303/130/349, or periodo (1P/2P/3P) for 202. Note: modelo 202 assumes pagos_anteriores=0 (prior-period payments not tracked): the resulting amount is a raw base calculation, not a final figure to pay. Returns the full breakdown AEAT uses for that modelo (its casillas/boxes with each computed amount) as JSON. To just sum casillas you already have by hand, without querying the account, use calculate_modelo_303 instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| model | Yes | ||
| periodo | No | ||
| quarter | No |