Skip to content

EstadoRegistroConsulta

EstadoRegistroConsulta = "Correcto" | "AceptadoConErrores" | "Anulado"

Defined in: src/xml/parse-consulta.ts:21

The consulta enum. Deliberately NOT shared with the submission response’s EstadoRegistroSuministro (“Correcto” / “AceptadoConErrores” / “Incorrecto”):

  • No Incorrecto, because a rejected record is never stored — AEAT never holds a record it refused, so a query can never come back reporting one.
  • Has Anulado, which submission never returns.

A shared type would model states that cannot occur on one side and miss states that can occur on the other.