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?
optionalexternalReference?:string
Defined in: src/types.ts:363
Optional caller-supplied external reference.
withoutPriorRecord?
optionalwithoutPriorRecord?:YesNo
Defined in: src/types.ts:365
'S' when the invoice never existed in AEAT (rare; usually omitted).
priorRejection?
optionalpriorRejection?:YesNo
Defined in: src/types.ts:367
Prior-rejection flag for the cancellation event.
generatedBy?
optionalgeneratedBy?:"T"|"D"|"E"
Defined in: src/types.ts:369
Who emits the cancellation: 'E' issuer, 'D' recipient, 'T' third party.
generator?
optionalgenerator?:Counterpart
Defined in: src/types.ts:371
Identifier of the cancellation generator (required when generatedBy is set).
chainLink
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.