verifactu-sdk API / RegisterInvoiceInput
Interface: RegisterInvoiceInput
Defined in: src/types.ts:390
Registration input of VerifactuClient.registerInvoice and VerifactuClient.registerBatch: an Invoice whose client-managed fields are optional. A full Invoice is still accepted.
Extends
Omit<Invoice,"billingSystem"|"chainLink"|"hash">
Properties
invoiceId
invoiceId:
InvoiceId
Defined in: src/types.ts:294
Triple identifying the invoice.
Inherited from
externalReference?
optionalexternalReference?:string
Defined in: src/types.ts:296
Optional caller-supplied external reference.
Inherited from
issuerName
issuerName:
string
Defined in: src/types.ts:298
Legal name of the issuer (mirrors NombreRazonEmisor).
Inherited from
correction?
optionalcorrection?:YesNo
Defined in: src/types.ts:300
'S' when this submission supersedes a prior incorrectly-issued record.
Inherited from
priorRejection?
optionalpriorRejection?:"S"|"N"|"X"
Defined in: src/types.ts:302
Prior-rejection flag ('N'/'S'/'X').
Inherited from
invoiceType
invoiceType:
InvoiceType
Defined in: src/types.ts:304
Invoice-type code (L4).
Inherited from
rectificationKind?
optionalrectificationKind?:RectificationKind
Defined in: src/types.ts:306
Required when invoiceType starts with 'R'.
Inherited from
rectifiedInvoices?
optionalrectifiedInvoices?:InvoiceId[]
Defined in: src/types.ts:308
Identifiers of the invoices being rectified.
Inherited from
substitutedInvoices?
optionalsubstitutedInvoices?:InvoiceId[]
Defined in: src/types.ts:310
Identifiers of the invoices being substituted (only F3).
Inherited from
rectificationBreakdown?
optionalrectificationBreakdown?:RectificationBreakdown
Defined in: src/types.ts:312
Substitutive-rectification breakdown (only when rectificationKind === 'S').
Inherited from
Invoice.rectificationBreakdown
operationDate?
optionaloperationDate?:string
Defined in: src/types.ts:314
Operation date (ISO) when distinct from InvoiceId.issueDate.
Inherited from
description
description:
string
Defined in: src/types.ts:316
Operation description (up to 500 chars).
Inherited from
simplifiedArt7273?
optionalsimplifiedArt7273?:YesNo
Defined in: src/types.ts:318
'S' when the invoice qualifies under art. 7.2/7.3 RD 1619/2012.
Inherited from
withoutRecipientArt61d?
optionalwithoutRecipientArt61d?:YesNo
Defined in: src/types.ts:320
'S' when the invoice has no recipient identification (art. 6.1.d).
Inherited from
Invoice.withoutRecipientArt61d
macroData?
optionalmacroData?:YesNo
Defined in: src/types.ts:322
'S' when the total amount exceeds the AEAT macrodata threshold.
Inherited from
issuedBy?
optionalissuedBy?:"T"|"D"
Defined in: src/types.ts:324
Issued by a third party ('T') or by the recipient itself ('D').
Inherited from
thirdParty?
optionalthirdParty?:Counterpart
Defined in: src/types.ts:326
Third-party / self-billing recipient details.
Inherited from
recipients?
optionalrecipients?:Counterpart[]
Defined in: src/types.ts:328
List of recipients (omit for F2/R5 invoices).
Inherited from
coupon?
optionalcoupon?:YesNo
Defined in: src/types.ts:330
'S' when the invoice includes a coupon-related base reduction.
Inherited from
breakdown
breakdown:
BreakdownItem[]
Defined in: src/types.ts:332
Tax-breakdown lines (1–12 entries).
Inherited from
totalTaxAmount
totalTaxAmount:
string
Defined in: src/types.ts:334
Sum of repercussed amounts (CuotaTotal).
Inherited from
totalAmount
totalAmount:
string
Defined in: src/types.ts:336
Total invoiced amount (ImporteTotal).
Inherited from
generatedAt
generatedAt:
string
Defined in: src/types.ts:345
ISO 8601 timestamp with timezone when the record was generated. It is part of the hash: persist it before the first submission and reuse it on every retry, so a retry after a lost response produces the same Huella the AEAT already stored.
Inherited from
agreementNumber?
optionalagreementNumber?:string
Defined in: src/types.ts:347
Invoicing-agreement number (up to 15 chars).
Inherited from
systemAgreementId?
optionalsystemAgreementId?:string
Defined in: src/types.ts:349
SIF agreement identifier (up to 16 chars).
Inherited from
billingSystem?
optionalbillingSystem?:BillingSystem
Defined in: src/types.ts:393
Producer-software descriptor; defaults to the client's billingSystem option.
chainLink?
optionalchainLink?:ChainLink
Defined in: src/types.ts:395
Ignored: the client chains the record to the tail of its HashStore.
hash?
optionalhash?:string
Defined in: src/types.ts:397
Ignored: the client computes the hash.