Skip to content

verifactu-sdk API


verifactu-sdk API / VerifactuErrorOptions

Interface: VerifactuErrorOptions ​

Defined in: src/errors/VerifactuError.ts:48

Constructor options shared by every VerifactuError subclass.

Extended by ​

Properties ​

code? ​

readonly optional code?: string

Defined in: src/errors/VerifactuError.ts:50

AEAT error code (e.g. '1108'); omitted when the SDK detects the issue locally without a catalog mapping.


category? ​

readonly optional category?: ErrorCategory

Defined in: src/errors/VerifactuError.ts:52

AEAT category derived from the catalog.


field? ​

readonly optional field?: string

Defined in: src/errors/VerifactuError.ts:54

Dotted path of the offending field (e.g. 'breakdown.0.taxRate').


invoiceId? ​

readonly optional invoiceId?: VerifactuErrorInvoiceId

Defined in: src/errors/VerifactuError.ts:56

Triple identifying the invoice the error belongs to.


cause? ​

readonly optional cause?: unknown

Defined in: src/errors/VerifactuError.ts:58

Underlying cause, propagated via Error.cause.

Released under the MIT license.