Skip to content

RegistroConsultado

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

optional CodigoErrorRegistro?: number

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


optional DatosPresentacion?: DatosPresentacionConsulta

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


DatosRegistroFacturacion: Record<string, unknown> & object

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

The full stored record as AEAT holds it, including its huella. Comparing this huella against one computed locally is a single-field check equivalent to diffing every hashed field, which is how a duplicate-record ambiguity (error 3000 with no RegistroDuplicado detail) gets resolved. There is deliberately no csv field here: the CSV exists only in the submission response and can never be retrieved by a query.

optional Huella?: string

optional TipoHuella?: string


optional DescripcionErrorRegistro?: string

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


EstadoRegistro: EstadoRegistroConsulta

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


IDFactura: IDFactura

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


TimestampUltimaModificacion: string

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

When AEAT’s stored copy of this record was last modified. Required by the schema (EstadoRegFactuType), unlike everything else nested inside EstadoRegistro — it’s what lets a consumer reconcile its own records against the authority’s without re-querying everything.