Skip to content

verifactu-sdk API


verifactu-sdk API / CancelInvoiceInput

Interface: CancelInvoiceInput

Defined in: src/types.ts:348

Cancellation input (RegistroAnulacion).

Properties

cancelledInvoiceId

cancelledInvoiceId: InvoiceId

Defined in: src/types.ts:350

Identifier of the invoice to cancel.


externalReference?

optional externalReference?: string

Defined in: src/types.ts:352

Optional caller-supplied external reference.


withoutPriorRecord?

optional withoutPriorRecord?: YesNo

Defined in: src/types.ts:354

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


priorRejection?

optional priorRejection?: YesNo

Defined in: src/types.ts:356

Prior-rejection flag for the cancellation event.


generatedBy?

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

Defined in: src/types.ts:358

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


generator?

optional generator?: Counterpart

Defined in: src/types.ts:360

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


chainLink: ChainLink

Defined in: src/types.ts:362

Chain link.


billingSystem

billingSystem: BillingSystem

Defined in: src/types.ts:364

Producer-software descriptor.


generatedAt

generatedAt: string

Defined in: src/types.ts:366

ISO 8601 timestamp with timezone when the cancellation was generated.


hash

hash: string

Defined in: src/types.ts:368

SHA-256 hash of the cancellation record.

Released under the MIT license.