Skip to content

verifactu-sdk API


verifactu-sdk API / CancelInvoiceInput

Interface: CancelInvoiceInput ​

Defined in: src/types.ts:359

Cancellation input (RegistroAnulacion).

Properties ​

cancelledInvoiceId ​

cancelledInvoiceId: InvoiceId

Defined in: src/types.ts:361

Identifier of the invoice to cancel.


externalReference? ​

optional externalReference?: string

Defined in: src/types.ts:363

Optional caller-supplied external reference.


withoutPriorRecord? ​

optional withoutPriorRecord?: YesNo

Defined in: src/types.ts:365

'S' when the invoice never existed in AEAT (rare; usually omitted).


priorRejection? ​

optional priorRejection?: YesNo

Defined in: src/types.ts:367

Prior-rejection flag for the cancellation event.


generatedBy? ​

optional generatedBy?: "T" | "D" | "E"

Defined in: src/types.ts:369

Who emits the cancellation: 'E' issuer, 'D' recipient, 'T' third party.


generator? ​

optional generator?: Counterpart

Defined in: src/types.ts:371

Identifier of the cancellation generator (required when generatedBy is set).


chainLink: ChainLink

Defined in: src/types.ts:373

Chain link.


billingSystem ​

billingSystem: BillingSystem

Defined in: src/types.ts:375

Producer-software descriptor.


generatedAt ​

generatedAt: string

Defined in: src/types.ts:380

ISO 8601 timestamp with timezone when the cancellation was generated. Part of the hash — reuse it on retries, as with Invoice.generatedAt.


hash ​

hash: string

Defined in: src/types.ts:382

SHA-256 hash of the cancellation record.

Released under the MIT license.