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