Skip to content

verifactu-sdk API


verifactu-sdk API / RegisterInvoiceRecordResult

Interface: RegisterInvoiceRecordResult ​

Defined in: src/types.ts:419

Per-record outcome of a submission response.

Properties ​

invoiceId ​

invoiceId: InvoiceId

Defined in: src/types.ts:421

Identifier of the record this entry refers to.


operation ​

operation: "Alta" | "Anulacion"

Defined in: src/types.ts:423

AEAT-reported operation type.


externalReference? ​

optional externalReference?: string

Defined in: src/types.ts:425

External reference echoed back from the request.


state ​

state: RecordState

Defined in: src/types.ts:427

State of this record (L19).


errorCode? ​

optional errorCode?: number

Defined in: src/types.ts:429

AEAT error code, if any.


errorDescription? ​

optional errorDescription?: string

Defined in: src/types.ts:431

AEAT error description, if any.


duplicateRecord? ​

optional duplicateRecord?: object

Defined in: src/types.ts:439

Present when the AEAT rejected this record as a duplicate (error 3000) because it already stores one with the same IDFactura. A state of 'Correcta' or 'AceptadaConErrores' means the invoice is already registered — typically a retry after a lost response — not a real rejection.

requestId ​

requestId: string

Pre-existing AEAT request identifier (IdPeticionRegistroDuplicado).

state ​

state: DuplicateRecordState

State of the stored duplicate.

errorCode? ​

optional errorCode?: number

Error code of the stored duplicate, if any.

errorDescription? ​

optional errorDescription?: string

Error description of the stored duplicate, if any.

Released under the MIT license.