calculate_vat
Calculate VAT (IVA) and IRPF withholding
Compute the taxable base, VAT (IVA) amount, optional recargo de equivalencia and optional IRPF withholding from an amount. By default `importe` is the taxable base (sin IVA). With incluye_iva=true, `importe` is the TOTAL with VAT already included and the base is derived backwards (quitar IVA / reverse VAT). It only applies the rates it is given: it does NOT decide which VAT or IRPF rate applies to a case. Returns base_imponible, cuota_iva, recargo_importe, retencion_irpf, total_con_iva and total_factura (total after subtracting the IRPF withholding).
输入参数irpfimporte必填recargotipo_iva必填incluye_iva
validate_spanish_tax_id
Calculate/validate a Spanish DNI, NIE or CIF check character
Two modes in one input. If `valor` is only 1-8 digits, computes the DNI check letter and returns the full 8-digit-plus-letter DNI (digits are left-padded with zeros). If `valor` is a full document, validates its check character: DNI (8 digits + letter), NIE (X/Y/Z + 7 digits + letter) or CIF (entity letter + 7 digits + check digit or letter, with the entity type per Orden EHA/451/2008). Tolerates spaces, dots, dashes and an ES prefix. Pure arithmetic: it does NOT confirm the document exists, is active or belongs to the person who gave it. In validation mode, returns valido (true/false) and, when it does not match, the correct check character (letra_correcta / control_correcto).
输入参数valor必填
validate_iban
Validate an IBAN
Check whether an IBAN is well formed: country length (SWIFT IBAN registry) and ISO 13616 check digits. For Spanish IBANs also the two account check digits (DC) and the bank (entidad) with its BIC from the Banco de España registry. A 20-digit Spanish account number (CCC) is converted to its IBAN. Pure arithmetic: it does NOT confirm that the account exists or who owns it.
输入参数iban必填
check_vat_number
Check an EU VAT number (VIES)
Look up an EU VAT number in the European Commission's VIES registry. Returns what the registry says: whether the number exists and, where the member state publishes it, the name and address. It draws NO tax conclusion. VIES is often down; that is reported as disponible=false, which is NOT the same as an invalid number.
输入参数paisnumero必填
calculate_modelo_303
Sum the Spanish VAT return (Modelo 303)
Add up the boxes (casillas) of the Spanish quarterly VAT return Modelo 303 with the formulas printed on the official AEAT form: 27, 45, 46, 64, 66, 87, 69 and 71. Input are the tax amounts (cuotas) per box, e.g. {"09": 17430, "29": 9870}. It only sums what it is given: it does not decide which rate or deduction applies and it is not a tax return. To compute the 303 from an existing contix account's own invoices and gastos instead of typed-in boxes, use get_modelo with model 303.
输入参数casillas必填
get_obligation_dates
Veri*factu and e-invoicing deadlines (Spain)
Deadlines from the published Spanish rules: Veri*factu (RD 1007/2023, dates of RD-ley 15/2025) and mandatory B2B e-invoicing (RD 238/2026, counted from the ministerial order, provisional while the order is a draft). Information about the rules, not advice. Returns a date (or null) and explanatory text for each obligation (verifactu, factura_electronica and, where it applies, estados_facturas).
输入参数forma必填mas_8_millonesfactura_a_empresas必填