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?
optionalexternalReference?: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?
optionalerrorCode?:number
Defined in: src/types.ts:429
AEAT error code, if any.
errorDescription?
optionalerrorDescription?:string
Defined in: src/types.ts:431
AEAT error description, if any.
duplicateRecord?
optionalduplicateRecord?: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?
optionalerrorCode?:number
Error code of the stored duplicate, if any.
errorDescription?
optionalerrorDescription?:string
Error description of the stored duplicate, if any.