Skip to content

Reusable types ​

Reusable aggregate business-information entities — parties, addresses, taxes, line items, payment means, etc. (XML namespace ram).

Generated reference

These tables are generated from src/lib/models/facturx/reusableTypes.ts and always match the code. See Models for the conceptual overview and a build-an-invoice example.

SpecifiedPeriodType BASIC WL ​

A time period given by start and end (or a single complete) date-time, such as an invoicing or billing period.

PropertyTypeRequired
descriptionTextTypeoptional
startDateTimeDateTimeTypeoptional
endDateTimeDateTimeTypeoptional
completeDateTimeDateTimeTypeoptional

ReferencedDocumentType MINIMUM ​

A reference to a related document such as an order, contract, despatch advice or supporting attachment, with its identifier, type and optional embedded binary content.

PropertyTypeRequired
issuerAssignedIDIDTypeoptional
uriIDIDTypeoptional
lineIDIDTypeoptional
typeCodeDocumentCodeTypeoptional
nameTextType[]optional
attachmentBinaryObjectBinaryObjectTypeoptional
referenceTypeCodeReferenceCodeTypeoptional
formattedIssueDateTimeFormattedDateTimeTypeoptional

TradeDeliveryTermsType EXTENDED ​

The applicable delivery terms, given as an Incoterms-style code and an optional relevant location.

PropertyTypeRequired
deliveryTypeCodeDeliveryTermsCodeTyperequired
relevantTradeLocationTradeLocationTypeoptional

TradeLocationType EXTENDED ​

A geographic location, identified by country code and/or name.

PropertyTypeRequired
countryIDCountryIDTypeoptional
nameTextTypeoptional

ProcuringProjectType EN 16931 ​

The procurement project or contract reference the invoice relates to, identified by its identifier and name.

PropertyTypeRequired
idIDTyperequired
nameTextTyperequired

AdvancePaymentType EXTENDED ​

An advance (prepaid) payment: its paid amount, receipt date, included VAT and the prepayment invoice it refers to.

PropertyTypeRequired
paidAmountAmountTyperequired
formattedReceivedDateTimeFormattedDateTimeTypeoptional
includedTradeTaxTradeTaxType[]required
invoiceSpecifiedReferencedDocumentReferencedDocumentTypeoptional

FinancialAdjustmentType EXTENDED ​

A financial adjustment to the settlement, given as a reason and an amount.

PropertyTypeRequired
reasonTextTyperequired
actualAmountAmountTyperequired

CreditorFinancialAccountType BASIC WL ​

The payee's receiving bank account, identified by IBAN or a proprietary number, with an optional account name.

PropertyTypeRequired
ibanIDIDTypeoptional
accountNameTextTypeoptional
proprietaryIDIDTypeoptional

CreditorFinancialInstitutionType EN 16931 ​

The payee's bank, identified by its BIC.

PropertyTypeRequired
bicIDIDTyperequired

DebtorFinancialAccountType BASIC WL ​

The payer's bank account, identified by IBAN, used notably for direct debit.

PropertyTypeRequired
ibanIDIDTyperequired
accountNameTextTypeoptional

DebtorFinancialInstitutionType EXTENDED ​

The payer's bank, identified by its BIC.

PropertyTypeRequired
bicIDIDTypeoptional

DocumentContextParameterType MINIMUM ​

A context parameter carrying the identifier of a guideline or business process.

PropertyTypeRequired
idIDTyperequired

NoteType BASIC WL ​

A free-text note, optionally qualified by subject and content codes.

PropertyTypeRequired
contentCodeCodeTypeoptional
contentTextTyperequired
subjectCodeCodeTypeoptional

DocumentLineDocumentType BASIC ​

Line-level document header: the line number, optional parent line, status code and free-text notes.

PropertyTypeRequired
lineIDIDTyperequired
parentLineIDIDTypeoptional
lineStatusCodeLineStatusCodeTypeoptional
lineStatusReasonCodeCodeTypeoptional
includedNoteNoteType[]optional

TradeTaxType BASIC WL ​

A VAT breakdown entry for one combination of category and rate: the taxable basis, the resulting tax amount and an optional exemption reason.

PropertyTypeRequired
calculatedAmountAmountTypeoptional
typeCodeTaxTypeCodeTypeoptional
exemptionReasonTextTypeoptional
basisAmountAmountTypeoptional
lineTotalBasisAmountAmountTypeoptional
allowanceChargeBasisAmountAmountTypeoptional
categoryCodeTaxCategoryCodeTyperequired
exemptionReasonCodeCodeTypeoptional
taxPointDateDateTypeoptional
dueDateTypeCodeTimeReferenceCodeTypeoptional
rateApplicablePercentPercentTypeoptional

TradeAddressType MINIMUM ​

A postal address: street lines, city, post code, ISO 3166-1 country code and country sub-division.

PropertyTypeRequired
postcodeCodeCodeTypeoptional
lineOneTextTypeoptional
lineTwoTextTypeoptional
lineThreeTextTypeoptional
cityNameTextTypeoptional
countryIDCountryIDTyperequired
countrySubDivisionNameTextType[]optional

UniversalCommunicationType BASIC WL ​

A communication channel, holding either a URI/email address or a phone or fax number.

PropertyTypeRequired
uriIDIDTypeoptional
completeNumberTextTypeoptional

TradeContactType EN 16931 ​

A contact person for a party: name, department and telephone, fax and email channels.

PropertyTypeRequired
personNameTextTypeoptional
departmentNameTextTypeoptional
typeCodeContactTypeCodeTypeoptional
telephoneUniversalCommunicationUniversalCommunicationTypeoptional
faxUniversalCommunicationUniversalCommunicationTypeoptional
emailURIUniversalCommunicationUniversalCommunicationTypeoptional

LegalOrganizationType MINIMUM ​

A party's legal registration: its legal identifier, trading name and registered address.

PropertyTypeRequired
idIDTypeoptional
tradingBusinessNameTextTypeoptional
postalTradeAddressTradeAddressTypeoptional

TaxRegistrationType MINIMUM ​

A party's tax registration identifier, such as its VAT identifier.

PropertyTypeRequired
idIDTyperequired

TradePartyType MINIMUM ​

A party involved in the trade (seller, buyer, payee, ship-to, tax representative, …): its identifiers, name, role, legal organization, address, contacts and tax registrations.

PropertyTypeRequired
idIDType[]optional
globalIDIDType[]optional
nameTextTypeoptional
roleCodePartyRoleCodeTypeoptional
descriptionTextTypeoptional
specifiedLegalOrganizationLegalOrganizationTypeoptional
definedTradeContactTradeContactType[]optional
postalTradeAddressTradeAddressTypeoptional
uriUniversalCommunicationUniversalCommunicationTypeoptional
specifiedTaxRegistrationTaxRegistrationType[]optional

SupplyChainEventType BASIC WL ​

A supply-chain event, such as the actual delivery, given by its occurrence date-time.

PropertyTypeRequired
occurrenceDateTimeDateTimeTyperequired

SupplyChainConsignmentType EXTENDED ​

A consignment within the delivery, carrying its specified transport movements.

PropertyTypeRequired
specifiedLogisticsTransportMovementLogisticsTransportMovementType[]optional

LogisticsTransportMovementType EXTENDED ​

A transport movement, identified by its mode of transport.

PropertyTypeRequired
modeCodeTransportModeCodeTyperequired

TradeAccountingAccountType BASIC WL ​

A buyer accounting reference, such as a cost-centre code, with an optional account type code.

PropertyTypeRequired
idIDTyperequired
typeCodeAccountingAccountTypeCodeTypeoptional

TradeCurrencyExchangeType EXTENDED ​

A currency conversion between source and target currencies, with the conversion rate and its date.

PropertyTypeRequired
sourceCurrencyCodeCurrencyCodeTyperequired
targetCurrencyCodeCurrencyCodeTyperequired
conversionRateRateTyperequired
conversionRateDateTimeDateTimeTypeoptional

TradeAllowanceChargeType BASIC WL ​

An allowance (deduction) or charge: a charge indicator, an amount or percentage with its basis, a reason and the applicable VAT category.

PropertyTypeRequired
chargeIndicatorIndicatorTyperequired
sequenceNumericNumericTypeoptional
calculationPercentPercentTypeoptional
basisAmountAmountTypeoptional
basisQuantityQuantityTypeoptional
actualAmountAmountTyperequired
reasonCodeAllowanceChargeReasonCodeTypeoptional
reasonTextTypeoptional
categoryTradeTaxTradeTaxTypeoptional

LogisticsServiceChargeType EXTENDED ​

A logistics service charge, given by its description, amount and applicable tax.

PropertyTypeRequired
descriptionTextTyperequired
appliedAmountAmountTyperequired
appliedTradeTaxTradeTaxType[]optional

TradePaymentPenaltyTermsType EXTENDED ​

Late-payment penalty terms: the basis date, period and amount together with the penalty percentage or amount.

PropertyTypeRequired
basisDateTimeDateTimeTypeoptional
basisPeriodMeasureMeasureTypeoptional
basisAmountAmountTypeoptional
calculationPercentPercentTypeoptional
actualPenaltyAmountAmountTypeoptional

TradePaymentDiscountTermsType EXTENDED ​

Early-payment discount terms: the basis date, period and amount together with the discount percentage or amount.

PropertyTypeRequired
basisDateTimeDateTimeTypeoptional
basisPeriodMeasureMeasureTypeoptional
basisAmountAmountTypeoptional
calculationPercentPercentTypeoptional
actualDiscountAmountAmountTypeoptional

TradePaymentTermsType BASIC WL ​

Payment terms: textual description, due date, direct-debit mandate, partial-payment amount and the applicable penalty and discount terms.

PropertyTypeRequired
descriptionTextTypeoptional
dueDateDateTimeDateTimeTypeoptional
directDebitMandateIDIDTypeoptional
partialPaymentAmountAmountTypeoptional
applicableTradePaymentPenaltyTermsTradePaymentPenaltyTermsTypeoptional
applicableTradePaymentDiscountTermsTradePaymentDiscountTermsTypeoptional
payeeTradePartyTradePartyTypeoptional

TradeSettlementFinancialCardType EN 16931 ​

A payment card used for settlement, identified by a (masked) card number and cardholder name.

PropertyTypeRequired
idIDTyperequired
cardholderNameTextTypeoptional

TradeSettlementPaymentMeansType BASIC WL ​

A means of payment: its UNTDID 4461 type code plus the card, debtor/creditor accounts and financial institutions involved.

PropertyTypeRequired
typeCodePaymentMeansCodeTyperequired
informationTextTypeoptional
applicableTradeSettlementFinancialCardTradeSettlementFinancialCardTypeoptional
payerPartyDebtorFinancialAccountDebtorFinancialAccountTypeoptional
payeePartyCreditorFinancialAccountCreditorFinancialAccountTypeoptional
payerSpecifiedDebtorFinancialInstitutionDebtorFinancialInstitutionTypeoptional
payeeSpecifiedCreditorFinancialInstitutionCreditorFinancialInstitutionTypeoptional

TradeSettlementHeaderMonetarySummationType MINIMUM ​

Document-level monetary totals: line, charge and allowance totals, tax basis and VAT amount, grand total, prepaid amount and the amount due for payment.

PropertyTypeRequired
lineTotalAmountAmountTypeoptional
chargeTotalAmountAmountTypeoptional
allowanceTotalAmountAmountTypeoptional
taxBasisTotalAmountAmountTyperequired
taxTotalAmountAmountType[]optional
roundingAmountAmountTypeoptional
grandTotalAmountAmountTyperequired
totalPrepaidAmountAmountTypeoptional
duePayableAmountAmountTyperequired

ProductCharacteristicType EN 16931 ​

A product attribute, given as a description and value, optionally with a measured value and type code.

PropertyTypeRequired
typeCodeCodeTypeoptional
descriptionTextTyperequired
valueMeasureMeasureTypeoptional
valueTextTyperequired

ProductClassificationType EN 16931 ​

A product classification, given as a classification code and/or class name.

PropertyTypeRequired
classCodeCodeTypeoptional
classNameTextTypeoptional

TradeProductInstanceType EXTENDED ​

A specific instance of an item, identified by batch and/or supplier-assigned serial number.

PropertyTypeRequired
batchIDIDTypeoptional
supplierAssignedSerialIDIDTypeoptional

TradeCountryType EN 16931 ​

The country of origin of an item, given as an ISO 3166-1 country code.

PropertyTypeRequired
idCountryIDTypeoptional

ReferencedProductType EXTENDED ​

A component or included product, with its identifiers, name, description and unit quantity.

PropertyTypeRequired
idIDTypeoptional
globalIDIDType[]optional
sellerAssignedIDIDTypeoptional
buyerAssignedIDIDTypeoptional
industryAssignedIDIDTypeoptional
nameTextTyperequired
descriptionTextTypeoptional
unitQuantityQuantityTypeoptional

TradeProductType BASIC ​

The invoiced item: its identifiers, name, description, attributes, classifications, country of origin and manufacturer.

PropertyTypeRequired
idIDTypeoptional
globalIDIDTypeoptional
sellerAssignedIDIDTypeoptional
buyerAssignedIDIDTypeoptional
industryAssignedIDIDTypeoptional
modelIDIDTypeoptional
nameTextTyperequired
descriptionTextTypeoptional
batchIDIDType[]optional
brandNameTextTypeoptional
modelNameTextTypeoptional
applicableProductCharacteristicProductCharacteristicType[]optional
designatedProductClassificationProductClassificationType[]optional
individualTradeProductInstanceTradeProductInstanceType[]optional
originTradeCountryTradeCountryTypeoptional
manufacturerTradePartyTradePartyTypeoptional
includedReferencedProductReferencedProductType[]optional

TradePriceType BASIC ​

An item price (gross or net): the price amount, its basis quantity and any applied allowances/charges or included tax.

PropertyTypeRequired
chargeAmountAmountTyperequired
basisQuantityQuantityTypeoptional
appliedTradeAllowanceChargeTradeAllowanceChargeType[]optional
includedTradeTaxTradeTaxTypeoptional

LineTradeAgreementType BASIC ​

Line-level trade agreement (price details): the gross and net unit prices and references to the related order, contract and quotation.

PropertyTypeRequired
applicableTradeDeliveryTermsTradeDeliveryTermsTypeoptional
sellerOrderReferencedDocumentReferencedDocumentTypeoptional
buyerOrderReferencedDocumentReferencedDocumentTypeoptional
quotationReferencedDocumentReferencedDocumentTypeoptional
contractReferencedDocumentReferencedDocumentTypeoptional
additionalReferencedDocumentReferencedDocumentType[]optional
grossPriceProductTradePriceTradePriceTypeoptional
netPriceProductTradePriceTradePriceTypeoptional
itemSellerTradePartyTradePartyTypeoptional
ultimateCustomerOrderReferencedDocumentReferencedDocumentType[]optional

LineTradeDeliveryType BASIC ​

Line-level delivery: the billed and packaging quantities, ship-to party, delivery event and despatch/receiving/delivery-note references.

PropertyTypeRequired
billedQuantityQuantityTypeoptional
chargeFreeQuantityQuantityTypeoptional
packageQuantityQuantityTypeoptional
perPackageUnitQuantityQuantityTypeoptional
shipToTradePartyTradePartyTypeoptional
ultimateShipToTradePartyTradePartyTypeoptional
actualDeliverySupplyChainEventSupplyChainEventTypeoptional
despatchAdviceReferencedDocumentReferencedDocumentTypeoptional
receivingAdviceReferencedDocumentReferencedDocumentTypeoptional
deliveryNoteReferencedDocumentReferencedDocumentTypeoptional

TradeSettlementLineMonetarySummationType BASIC ​

Line-level monetary totals: the net line amount plus any charge, allowance and tax totals.

PropertyTypeRequired
lineTotalAmountAmountTyperequired
chargeTotalAmountAmountTypeoptional
allowanceTotalAmountAmountTypeoptional
taxTotalAmountAmountTypeoptional
grandTotalAmountAmountTypeoptional
totalAllowanceChargeAmountAmountTypeoptional

LineTradeSettlementType BASIC ​

Line-level settlement: the applicable VAT, invoice line period, line allowances/charges, line totals and accounting reference.

PropertyTypeRequired
applicableTradeTaxTradeTaxType[]required
billingSpecifiedPeriodSpecifiedPeriodTypeoptional
specifiedTradeAllowanceChargeTradeAllowanceChargeType[]optional
specifiedTradeSettlementLineMonetarySummationTradeSettlementLineMonetarySummationTypeoptional
invoiceReferencedDocumentReferencedDocumentTypeoptional
additionalReferencedDocumentReferencedDocumentType[]optional
receivableSpecifiedTradeAccountingAccountTradeAccountingAccountType[]optional

SupplyChainTradeLineItemType BASIC ​

An invoice line: its line document, the specified item, and the line-level agreement, delivery and settlement.

PropertyTypeRequired
associatedDocumentLineDocumentDocumentLineDocumentTyperequired
specifiedTradeProductTradeProductTyperequired
specifiedLineTradeAgreementLineTradeAgreementTypeoptional
specifiedLineTradeDeliveryLineTradeDeliveryTypeoptional
specifiedLineTradeSettlementLineTradeSettlementTyperequired

Released under the MIT License.