Store a previously filed Modelo 303 / 130 / 349

post/api/historical

Request

  • Base URL: https://declararfacil.com
  • URL: https://declararfacil.com/api/historical
  • Auth: HTTP bearer

Request body

modelo'303' | '130' | '349' required
yearinteger required
quarterinteger
sourceType'UPLOADED_FORM' | 'MANUAL_ENTRY'

UPLOADED_FORM when read from a filed form, MANUAL_ENTRY when typed from the user's notes

casillasobject

Every box printed on the form, keyed by its printed two- or three-digit number ('01', '71', '110', '120'). Monetary amounts in EUR; rate boxes in percent. Omitted keys preserve existing values, null clears, zero is stored. 130 boxes are cumulative. Aggregate aliases must agree with the same submitted box

nifstring nullable
apellidosNombrestring nullable
numeroJustificantestring nullable

AEAT receipt number exactly as printed; does not itself mark a filing as verified

sourceDocumentUrlstring nullable
filedboolean

Explicit assertion that this source was filed with AEAT. Separate from internal verified status. Omitted means unknown.

datosExtraidosobject nullable

Original extraction retained for provenance; does not populate boxes automatically. Replay casillas explicitly to repair an earlier import.

periodstring

349 only: 1T..4T or 01..12. May use quarter for quarterly forms.

totalOperacionesinteger nullable
importeTotalOperacionesnumber nullable
rectificacionesobject[]
ivaDevengadonumber nullable

Modelo 303: total IVA devengado (box 27)

ivaDeduciblenumber nullable

Modelo 303: total IVA deducible (box 45)

ivaResultadonumber nullable

Modelo 303: result (box 71)

source_filestring nullable

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.