This document describes the XML format used by the Tungsten e-Invoice Connect API.

XSD schema

The ESXML2 invoice format schema
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
#######################################################
Exder_INVOIC_LINK.xsd
Schema for invoices from external systems
Copyright Tungsten Automation 2007-2025
#######################################################
-->
<xs:schema xmlns:exder="http://www.expertsystem.se/xml-schemas/types" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0">
	<xs:import namespace="http://www.expertsystem.se/xml-schemas/types" schemaLocation="./exderLinkTypes.xsd"/>
	<!-- The root docment itself -->
	<xs:element name="invoiceFile">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="header">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="date" type="xs:date">
								<xs:annotation>
									<xs:documentation xml:lang="en">Message creation date</xs:documentation>
									<xs:documentation xml:lang="sv">Datum</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="time" type="xs:time">
								<xs:annotation>
									<xs:documentation xml:lang="en">Message creation Time</xs:documentation>
									<xs:documentation xml:lang="sv">Tid</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="applicationRef" minOccurs="0">
								<xs:annotation>
									<xs:documentation xml:lang="en">(Deprecated) Application reference</xs:documentation>
									<xs:documentation xml:lang="sv">(Föråldrad) Applikations referens</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="14"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="retrievalIndicator" type="xs:boolean" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Indicator of an invoice retrieved from clearance service provider (or a governmental entity) to be displayed as archive invoice for a recipient member.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="testIndicator" type="xs:boolean">
								<xs:annotation>
									<xs:documentation xml:lang="en">Test indicator (true/false) </xs:documentation>
									<xs:documentation xml:lang="sv">Test indikator (true/false)</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ediStandardType" minOccurs="0">
								<xs:annotation>
									<xs:documentation xml:lang="en">(Deprecated) EDI standard of the document</xs:documentation>
									<xs:documentation xml:lang="sv">(Föråldrad) Uppgifter om EDI-standard</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="20"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="messageDescription" type="exder:messageDescriptionType" minOccurs="0">
								<xs:annotation>
									<xs:documentation xml:lang="en">(Deprecated) Message description</xs:documentation>
									<xs:documentation xml:lang="sv">(Föråldrad) Meddelandebeskrivning</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="senderIdentifier" type="exder:partyIdentifierType" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Sender party identifier</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="receiverIdentifier" type="exder:partyIdentifierType" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Receiver party identifier</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="receiverEnvelopeId" type="exder:partyIdentifierType" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Envelope party identifier for receiver </xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="senderUnbLocationId" type="exder:locationDetailsType">
								<xs:annotation>
									<xs:documentation xml:lang="en">Sender unb location id</xs:documentation>
									<xs:documentation xml:lang="sv">Avsändarens lokaliseringsnummer</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="senderOperatorCode" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation xml:lang="en">Code identifying the sending Service Provider</xs:documentation>
									<xs:documentation xml:lang="sv">Kod som identifierar avsändarens operatör</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="receiverUnbLocationId" type="exder:locationDetailsType">
								<xs:annotation>
									<xs:documentation xml:lang="en">Receiver unb location id</xs:documentation>
									<xs:documentation xml:lang="sv">Mottagerens lokaliseringsnummer</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="receiverOperatorCode" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation xml:lang="en">Code identifying the recipient Service Provider</xs:documentation>
									<xs:documentation xml:lang="sv">Kod som identifierar mottagarens operatör</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="additionalReceiverId" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation xml:lang="en">Additional operator specific identifier for the recipient. Only used when a non-standard identifier type is required.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="businessFlowId" minOccurs="0">
								<xs:annotation>
									<xs:documentation xml:lang="en">(Deprecated) Business flow</xs:documentation>
									<xs:documentation xml:lang="sv">(Föråldrad) Affärsflöde</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="exder:upshifted">
										<xs:maxLength value="10"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="mappingName" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>INTERNAL USE ONLY Name of mapping file</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="integrationName" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>INTERNAL USE ONLY Name of integration</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="integrationParameter1" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>INTERNAL USE ONLY Integration parameter 1</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="integrationParameter2" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>INTERNAL USE ONLY Integration parameter 2</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="integrationParameter3" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>INTERNAL USE ONLY Integration parameter 3</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="integrationParameter4" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>INTERNAL USE ONLY Integration parameter 4</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="integrationParameter5" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>INTERNAL USE ONLY Integration parameter 5</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="emailAddress" type="xs:string" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="en">E-mail address of the sending party</xs:documentation>
									<xs:documentation xml:lang="sv">E-postadress</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="externallyExchangedFile" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>INTERNAL USE ONLY Name of externally exchanged file</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="invoice" type="invoiceType" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation xml:lang="en">Invoice document(s)</xs:documentation>
						<xs:documentation xml:lang="sv">Faktura</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="documentVersion" type="xs:decimal" use="required"/>
		</xs:complexType>
	</xs:element>
	<!-- __________________ The invoice head ___________________________-->
	<xs:complexType name="invoiceType">
		<xs:sequence>
			<xs:element name="ediMessageId" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Message Id provided by the creating system.</xs:documentation>
					<xs:documentation xml:lang="sv">Edi log nr</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="batchId" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Batch Id provided by the sender.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceTypeId" type="exder:invoiceTypeId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-3 Type of invoice document.</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturatyp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="deliverAfterReported" type="xs:boolean" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Indicator for delivery of invoices that are subject for e-reporting.
						If invoice is a subject for e-reporting by default it will not be delivered to a
						buyer/recipient. If this flag is present and set to "true" - TeC must attempt to deliver the
						invoice to a buyer/recipient if proper recipient settings were found.
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="factoring" type="xs:boolean" minOccurs="0">
				<xs:annotation>
					<xs:documentation>If the invoice makes use of factoring, this is indicated here.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxInvoice" type="xs:boolean" minOccurs="0">
				<xs:annotation>
					<xs:documentation>If the invoice is a Tax invoice and certain adjustments should be made to PDF and GUI view.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoicingMode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>If a specific mode of invoicing is used this is indicated here.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceId" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-1 The invoice number provided by the creating system.</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturanr</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="clearanceOperatorNumber" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The invoice number assigned by a clearance service provider
						(a governmental portal or other clearance authority depending on country).
					A number usually different from and not related to "invoiceId" or other invoice identification items.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="transactionNumber" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The originating operator transaction number.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-2 The date on which the invoice was created.</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturadatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceTime" type="xs:time" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The issue time of the invoice.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="deliveryDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-72
The date on which the goods or services are avaliable to the intended recipient.</xs:documentation>
					<xs:documentation xml:lang="sv">Leveransdatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="despatchDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">The date on which the delivery was shipped.</xs:documentation>
					<xs:documentation xml:lang="sv">Utleveransdatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="messageDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">The date on which the message was created.</xs:documentation>
					<xs:documentation xml:lang="sv">Meddelandedatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxPointDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-7 The date on which tax rates/amounts was/is to be decided.</xs:documentation>
					<xs:documentation xml:lang="sv">Skatteomsättningsdatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoicePeriodFrom" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-73 The start date of the delivery period. (e.g. the start date of a service that streches accross several days)</xs:documentation>
					<xs:documentation xml:lang="sv">Faktureringsperiod, från</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoicePeriodTo" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-74 The end date of the delivery period. (e.g. the the date on which a service, that streched accross several days, ended.)</xs:documentation>
					<xs:documentation xml:lang="sv">Faktureringsperiod, till</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoicePeriodDescription" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The description of invoice period, that can present a period in various terms and serve as replacement for dates when applicable</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoicePeriodDescriptionCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The code of the date when the VAT becomes accountable for the Seller and for the Buyer.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="creditReasonId" type="exder:creditReasonIdType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>(Deprecated) The reason for crediting.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="preceedingInvoice" minOccurs="0" maxOccurs="unbounded">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="preceedingInvoiceId" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation>BT-25 The identification of an Invoice that was previously sent by the Seller.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="preceedingInvoiceIssueDate" type="xs:date" minOccurs="0">
							<xs:annotation>
								<xs:documentation>BT-26 The date when the Preceding Invoice was issued.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="preceedingInvoiceTotalAmount" type="exder:amount" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Invoice total amount of the previously sent invoice.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="preceedingInvoiceReference" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Additional reference to the identification of preceeding invoice</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="securityDetails" type="exder:securityDetailsType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Security details for the invoice itself.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceFreeText" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-22 Free text on the top level of the invoice.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="reference" type="exder:referenceType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>(Deprecated) Reference code</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="orderInformation" type="exder:orderInformationType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>BT-13 (ORDERER), BT-14 (SUPPLIER) Information pertaining to the order. Use orderType to specify the source of the information.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="orderDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">DEPRECATED. Use orderInformation instead.The date on which the purchase order was placed.</xs:documentation>
					<xs:documentation xml:lang="sv">Orderdatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="customersOrder" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">DEPRECATED. Use orderInformation instead. The purchase order number designated by the buyer. (one purchase order number only)</xs:documentation>
					<xs:documentation xml:lang="sv">Kunds ordernummer</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="pricelistReference" type="exder:referenceType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The reference code of the mutually agreed price list.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="orderReference" type="exder:referenceType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>DEPRECATED. Use orderInformation instead. The purchase order number designated to the order by the seller. (one purchase order number only)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="creditedInvoiceReference" type="exder:referenceType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The invoice number of the debet invoice which is being credited.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="desadvReference" type="exder:referenceType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-16 Dispatch advice id (advance ship notice id)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="deliveryNoteReference" type="exder:referenceType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Delivery note id</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="agreementReference" type="exder:referenceType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-12 Business agreement id. (A mutually agreed upon business agreement to which the invoice is subject)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="receiptAdviceReference" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-15 An identifier of a referenced receiving advice.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="tenderReference" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-17 The identification of the call for tender or lot the invoice relates to.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="projectReference" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-11 The identification of the project the invoice refers to.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceObject" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-18 Suppliers reference to the invoiced object other than contract, delivery note etc.</xs:documentation>
					<xs:documentation xml:lang="sv">Leverantörens referens till fakturerat objekt annat än kontrakt, följesedel etc</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="accountingReference" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Specifies where to book the relevant data into the Buyer's financial accounts.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="buyerParty" type="exder:buyerPartyType">
				<xs:annotation>
					<xs:documentation>The buyer of the goods or services and recipient of the invoice.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="supplierParty" type="exder:supplierPartyType">
				<xs:annotation>
					<xs:documentation>The supplier (or vendor) of the goods or services and the issuer of the invoice.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="payeeParty" type="exder:payeePartyType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The party to which the payment should be made if it differs from the invoice issuer (i.e. supplier party).</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxRepresentativeParty" type="exder:partyType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>A group of business terms providing information about the Seller's tax representative.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="otherParty" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>A group of business terms providing information about a party not supported elsewhere in the schema.</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="partyType" type="exder:partyTypeEnumeration">
							<xs:annotation>
								<xs:documentation>The type of the party. Available types are INVOICE_SENDER - Technical sender of the invoice.
SALES_CONTACT - Sales organization
ORDERER - Ordering party
PAYER - Party that pays the invoice.
PAYOR - Party to whome the invoice will be redirected.
MANUFACTURER - Manufacturer of the invoiced goods.
HOLDER - Party that holds the delivered goods.
TAX_REPRESENTATIVE - Tax representative party.
VALIDATOR - Validating structure information (private project manager, PO holder etc.).
FACTOR - A third party structure providing invoice factoring to a seller.
RECIPIENT - If the invoice contains data of internal units, branches, budgetary units separated 
within the buyer, which do not themselves constitute the buyer.
BUYER - Additional buyer - if the invoice contains data of subsequent buyers.
DELIVERY - Delivery party - a group of business terms providing information about where the goods and services invoiced are delivered.
OTHER - Party which is not listed here or supported elsewhere in the schema.
</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="otherPartyType" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation>If partyType is set to OTHER, then this is mandatory as a descriptive type of the party. Note generic party types are allowed in only a few formats so their use is discouraged.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="party" type="exder:partyType" minOccurs="0"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="delivery" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Information regarding the delivery.</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="carrierParty" type="exder:partyType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>The party performing the actual delivery of goods to the recipient.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="transportInformation" type="exder:transportType" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation>Detailed information regarding the transportation of goods.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="goodsInformation" type="exder:goodsType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Detailed information regarding the package and size of the goods.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="deliveryAddress" type="exder:partsAddressType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">The point of delivery for goods or services.</xs:documentation>
					<xs:documentation xml:lang="sv">Leveransadress</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceeAddress" type="exder:partsAddressType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">(Deprecated) Invoicee address.</xs:documentation>
					<xs:documentation xml:lang="sv">(Föråldrad) Fakturamottagarens adress</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="recipientEndpointId" type="exder:partyIdentifierType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-49</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceRecipientAddress" type="exder:partsAddressType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">The address to which the invoice document is delivered, when it differs from the buyer address (financial responsibility of payment, however, still resides with the buyer party)</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturaadressats adress</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="consigneeAddress" type="exder:partsAddressType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">(Deprecated) Party which is financially responsible (the buyer) for the receipt of a shipment. Provided when the consignee is other than the receiver (buyer).</xs:documentation>
					<xs:documentation xml:lang="sv">(Föråldrad) Betalningsmottagarens adress</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="customerProfitCentre" type="xs:string" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-10 Reference code provided by the buyer. Primarily a profit- or cost center.</xs:documentation>
					<xs:documentation xml:lang="sv">Kunds kostnadsställe</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceCurrencyCode" type="exder:currencyCodeType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-5 Currency of the invoice.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxCurrencyCode" type="exder:currencyCodeType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-6 Currency used for taxation if it differs from the invoice currency.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="currencyExchange" type="exder:currencyExchangeType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Currency exchange information.</xs:documentation>
					<xs:documentation xml:lang="sv">Valutakonvertering</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dueDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-9 The date on which payment of the invoice should be completed.</xs:documentation>
					<xs:documentation xml:lang="sv">Förfallodatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cashDiscountDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">DEPRECATED, use cashDiscount instead. Cash discount date</xs:documentation>
					<xs:documentation xml:lang="sv">Kassarabattsdatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="deliveryTerms" type="exder:deliveryTermsType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Delivery terms details</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="paymentMeans" type="exder:paymentMeansType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Specifies the options of payment (i.e. different bank accounts, giro services, and more)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="paymentTerms" type="exder:paymentTermsType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-20 Payment terms in  plain text.</xs:documentation>
					<xs:documentation xml:lang="sv">Betalningsvillkor</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="prepaidPayment" type="exder:prepaidPayment" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Information regarding prepaid payments in scope of the invoice.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="cashDiscount" type="exder:cashDiscountType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Information regarding cash discount for the invoice. Informative and not included in the invoice totals.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="delayTerms" type="exder:delayTermsType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Specifies the terms if payment of the invoice is completed past due date or not at all.</xs:documentation>
					<xs:documentation xml:lang="sv">Villkor vid försenad betalning</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="allowanceAndCharge" type="exder:allowanceAndChargeType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Specifies allowance (discounts) and/or charge (fee) which the entire invoice is subject to.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="noPaymentDays" type="xs:nonNegativeInteger" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Number of days until payment is due. (days between invoice creation date and invoice due date)</xs:documentation>
					<xs:documentation xml:lang="sv">Antal förfallodagar</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceLine" minOccurs="0" maxOccurs="unbounded">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="invoiceLineId" type="xs:normalizedString" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-126 Invoice line number</xs:documentation>
								<xs:documentation xml:lang="sv">Fakturarad</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="articleGTIN" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-157 (in case of GTIN) Global Trade Item Number (codelist agency GS1)</xs:documentation>
								<xs:documentation xml:lang="sv">Artikeid, GTIN</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="standardItemIdentification" minOccurs="0">
							<xs:annotation>
								<xs:documentation>BT-157 (if not GTIN) An item identifier based on a registered scheme.</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:simpleContent>
									<xs:extension base="xs:string">
										<xs:attribute name="schemeID" use="required">
											<xs:annotation>
												<xs:documentation>BT-157-1 The identification scheme identifier of the Item standard identifier</xs:documentation>
											</xs:annotation>
										</xs:attribute>
									</xs:extension>
								</xs:simpleContent>
							</xs:complexType>
						</xs:element>
						<xs:element name="supplierArticleId" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-155 Article idetification assigned by the supplier.</xs:documentation>
								<xs:documentation xml:lang="sv">Leverantörens artikelnummer</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="buyerArticleId" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-156 Article identification assigned by the supplier.</xs:documentation>
								<xs:documentation xml:lang="sv">Köparens artikelnummer</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="manufacturerArticleId" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Article identification assigned by the manufacturer.</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="articleName" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-153 Shortened article description in plain text. (Use article description if both are not needed)</xs:documentation>
								<xs:documentation xml:lang="sv">Artikelnamn</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="articleDescription" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-154 Article description in plain text.</xs:documentation>
								<xs:documentation xml:lang="sv">Beskrivning</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="invoiceLineText" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-127 Invoice line plain text</xs:documentation>
								<xs:documentation xml:lang="sv">Fakturaradstext</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="orderQuantity" type="exder:quantityType" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">Order quantity</xs:documentation>
								<xs:documentation xml:lang="sv">Beställt antal</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="invoiceQuantity" type="exder:quantityType">
							<xs:annotation>
								<xs:documentation xml:lang="en">Invoiced quantity</xs:documentation>
								<xs:documentation xml:lang="sv">Fakturerat antal</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="meteringInformation" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Information regarding metered articles. Section is informational onlly and is not calculated into the line totals.</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="location" type="exder:locationDetailsType" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Location of the meter.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="usedQuantity" type="exder:quantityType" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Used quantity since previous meter reading.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="previousMeterReading" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Date/Time and value of the previous meter reading.</xs:documentation>
										</xs:annotation>
										<xs:complexType>
											<xs:sequence>
												<xs:element name="date" type="xs:date" minOccurs="0"/>
												<xs:element name="time" type="xs:time" minOccurs="0"/>
												<xs:element name="value" type="xs:decimal" minOccurs="0"/>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element name="latestMeterReading" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Date/Time and value of the latest meter reading.</xs:documentation>
										</xs:annotation>
										<xs:complexType>
											<xs:sequence>
												<xs:element name="date" type="xs:date" minOccurs="0"/>
												<xs:element name="time" type="xs:time" minOccurs="0"/>
												<xs:element name="value" type="xs:decimal" minOccurs="0"/>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="countryOfOrigin" minOccurs="0">
							<xs:annotation>
								<xs:documentation>BT- 159 Country code (ISO)</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="exder:upshifted">
									<xs:maxLength value="3"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="deliveryDate" type="xs:date" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">The date on which the goods or services are avaliable to the intended recipient.</xs:documentation>
								<xs:documentation xml:lang="sv">Leveransdatum</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="invoicePeriodFrom" type="xs:date" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-134 The start date of the delivery period. (e.g. the start date of a service that streches accross several days)</xs:documentation>
								<xs:documentation xml:lang="sv">Faktureringsperiod, från</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="invoicePeriodTo" type="xs:date" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-135 The end date of the delivery period. (e.g. the the date on which a service, that streched accross several days, ended.)</xs:documentation>
								<xs:documentation xml:lang="sv">Faktureringsperiod, till</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="shopDeliveryDate" type="xs:date" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">(Deprecated) Shop delivery date</xs:documentation>
								<xs:documentation xml:lang="sv">(Föråldrad) Leveransdatum till butiken</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="invoiceLineAmount" type="exder:amount">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-131 Invoice line amount (excl. of VAT)</xs:documentation>
								<xs:documentation xml:lang="sv">Fakturaradsbelopp</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="price" type="exder:priceType" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">Price</xs:documentation>
								<xs:documentation xml:lang="sv">Pris</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="vatInfo" type="exder:taxType" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">Tax/VAT details</xs:documentation>
								<xs:documentation xml:lang="sv">Momsinformation</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="discountAmount" type="exder:amount" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">OBSOLETE. Use AllowanceAndCharge Discount amount</xs:documentation>
								<xs:documentation xml:lang="sv">Rabattbelopp</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="discountPercent" type="exder:positiveDecimal" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">OBSOLETE. Use AllowanceAndCharge. Discount percent</xs:documentation>
								<xs:documentation xml:lang="sv">Rabattprocent</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="exchangeRate" type="xs:decimal" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Currency exchange rate for cases when invoice is intended for operator required to have local currency tax calculations (like in KSeF). Invoice not necessarily must have a different taxCurrency value. The value might be different for each line.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="allowanceAndCharge" type="exder:allowanceAndChargeType" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation>Allowance (discount) and Charge (fee) on line. Provided as information. Any price adjustments are made directly on the line amount.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="itemInstance" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation xml:lang="en">Traceablity details</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:sequence>
									<xs:element name="productTraceNo" minOccurs="0">
										<xs:annotation>
											<xs:documentation xml:lang="en">Product trace ID (e.g. batch number)</xs:documentation>
											<xs:documentation xml:lang="en">Spårbarhets-ID såsom batchnummer</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:maxLength value="255"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="registrationNo" minOccurs="0">
										<xs:annotation>
											<xs:documentation xml:lang="en">Registration ID (e.g. car registration number)</xs:documentation>
											<xs:documentation xml:lang="sv">ID i register, såsom registreringsnummer för bil</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:maxLength value="255"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="serialNo" minOccurs="0">
										<xs:annotation>
											<xs:documentation xml:lang="en">Serial number</xs:documentation>
											<xs:documentation xml:lang="sv">Serienummer</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:maxLength value="255"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:element>
									<xs:element name="manufactureDate" type="xs:date" minOccurs="0">
										<xs:annotation>
											<xs:documentation xml:lang="en">Date on which the goods were manufactured.</xs:documentation>
											<xs:documentation xml:lang="sv">Tillverkningsdatum</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="manufactureTime" type="xs:time" minOccurs="0">
										<xs:annotation>
											<xs:documentation xml:lang="en">Time on which the goods were manufactured.</xs:documentation>
											<xs:documentation xml:lang="sv">Tillverkningstid</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="trackingId" type="xs:string" minOccurs="0" maxOccurs="unbounded">
										<xs:annotation>
											<xs:documentation>ID relating to the shipment of the item. Normally used to track the progress of the parcel during shipping.</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="itemClassificationCode" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation>BT-158 A code for classifying the item by its type or nature.</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:simpleContent>
									<xs:extension base="xs:string">
										<xs:attribute name="listID">
											<xs:annotation>
												<xs:documentation>BT-158-1 The identification scheme identifier of the Item classification identifier</xs:documentation>
											</xs:annotation>
										</xs:attribute>
										<xs:attribute name="listVersionID">
											<xs:annotation>
												<xs:documentation>BT-158-2 The identification scheme version identifier of the Item classification identifier</xs:documentation>
											</xs:annotation>
										</xs:attribute>
									</xs:extension>
								</xs:simpleContent>
							</xs:complexType>
						</xs:element>
						<xs:element name="additionalItemAttribute" type="exder:additionalAttributeType" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation>Information about properties of the goods and services invoiced.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="customersReference" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">A reference provided by the buyer.</xs:documentation>
								<xs:documentation xml:lang="sv">Kunds referens</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="12"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="deliveryNoteReference" type="xs:string" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation xml:lang="en">Reference to delivery note id</xs:documentation>
								<xs:documentation xml:lang="sv">Referens till följesedel</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="deliveryNoteLineReference" type="exder:referenceType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>(Deprecated) Delivery note line reference.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="orderReference" type="exder:referenceType" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation>Purchase order number designated by the buyer.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="orderLineReference" type="exder:referenceType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>An identifier for a referenced line within a purchase order, issued by the Buyer.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="documentReferenceId" minOccurs="0">
							<xs:annotation>
								<xs:documentation>BT-128
Invoice line object identifier.</xs:documentation>
							</xs:annotation>
							<xs:complexType>
								<xs:simpleContent>
									<xs:extension base="xs:string">
										<xs:attribute name="schemeID">
											<xs:annotation>
												<xs:documentation>BT-128-1</xs:documentation>
											</xs:annotation>
										</xs:attribute>
										<xs:attribute name="typeCode" type="xs:string">
											<xs:annotation>
												<xs:documentation>Type of the document referenced.</xs:documentation>
											</xs:annotation>
										</xs:attribute>
									</xs:extension>
								</xs:simpleContent>
							</xs:complexType>
						</xs:element>
						<xs:element name="priceListReference" type="exder:referenceType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>(Deprecated) Price list reference</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="creditedInvoiceReference" type="exder:referenceType" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation>(Deprecated) Credited invoice reference</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="creditedInvoiceLineReference" type="exder:referenceType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>(Deprecated) Credited invoice line reference</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="taxReason" type="taxReasonType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>(Deprecated) Tax reason type</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="chargeRepa" type="exder:amount" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">(Deprecated) Charge REPA</xs:documentation>
								<xs:documentation xml:lang="sv">(Föråldrad) Avgift REPA</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="creditReasonId" type="exder:creditReasonIdType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>(Deprecated) The reason for crediting.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="customerProfitCentre" type="xs:string" minOccurs="0" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation xml:lang="en">BT-133 A reference assigned by the buyer. Commonly a profit- or cost center.</xs:documentation>
								<xs:documentation xml:lang="sv">Kunds kostnadsställe</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="deliveryAddress" type="exder:partsAddressType" minOccurs="0">
							<xs:annotation>
								<xs:documentation xml:lang="en">The point of delivery for goods or services.</xs:documentation>
								<xs:documentation xml:lang="sv">Leveransadress</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="invoiceTrailer" type="invoiceTrailerType">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice summary section.</xs:documentation>
					<xs:documentation xml:lang="sv">fakturasummering</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="attachments" type="attachmentsType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice attachments</xs:documentation>
					<xs:documentation xml:lang="sv">bilagor</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="additionalAttribute" type="exder:additionalAttributeType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<!-- _______________________ Invoice trailer _______________________ -->
	<xs:complexType name="invoiceTrailerType">
		<xs:sequence>
			<xs:element name="invoiceTotalQuantity" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Total quantity of all invoice lines.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceNumberOfLines" type="xs:nonNegativeInteger">
				<xs:annotation>
					<xs:documentation>The total number of invoice lines.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceTotalAmount" type="exder:amount">
				<xs:annotation>
					<xs:documentation>BT-115 Amount due (amount to be paid). The total amount incl. any VAT.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="roundOffAmount" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-114 The amount added or substracted when rounding the total amount.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="prepaidAmount" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-113 Amount paid in advance by the buyer and consequently substracted from the total amount.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="lineSumAmount" type="exder:amount">
				<xs:annotation>
					<xs:documentation>BT-106 Total amount of all invoice lines.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vatInclusiveAmount" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-112 The total amount of the Invoice with VAT, note this amount is before deduction of for instance prepaid amounts, and as such can differ from the amount due.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="totalAllowance" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-107 Sum (total amount) of allowance(s) (discounts).</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="totalCharge" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-108 Sum (total amount) of charge(s) (fees).</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxableAmount" type="exder:amount">
				<xs:annotation>
					<xs:documentation>BT-109 Invoice total amount excl. of tax/VAT.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceVatTotalAmount" type="exder:amount">
				<xs:annotation>
					<xs:documentation>BT-110 Sum of tax/VAT.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vatTotalAmountInOtherCurrency" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-111 Summation of VAT in other currency.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceVat" type="invoiceVatType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Tax/VAT details. Summary section per tax rate.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="freightTotalAmount" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>(Deprecated) Use allowanceAndCharge</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="energyTax" type="exder:energyTaxType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>(Deprecated) Energy Tax</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vatCurrencyException" type="vatCurrencyExceptionType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>(Deprecated) Vat currency exception</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vatInfo" type="exder:taxType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>(Deprecated) Use invoiceVat</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="withholdingTax" type="exder:withholdingTaxType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Information on withholding tax for the whole invoice. </xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="stampDutyAmount" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Stamp Duty tax section. Informational section only (must not be included in invoice totals calculations).</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- __________________ Invoice types _______________________ -->
	<xs:complexType name="invoiceVatType">
		<xs:sequence>
			<xs:element name="vatPercentage" type="exder:positiveDecimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-118 Tax/VAT percentage</xs:documentation>
					<xs:documentation xml:lang="sv">Momssats</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vatAmount" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-117 Tax/VAT amount</xs:documentation>
					<xs:documentation xml:lang="sv">Momsbelopp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxableAmount" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-116 Invoice total amount excl. of tax/VAT.</xs:documentation>
					<xs:documentation xml:lang="sv">Beskattningsbart belopp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="creditedVatInfo" type="exder:taxType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Credited vat info</xs:documentation>
					<xs:documentation xml:lang="sv">Momsinformation vid kreditering</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxTypeCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-118 Tax type code</xs:documentation>
					<xs:documentation xml:lang="sv">Skattekategori, kod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<!-- lawText should only be used when taxPercentage is "0" (zero) -->
			<xs:element name="lawText" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-120 Tax legislation may, depending on tax rate or type of goods, require an explanatory text.</xs:documentation>
					<xs:documentation xml:lang="sv">Lagtext</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="exemptionReasonCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-121 Exemption reason code value in accordance with code list VATEX</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vatAmountInOtherCurrency" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation>VAT amount in other currency than the invoice currency. Used in conjunction with taxCurrencyCode </xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="taxReasonType">
		<xs:annotation>
			<xs:documentation xml:lang="en">Tax reason</xs:documentation>
			<xs:documentation xml:lang="sv">Skattemotivering</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="vatCurrencyExceptionType">
		<xs:sequence>
			<xs:element name="vatPercentage" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">VAT percentage</xs:documentation>
					<xs:documentation xml:lang="sv">Momssats, procent</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxCategory" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Code</xs:documentation>
					<xs:documentation xml:lang="sv">Kod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="taxableAmount" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Taxable amount</xs:documentation>
					<xs:documentation xml:lang="sv">Beskattningsbart belopp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vatAmount" type="exder:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Tax amount</xs:documentation>
					<xs:documentation xml:lang="sv">Momsbelopp</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--_________________ Attachment section _________________-->
	<xs:complexType name="attachmentsType">
		<xs:sequence>
			<xs:element name="attachment" type="attachmentType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Attachments included in the invoice document. (Encoded in base64)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="externalReference" type="externalReferenceType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>A reference to a document not included in the invoice, but found elsewhere.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="attachmentType">
		<xs:sequence>
			<xs:element name="objectId" type="xs:string">
				<xs:annotation>
					<xs:documentation>Object name (i.e. file name)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="documentType" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Description of document (e.g. PDF)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="encodedData">
				<xs:annotation>
					<xs:documentation>The document (encoded in base64)</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="xs:base64Binary">
							<xs:attribute name="filename" type="xs:string"/>
							<xs:attribute name="mimeCode" type="xs:string"/>
							<xs:attribute name="format" type="xs:string" default="Base64"/>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
			<xs:element name="securityDetails" type="exder:securityDetailsType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Security details for the attachment.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="externalReferenceType">
		<xs:sequence>
			<xs:element name="id" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Resource (e.g. document) id</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="xs:string">
							<xs:attribute name="schemeID">
								<xs:annotation>
									<xs:documentation>Additional reference type</xs:documentation>
								</xs:annotation>
							</xs:attribute>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
			<xs:element name="issueDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Issue date of the document</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="documentType" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Description of document.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="documentTypeCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Document type code</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="URL" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Uniform Resource Locator. (e.g. http link)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="attachmentFilename" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>File name</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="securityDetails" type="exder:securityDetailsType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Security details for the referenced object.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
Basic types #1
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
#######################################################
exderLinkTypes.xsd
Definition of used basic types.
Copyright Tungsten Automation 2007-2025
#######################################################
-->
<xs:schema xmlns:exderType="http://www.expertsystem.se/xml-schemas/types" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.expertsystem.se/xml-schemas/types" elementFormDefault="unqualified" attributeFormDefault="unqualified" version="1.0">
	<xs:include schemaLocation="./exderTypes.xsd"/>
	<!-- Basic types -->
	<xs:complexType name="quantityType">
		<xs:sequence>
			<xs:element name="quantity" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-129 Quantity</xs:documentation>
					<xs:documentation xml:lang="sv">Kvantitet</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:choice minOccurs="0">
				<xs:element name="edifactUnit">
					<xs:annotation>
						<xs:documentation>Unit codes according to EDIFACT</xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="exderType:upshifted">
							<xs:maxLength value="3"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="unitId" type="exderType:unitId">
					<xs:annotation>
						<xs:documentation xml:lang="en">Unit</xs:documentation>
						<xs:documentation xml:lang="sv">Enhet</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="externalUnit" type="xs:string">
					<xs:annotation>
						<xs:documentation xml:lang="en">Unit referred to by configurable code</xs:documentation>
						<xs:documentation xml:lang="sv">Enhet med egendefinierad kod</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="label" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="unit" type="exderType:unitType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="energyTaxType">
		<xs:sequence>
			<xs:element name="pricePerUnit" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Energy price (per KWH)</xs:documentation>
					<xs:documentation xml:lang="sv">Energipris (per KWH)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="code" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Code</xs:documentation>
					<xs:documentation xml:lang="sv">Kod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="amount" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Amount</xs:documentation>
					<xs:documentation xml:lang="sv">Belopp</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="priceType">
		<xs:sequence>
			<xs:choice minOccurs="0">
				<xs:element name="contractPrice" type="xs:decimal">
					<xs:annotation>
						<xs:documentation xml:lang="en">BT-146 Contract price</xs:documentation>
						<xs:documentation xml:lang="sv">Kontraktpris</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="currentPriceContractual" type="xs:decimal">
					<xs:annotation>
						<xs:documentation xml:lang="en">(Deprecated) Current price - contractual</xs:documentation>
						<xs:documentation xml:lang="sv">Aktuellt pris - avtalat</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="promotionalPrice" type="xs:decimal">
					<xs:annotation>
						<xs:documentation xml:lang="en">(Deprecated) Promotional price</xs:documentation>
						<xs:documentation xml:lang="sv">Kampanjpris</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="currentPriceDiscounted" type="xs:decimal">
					<xs:annotation>
						<xs:documentation xml:lang="en">(Deprecated) Current price - discounted</xs:documentation>
						<xs:documentation xml:lang="sv">Aktuellt pris - rabatterat</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="discountPrice" type="xs:decimal">
					<xs:annotation>
						<xs:documentation xml:lang="en">(Deprecated) Discount price</xs:documentation>
						<xs:documentation xml:lang="sv">Rabatterat pris</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="retailPrice" type="xs:decimal">
					<xs:annotation>
						<xs:documentation xml:lang="en">(Deprecated) Price</xs:documentation>
						<xs:documentation xml:lang="sv">Ápris</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="unitPriceBasis" type="exderType:positiveDecimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-149 The quantity base used to calculate the price.</xs:documentation>
					<xs:documentation xml:lang="sv">Enhetsprisbasis</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:choice minOccurs="0">
				<xs:element name="edifactUnit">
					<xs:annotation>
						<xs:documentation>EDIFACT unit codes</xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="exderType:upshifted">
							<xs:maxLength value="3"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="unitId" type="exderType:unitId">
					<xs:annotation>
						<xs:documentation xml:lang="en">NOT USED IN INVOICE PORTAL! Unit</xs:documentation>
						<xs:documentation xml:lang="sv">Enhet</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="externalUnit" type="xs:string">
					<xs:annotation>
						<xs:documentation xml:lang="en">Unit in plain text.</xs:documentation>
						<xs:documentation xml:lang="sv">Enhet med egendefinierad kod</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="label" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="unit" type="exderType:unitType" minOccurs="0"/>
			<xs:element name="allowanceAndCharge" type="exderType:allowanceAndChargeType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Allowance (discount) and Charge (fee) on line's price level. Provided as information. Will not be used in calculations.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- Message description -->
	<xs:complexType name="messageDescriptionType">
		<xs:sequence>
			<xs:element name="messageType" type="xs:string">
				<xs:annotation>
					<xs:documentation xml:lang="en">Message type</xs:documentation>
					<xs:documentation xml:lang="sv">Meddelandetyp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="messageVersion" type="xs:string">
				<xs:annotation>
					<xs:documentation xml:lang="en">Message version number</xs:documentation>
					<xs:documentation xml:lang="sv">Meddelandets versionssnummer</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="messageRevision" type="xs:string">
				<xs:annotation>
					<xs:documentation xml:lang="en">Message version revision</xs:documentation>
					<xs:documentation xml:lang="sv">Message version revision</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="messageResponsibility" type="xs:string">
				<xs:annotation>
					<xs:documentation xml:lang="en">Message responsibility</xs:documentation>
					<xs:documentation xml:lang="sv">Ansvarig för meddelande</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="syntaxIdentifier" type="xs:string">
				<xs:annotation>
					<xs:documentation xml:lang="en">Syntax identifier</xs:documentation>
					<xs:documentation xml:lang="sv">Syntax, identifierare</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="syntaxNumber" type="xs:string">
				<xs:annotation>
					<xs:documentation xml:lang="en">Syntax number</xs:documentation>
					<xs:documentation xml:lang="sv">Syntaxnummer</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="financialInfoType">
		<xs:sequence>
			<xs:element name="bank" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Bank</xs:documentation>
					<xs:documentation xml:lang="sv">Bank</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="swiftCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">SWIFT/BIC</xs:documentation>
					<xs:documentation xml:lang="sv">SWIFT/BIC</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="11"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="clearingNo" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Clearing no</xs:documentation>
					<xs:documentation xml:lang="sv">Clearingnr</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="bankAccount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Bank account</xs:documentation>
					<xs:documentation xml:lang="sv">Bankkonto</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="accountHolder" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Account holder</xs:documentation>
					<xs:documentation xml:lang="sv">Kontoinnehavare</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="IBAN" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">IBAN (international bank account number)</xs:documentation>
					<xs:documentation xml:lang="sv">IBAN (international bank account number)</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="40"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="bankgiro" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Bank giro service</xs:documentation>
					<xs:documentation xml:lang="sv">Bankgiro</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="postgiro" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">PlusGirot</xs:documentation>
					<xs:documentation xml:lang="sv">PlusGirot</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="paymentRef" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Payment reference (OCR)</xs:documentation>
					<xs:documentation xml:lang="sv">Betalningsreferens (OCR)</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="paymentMeansType">
		<xs:sequence>
			<xs:element name="paymentMeansType">
				<xs:annotation>
					<xs:documentation xml:lang="en">
Type of payment channel:
BANK
IBAN
SE_BankGiro
SE_PlusGiro
DK_Giro
DK_FIK
          </xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="paymentMeansSubType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">
In case payment service provides a set of sub-services that needs to be defined. (e.g. danish giro services "kortart".)
          </xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="transactionType" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-81
The code for the payment means used according to the specified codelist.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="accountNo" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-84
Account number within payment service, such as bank account no, IBAN or giro no.</xs:documentation>
				</xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="50"/>
                    </xs:restriction>
                </xs:simpleType>
			</xs:element>
			<xs:element name="institutionName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Name of financial institution (e.g. bank name).
          </xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="swiftCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-86 (if correct type)
Bank Identification Code (BIC) formerly known as swift code.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="11"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="branchCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-86 (if correct type)
Account Clearing number (a prefix to a bank account number). Used for BANK accounts.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="paymentRef" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-83 Payment reference (e.g. OCR)</xs:documentation>
				</xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="255"/>
                    </xs:restriction>
                </xs:simpleType>
			</xs:element>
			<xs:element name="paymentMandate" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-89 Unique identifier assigned by the Payee for referencing the direct debit mandate. Used in order to pre-notify the Buyer of a SEPA direct debit.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="paymentNote" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Payment message in plain text.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="paymentCardInformation" minOccurs="0">
				<xs:annotation>
					<xs:documentation>A group of business terms providing information about card used for payment contemporaneous with invoice issuance.</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="cardAccountNumber" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation>BT-87
The Primary Account Number (PAN) of the card used for payment.In accordance with card payments security standards, an invoice should never include a full card primary account number.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="cardNetworkId" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation>BT-87-1
Card Network identifier, such as VISA, American Express, Master Card.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="cardHolderName" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation>BT-88
The name of the payment card holder.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="payerFinancialAccount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-91
Debited account identifier.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="buyerPartyType">
		<xs:sequence>
			<xs:element name="partnerId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Supplier internal buyer identification used in local system (or organization).</xs:documentation>
					<xs:documentation xml:lang="sv">Partner</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="legalName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-44 The full name of the Buyer.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="buyerAddress" type="exderType:partsAddressType" minOccurs="0"/>
			<xs:element name="partyIdentifier" type="exderType:partyIdentifierType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>BT-46, BT-48 where applicable</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="organisationNo" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">OBSOLETE IF PARTY IDENTIFIER IS USED Organisation no</xs:documentation>
					<xs:documentation xml:lang="sv">Organisationsnr</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="vatCountryId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">OBSOLETE IF PARTY IDENTIFIER IS USED VAT country</xs:documentation>
					<xs:documentation xml:lang="sv">Momsreg. land</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="vatNo" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">OBSOLETE IF PARTY IDENTIFIER IS USED VAT number</xs:documentation>
					<xs:documentation xml:lang="sv">Momsregistreringsnr</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="registrationAddress" type="exderType:partsAddressType" minOccurs="0"/>
			<xs:element name="partyTaxScheme" type="exderType:partyTaxSchemeType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>BT-48 depending on source.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="supplierPartyType">
		<xs:sequence>
			<xs:element name="partnerId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Supplier internal identification used in local system (or organization)</xs:documentation>
					<xs:documentation xml:lang="sv">Partner</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="legalName" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-27 Legal name of entity (organization)</xs:documentation>
					<xs:documentation xml:lang="sv">Juridiskt namn</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="boardSite" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">City where the organization is legally registered (board site).</xs:documentation>
					<xs:documentation xml:lang="sv">Styrelsens säte</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string"/>
				</xs:simpleType>
			</xs:element>
			<xs:element name="fTax" type="xs:boolean" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Holding corporate income tax certificate (e.g. swedish F-tax certificate)</xs:documentation>
					<xs:documentation xml:lang="sv">Innehar F-skattebevis</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="supplierAddress" type="exderType:partsAddressType" minOccurs="0"/>
			<xs:element name="financialInfo" type="exderType:financialInfoType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>(Deprecated) Use Payment Means.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="partyIdentifier" type="exderType:partyIdentifierType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>BT-29 Use of at least one party identifier is highly recommended.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="supplierEndpointId" type="exderType:partyIdentifierType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-34 Identifies the Seller's electronic address to which a business document may be delivered.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="organisationNo" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">OBSOLETE IF PARTY IDENTIFIER IS USED Organisation no</xs:documentation>
					<xs:documentation xml:lang="sv">Organisationsnr</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="vatCountryId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">OBSOLETE IF PARTY IDENTIFIER IS USED
VAT country code</xs:documentation>
					<xs:documentation xml:lang="sv">Momsreg. land</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="vatNo" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">OBSOLETE IF PARTY IDENTIFIER IS USED
VAT number
</xs:documentation>
					<xs:documentation xml:lang="sv">Momsregistreringsnr</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="partyTaxScheme" type="exderType:partyTaxSchemeType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>BT-31 and BT-32</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxRegime" type="exderType:taxRegimeEnumeration" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Code for the tax regime of a company</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="companyLegalForm" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-33 Additional legal information relevant for the Seller.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="registrationAddress" type="exderType:partsAddressType" minOccurs="0"/>
			<xs:element name="websiteURL" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Information regarding a Website for the specific party.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="payeePartyType">
		<xs:sequence>
			<xs:element name="payeeAddress" type="exderType:partsAddressType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Payee address information</xs:documentation>
					<xs:documentation xml:lang="sv">Betalningsmottagarens adress</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="financialInfo" type="exderType:financialInfoType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>OBSOLETE. Use paymentMeans</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="partyIdentifier" type="exderType:partyIdentifierType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>BT-60</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="organisationNo" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">OBSOLETE. Use partyIdentifier</xs:documentation>
					<xs:documentation xml:lang="sv">Organisationsnr</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="partyTaxScheme" type="exderType:partyTaxSchemeType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<!--SG-Servicegrossisterna reference type-->
	<xs:complexType name="referenceType">
		<xs:sequence>
			<xs:element name="referenceCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">(Deprecated) Reference code</xs:documentation>
					<xs:documentation xml:lang="sv">Referenskod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="referenceNumber" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-132
The reference id</xs:documentation>
					<xs:documentation xml:lang="sv">Referensnummer</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="agreementType" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The type of agreement referenced, in plain text.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="agreementDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The date of the agreement.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="agreementPeriodStartDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>For a periodic agreement, the start date.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="agreementPeriodEndDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>For a periodic agreement, the end date.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="paymentTermsType" mixed="true">
		<xs:sequence>
			<xs:element name="note" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The payment terms in free text.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="penaltySurchargePercent" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The penalty surcharge expressed as a percentage of the invoice total amount.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="penaltySurchargeAmount" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The penalty surcharge expressed as a monetary amount.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="deliveryTermsType">
		<xs:sequence>
			<xs:element name="deliveryTermCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Delivery term code</xs:documentation>
					<xs:documentation xml:lang="sv">Leveransvillkor - kod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="deliveryAddressName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">The name of the Party (e.g. organization) located at the address.</xs:documentation>
					<xs:documentation xml:lang="sv">Plats för leveransvillkoret</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="deliveryTermsText" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Delivery terms in plain text.</xs:documentation>
					<xs:documentation xml:lang="sv">Klartext för leveransvillkoret</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="delayTermsType">
		<xs:sequence>
			<xs:element name="delayTerms" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Delay terms in plain text.</xs:documentation>
					<xs:documentation xml:lang="sv">förseningsvillkor</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="penaltyInterestRate" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Penalty interest rate</xs:documentation>
					<xs:documentation xml:lang="sv">Straffräntesats</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="allowanceAndChargeType">
		<xs:sequence>
			<xs:element name="alcType" type="exderType:alcTypeId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Code (allowance or charge)</xs:documentation>
					<xs:documentation xml:lang="sv">Avgift/rabattkod</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="alcQuantity" type="xs:nonNegativeInteger" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Allowance or charge quantity</xs:documentation>
					<xs:documentation xml:lang="sv">Avgift/rabattkvantitet</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="alcPercentage" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-94, BT-101, BT-138, BT-143
Allowance or charge percentage</xs:documentation>
					<xs:documentation xml:lang="sv">Avgift/rabattkodsprocent</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="alcAmount" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-92, BT-99, BT-136, BT-141, BT-147
Allowance or charge amount</xs:documentation>
					<xs:documentation xml:lang="sv">Avgiftsbelopp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="alcBaseAmount" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-93, BT-100, BT-137, BT-142, BT-148
Allowance or charge base amount</xs:documentation>
					<xs:documentation xml:lang="sv">Avgiftsgrundandebelopp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="calculationSequence" type="xs:nonNegativeInteger" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Allowance or charge Calculation sequence</xs:documentation>
					<xs:documentation xml:lang="sv">Beräkningssekvens</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="alcReasonCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-98, BT-105, BT-140, BT-145 Allowance or charge expressed as a code.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="alcReasonText" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-97, BT-104, BT-139, BT-144 Allowance or charge reason. PLain text.</xs:documentation>
					<xs:documentation xml:lang="sv">ALC orsak</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:choice minOccurs="0">
				<xs:element name="edifactUnit">
					<xs:annotation>
						<xs:documentation>Unit code according to EDIFACT</xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="exderType:upshifted">
							<xs:maxLength value="3"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="unitId" type="exderType:unitId">
					<xs:annotation>
						<xs:documentation xml:lang="en">Unit</xs:documentation>
						<xs:documentation xml:lang="sv">Enhet</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="externalUnit" type="xs:string">
					<xs:annotation>
						<xs:documentation xml:lang="en">Unit referred to by configurable code</xs:documentation>
						<xs:documentation xml:lang="sv">Enhet med egendefinierad kod</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="specialServices" type="exderType:specialServicesType" minOccurs="0"/>
			<xs:element name="alcTax" type="exderType:taxType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="specialServicesType">
		<xs:sequence>
			<xs:element name="specialServiceCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Special services code</xs:documentation>
					<xs:documentation xml:lang="sv">Servicekod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="taxType">
		<xs:sequence>
			<xs:element name="taxTypeCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-95, BT-102, BT-151
Tax type code</xs:documentation>
					<xs:documentation xml:lang="sv">Skattekategori, kod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="taxPercentage" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-96, BT-103, BT-152
Tax percentage</xs:documentation>
					<xs:documentation xml:lang="sv">Skattesats</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxAmount" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Tax amount</xs:documentation>
					<xs:documentation xml:lang="sv">Skattebelopp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="lawText" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Tax legislation may, depending on tax rate or type of goods, require an explanatory text.</xs:documentation>
					<xs:documentation xml:lang="sv">Lagtext</xs:documentation>
				</xs:annotation>
			</xs:element>
			<!-- lawText should only be used when taxPercentage is "0" (zero) -->
			<xs:element name="exemptionReasonCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Exemption reason code value in accordance with code list VATEX</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="originalTaxCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Original tax code. Applicable for chinese invoices (fapiao)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="originalTaxCodeDesc" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Original tax code description. Applicable for chinese invoices (fapiao)</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="withholdingTaxType">
		<xs:sequence>
			<xs:element name="withholdingAmount" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Tax amount</xs:documentation>
					<xs:documentation xml:lang="sv">Skattebelopp</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="withholdingPercentage" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Tax percentage</xs:documentation>
					<xs:documentation xml:lang="sv">Skattesats</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="withholdingType" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Withholding tax type value</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="withholdingReasonCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Withholding tax reason code value</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="currencyCodeType">
		<xs:annotation>
			<xs:documentation xml:lang="en">Currency code</xs:documentation>
			<xs:documentation xml:lang="sv">Valutakod</xs:documentation>
		</xs:annotation>
		<xs:restriction base="exderType:upshifted">
			<xs:maxLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="currencyExchangeType">
		<xs:sequence>
			<xs:element name="sourceCurrencyCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Currency code for currency from which conversion is made.</xs:documentation>
					<xs:documentation xml:lang="sv">Valutakonvertering till, id</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="exchangeRate" type="xs:decimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Conversion rate</xs:documentation>
					<xs:documentation xml:lang="sv">Valutakurs</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="exchangeRateDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Conversion rate date</xs:documentation>
					<xs:documentation xml:lang="sv">Valutakursdatum</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="targetCurrencyCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Currency code for currency to which conversion is made.</xs:documentation>
					<xs:documentation xml:lang="sv">Valutakonvertering till, id</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="creditReasonIdType">
		<xs:annotation>
			<xs:documentation xml:lang="en">Credit reason type</xs:documentation>
			<xs:documentation xml:lang="sv">Anledning till kreditering, typ</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="contactType">
		<xs:sequence>
			<xs:element name="positionId" type="exderType:positionTypeId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">(Deprecated) Contact code</xs:documentation>
					<xs:documentation xml:lang="sv">Kontaktkod</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="contactName" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-41, BT-56 Name of the contact (person) in plain text.</xs:documentation>
					<xs:documentation xml:lang="sv">Namn</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="phone" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-42, BT-57 Phone number to the contact (land line).</xs:documentation>
					<xs:documentation xml:lang="sv">Telefon</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="mobilephone" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Mobile phone number to the contact.</xs:documentation>
					<xs:documentation xml:lang="sv">Mobiltelefon</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="fax" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">The fax number to the contact.</xs:documentation>
					<xs:documentation xml:lang="sv">Faxnummer</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="emailAddress" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-43, BT-58 The E-mail address to the contact.</xs:documentation>
					<xs:documentation xml:lang="sv">E-postadress</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="customersReference" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Reference code referring to the contact.</xs:documentation>
					<xs:documentation xml:lang="sv">Kunds referens</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="100"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="locationDetailsType">
		<xs:sequence>
			<xs:element name="codelistAgencyId" type="exderType:codelistAgencyId">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-71-1 Codelist agency</xs:documentation>
					<xs:documentation xml:lang="sv">Kodlisteutgivare</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="locationId">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-71 (if GLN) Address Location (or party) identifier.</xs:documentation>
					<xs:documentation xml:lang="sv">Lokaliseringsid (UNB)</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="subLocationId" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation xml:lang="en">Address Sub location (or party) identifier</xs:documentation>
					<xs:documentation xml:lang="sv">Underliggande lokaliseringsid (UNB)</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="partsAddressType">
		<xs:sequence minOccurs="0">
			<xs:element name="location" type="exderType:locationDetailsType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Address location identifiers</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="addressName" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-28, BT-45, BT-59, BT-62, BT-70
The name of the party (e.g. organization) which is located at the address.</xs:documentation>
					<xs:documentation xml:lang="sv">Namn</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="350"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="extraAddressLine" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-36, BT-51, BT-65, BT-76 Extra address line such as c/o address</xs:documentation>
					<xs:documentation xml:lang="sv">Extra adressrad såsom c/o-adress</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="streetAddress" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-35, BT-50, BT-64, BT-75
The name of the street.</xs:documentation>
					<xs:documentation xml:lang="sv">Gatuadress</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="addressLine" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-162, BT-163, BT-164, BT-165
An additional address line in an address that can be used to give further details supplementing the main line, for instance office number.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="zipCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-38, BT-53, BT-67, BT-78
Postal code (zip code)</xs:documentation>
					<xs:documentation xml:lang="sv">Postnummer</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="cityAddress" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-37, BT-52, BT-66, BT-77
City name</xs:documentation>
					<xs:documentation xml:lang="sv">Postort</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="countryId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-40, BT-55, BT-69, BT-80
Country code (ISO)</xs:documentation>
					<xs:documentation xml:lang="sv">Landskod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="country" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Country name in plain text</xs:documentation>
					<xs:documentation xml:lang="sv">Land</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="100"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="countrySubentityCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Code for the country subentity according to ISO-3166-2.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="countrySubentity" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-39, BT-54, BT-68, BT-79
Name of country subentity.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="internalReference" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Internal reference</xs:documentation>
					<xs:documentation xml:lang="sv">Intern referens</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="contact" type="exderType:contactType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Contact details</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="measurementType">
		<xs:sequence>
			<xs:element name="measurementApplicationQualifier" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Measurement application qualifier</xs:documentation>
					<xs:documentation xml:lang="sv">Måttapplikationskvalificerare</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="measurementCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Measurement code</xs:documentation>
					<xs:documentation xml:lang="sv">Måttdimension för mängd</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="measurementSignificansCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Measurement significans code</xs:documentation>
					<xs:documentation xml:lang="sv">Måttsignifikanskod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="quantity" type="exderType:quantityType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Quantity</xs:documentation>
					<xs:documentation xml:lang="sv">Kvantitet</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="partyIdentifierType">
		<xs:sequence>
			<xs:element name="partyIdentifierType">
				<xs:annotation>
					<xs:documentation xml:lang="en">DUNS
GLN
org
VAT

DUNS: entity identification from Dun and Bradstreet
GLN: Global Location Number from GS1
org: a country specific organization identifier usually assigned to an organization by a government authority (e.g. DK:CVR, SE:Orgno, NO:Orgno). Use country code in combination with ORG.
VAT: Value Added Tax number. A country specific tax identifier usually assigned to an organization by a government authority. Use country code in combination with VAT number.
			</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="partyIdentifierDetailedType" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-29-1, BT-34-1, BT-46.1, BT-49-1, BT-60-1
The specific subtype of the identifier eg. SE:ORG, FR:SIRET, DUNS.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="countryId" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="en">Country code (ISO)</xs:documentation>
					<xs:documentation xml:lang="sv">Landskod</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="exderType:upshifted">
						<xs:maxLength value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="identifier">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-29, BT-34, BT-46, BT-49, BT-60
Identifier</xs:documentation>
					<xs:documentation xml:lang="sv">Identifier</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="identifierLabel" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation xml:lang="en">Identifier label</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="partyTaxSchemeType">
		<xs:sequence>
			<xs:element name="taxCertificate" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The tax scheme of the accompanying ID i.e. VAT, GST or such.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="taxSchemeID" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The registration ID used for the accompanying tax scheme.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="partyType">
		<xs:sequence>
			<xs:element name="partyAddress" type="exderType:partsAddressType" minOccurs="0"/>
			<xs:element name="partyIdentifier" type="exderType:partyIdentifierType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="partyTaxScheme" type="exderType:partyTaxSchemeType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>BT-63 depending on source.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="transportType">
		<xs:sequence>
			<xs:element name="transportId" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The Id of the transport information, mostly used when more than one is required.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="transportMode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The mode of the transport.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="carrierName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The name of the carrier.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="transportVessel" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Identification of the vessel, for instance registration number or similar.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="transportLocation" type="exderType:transportLocationType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Loading/unloading/border crossing point. Preferrably expressed as a location Id with a codelist.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="transportDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Date of the transport, related to the Transport Location.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="countryOfOrigin" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Country of origin of the transport.</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="countryCode" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Use ISO3166</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="exderType:upshifted">
									<xs:maxLength value="3"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="country" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Country name in plain text.</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="100"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="countryOfDestination" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Country of destination of the transport.</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="countryCode" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Use ISO3166</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="exderType:upshifted">
									<xs:maxLength value="3"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="country" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Country name in plain text.</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="100"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="dischargeLocation" type="exderType:transportLocationType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Place of discharging. Preferrably expressed as a location Id with a codelist.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="finalDestination" type="exderType:transportLocationType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Final delivery dastination. Preferrably expressed as a location Id with a codelist.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="goodsType">
		<xs:sequence>
			<xs:element name="packageInformation" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Detailed information about the pieces of the shipment. If possible use UN/ECE Rec 20, UN/ECE Rec 21. The 2 character alphanumeric code values in UNECE Recommendation 21 shall be used. To avoid duplication with existing code values in UNECE Recommendation No. 20, each code value from UNECE Recommendation 21 shall be prefixed with an X</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="goodsMarking" type="xs:string" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Marking on the goods.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="packingQuantity" type="exderType:packingMetering" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Number of boxes or equivalent.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="grossWeight" type="exderType:packingMetering" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Gross weight of the package.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="netWeight" type="exderType:packingMetering" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Net weight of the package.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="measurements" type="exderType:measurementsType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Measurements of the package.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="totals" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Total values for the shipment. If possible use UN/ECE Rec 20, UN/ECE Rec 21. The 2 character alphanumeric code values in UNECE Recommendation 21 shall be used. To avoid duplication with existing code values in UNECE Recommendation No. 20, each code value from UNECE Recommendation 21 shall be prefixed with an X</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="totalPackingQuantity" type="exderType:packingMetering" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Total packing quantity.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="totalGrossWeight" type="exderType:packingMetering" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Total gross weight.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="totalNetWeight" type="exderType:packingMetering" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Total net weight.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="totalMeasurements" type="exderType:measurementsType" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Total measurements for the shipment.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="orderInformationType">
		<xs:sequence>
			<xs:element name="orderType" type="exderType:orderTypeEnumeration">
				<xs:annotation>
					<xs:documentation>Specifies who is providing the information. SUPPLIER - The supplier of the goods. ORDERER - The orderer themselves is providing the information. MANUFACTURER - Order information provided by the manufacturer.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="orderNumber" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Order number of the order in question.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="orderDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The date of the order.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="orderReference" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The reference of the order, ususally a the person placing the order or reference to a contract.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="orderPosition" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Specification for where in the order the invoice references. Usually a row ID or similar.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="cashDiscountType">
		<xs:sequence>
			<xs:element name="date" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Cash discount date.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="percent" type="exderType:positiveDecimal" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Discount percent.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="discountAmount" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Discount monetary amount.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="vat" type="exderType:taxType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>VAT information.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="totalVatDiscounted" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Total VAT for the discounted price.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="invoiceTotalDiscounted" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Invoice total sum, including cash discount.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="securityDetailsType">
		<xs:sequence>
			<xs:element name="secrecyClass" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Secrecy class of the object, usually coded.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="secrecyDescription" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Description of the secrecy class of the object.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="transportLocationType">
		<xs:sequence>
			<xs:element name="locationId" type="xs:string" minOccurs="0"/>
			<xs:element name="codelistAgencyId" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Must be a value from code list ISO6523.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="locationName" type="xs:string" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="packingMetering">
		<xs:sequence>
			<xs:element name="value" type="xs:decimal" minOccurs="0"/>
			<xs:element name="unit" type="xs:string" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="measurementsType">
		<xs:sequence>
			<xs:element name="length" type="exderType:packingMetering" minOccurs="0"/>
			<xs:element name="width" type="exderType:packingMetering" minOccurs="0"/>
			<xs:element name="height" type="exderType:packingMetering" minOccurs="0"/>
			<xs:element name="volume" type="exderType:packingMetering" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="unitType">
		<xs:sequence>
			<xs:element name="value">
				<xs:annotation>
					<xs:documentation xml:lang="en">BT-130, BT-150
Free formed unit value</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="10"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="label" type="xs:string" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation xml:lang="en">Label marking in what formats a unit can be used</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="additionalAttributeType">
		<xs:annotation>
			<xs:documentation>Information about properties of the goods and services invoiced.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="attributeName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-160
The name of the attribute or property of the item.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="attributeValue" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>BT-161
The value of the attribute or property of the item.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="prepaidPayment">
		<xs:annotation>
			<xs:documentation>Breakdown of the paid amount deducted from the amount due.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="paymentId" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>An identifier that references the payment, such as bank transfer identifier.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="paymentAmount" type="exderType:amount" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The amount of the payment in the invoice currency or tax currency.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="paymentCurrencyCode" type="exderType:currencyCodeType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The currency in which the payment has been made.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="paymentDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>The date when the paid amount is debited to the invoice.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="paymentInstruction" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Instructions regarding the payment.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>	
	</xs:complexType>
</xs:schema>
Basic types #2
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
#######################################################
exderTypes.xsd
Definition of used basic types.
Copyright Tungsten Automation 2007-2025
#######################################################
-->
<xs:schema xmlns="http://www.expertsystem.se/xml-schemas/types" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.expertsystem.se/xml-schemas/types" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<!-- Basic types -->
	<xs:simpleType name="upshifted">
		<xs:annotation>
			<xs:documentation xml:lang="en">Type that only allows upshifted strings (i.e. does
        not allow lower case characters</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="[^a-z]*"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="positiveDouble">
		<xs:restriction base="xs:double">
			<xs:minInclusive value="0.0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="positiveDecimal">
		<xs:restriction base="xs:decimal">
			<xs:minInclusive value="0.0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="amount">
		<xs:annotation>
			<xs:documentation xml:lang="en">Type for monetary amounts</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="price">
		<xs:annotation>
			<xs:documentation xml:lang="en">Type for monetary amounts specified with 4 decimals</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="positiveAmount">
		<xs:restriction base="amount">
			<xs:minInclusive value="0.00"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="quantity">
		<xs:annotation>
			<xs:documentation xml:lang="en">Type for quantities</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Enumeration types -->
	<xs:simpleType name="addressTypeId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="AK">
				<xs:annotation>
					<xs:documentation xml:lang="en">Acknowledgement recipient</xs:documentation>
					<xs:documentation xml:lang="sv">Bekräftande mottagare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BY">
				<xs:annotation>
					<xs:documentation xml:lang="en">Buyer</xs:documentation>
					<xs:documentation xml:lang="sv">Köpare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CN">
				<xs:annotation>
					<xs:documentation xml:lang="en">Consignee</xs:documentation>
					<xs:documentation xml:lang="sv">Godsmottagare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DP">
				<xs:annotation>
					<xs:documentation xml:lang="en">Deliveryaddress</xs:documentation>
					<xs:documentation xml:lang="sv">Leveransadress</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FW">
				<xs:annotation>
					<xs:documentation xml:lang="en">Freight forwarder</xs:documentation>
					<xs:documentation xml:lang="sv">Speditör</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="II">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice remitter</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturaavsändare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="IPD">
				<xs:annotation>
					<xs:documentation xml:lang="en">Giver of productinformation</xs:documentation>
					<xs:documentation xml:lang="sv">Varuinformationslämnare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITO">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice addressee</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturaadressat</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="IV">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoicereceiver</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturamottagare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OB">
				<xs:annotation>
					<xs:documentation xml:lang="en">Ordered by</xs:documentation>
					<xs:documentation xml:lang="sv">Fabrikant</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PE">
				<xs:annotation>
					<xs:documentation xml:lang="en">Payee</xs:documentation>
					<xs:documentation xml:lang="sv">Betalningsmottagare</xs:documentation>
					<xs:documentation xml:lang="no">Betalningsmottakker</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SN">
				<xs:annotation>
					<xs:documentation xml:lang="en">Shop</xs:documentation>
					<xs:documentation xml:lang="sv">Butik</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SU">
				<xs:annotation>
					<xs:documentation xml:lang="en">Supplier</xs:documentation>
					<xs:documentation xml:lang="sv">Leverantör</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="UD">
				<xs:annotation>
					<xs:documentation xml:lang="en">Ultimate customer</xs:documentation>
					<xs:documentation xml:lang="sv">Slutgiltig mottagare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="alcTypeId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="A">
				<xs:annotation>
					<xs:documentation xml:lang="en">Allowance</xs:documentation>
					<xs:documentation xml:lang="sv">Avdrag</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="C">
				<xs:annotation>
					<xs:documentation xml:lang="en">Charge</xs:documentation>
					<xs:documentation xml:lang="sv">Avgift</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="articleTypeId">
		<xs:annotation>
			<xs:documentation xml:lang="en">Omitting this tag means 'In stock'</xs:documentation>
			<xs:documentation xml:lang="sv">Om taggen utelämnas antas 'Lagerförd'</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="EXP">
				<xs:annotation>
					<xs:documentation xml:lang="en">Expedition fee</xs:documentation>
					<xs:documentation xml:lang="sv">Expeditionsavgift</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FRE">
				<xs:annotation>
					<xs:documentation xml:lang="en">Freigth fee</xs:documentation>
					<xs:documentation xml:lang="sv">Fraktavgift</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="INV">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice fee</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturaavgift</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="MAN">
				<xs:annotation>
					<xs:documentation xml:lang="en">Manufacured</xs:documentation>
					<xs:documentation xml:lang="sv">Egentillverkad</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OPE">
				<xs:annotation>
					<xs:documentation xml:lang="en">Operation</xs:documentation>
					<xs:documentation xml:lang="sv">Operation</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="REC">
				<xs:annotation>
					<xs:documentation xml:lang="en">Recycle fee</xs:documentation>
					<xs:documentation xml:lang="sv">Pantavgift</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="INVDIS">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice discount</xs:documentation>
					<xs:documentation xml:lang="sv">Fakturarabatt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="codelistAgencyId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="-">
				<xs:annotation>
					<xs:documentation xml:lang="en">Defined by parties</xs:documentation>
					<xs:documentation xml:lang="sv">Definierad av parterna</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DUN"/>
			<xs:enumeration value="EAN"/>
			<xs:enumeration value="ERICSSON"/>
			<xs:enumeration value="VOLVO"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="invoiceTypeId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="CR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Credit</xs:documentation>
					<xs:documentation xml:lang="sv">Kredit</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DB">
				<xs:annotation>
					<xs:documentation xml:lang="en">Debit</xs:documentation>
					<xs:documentation xml:lang="sv">Debet</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="COR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Corrected</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ADV">
				<xs:annotation>
					<xs:documentation xml:lang="en">Advance/down payment on invoice</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ADVF">
				<xs:annotation>
					<xs:documentation xml:lang="en">Advance/down payment on fee</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DN">
				<xs:annotation>
					<xs:documentation xml:lang="en">Debit Note</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FEE">
				<xs:annotation>
					<xs:documentation xml:lang="en">Fee</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD16">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Reverse charge internal invoice integration</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD17">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Invoice Integration / self-invoicing for the purchase services from abroad</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD18">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Invoice Integration for purchase of intra-EU goods</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD19">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Integration/self-invoicing for purchase of goods (ex art.17 c.2 DPR 633/72)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD20">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Self-invoicing for regularization and integration of invoices (ex art.6 c.8 and 9-bis d.lgs 471/97 or art.46 c.5 D.L. 331/93)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD21">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Self-invoicing for splaphoning</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD22">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Extraction of goods from the VAT warehouse</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD23">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Extraction of goods from the VAT warehouse with payment of VAT</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD24">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Deferred invoice (ex art.21, c.4, lett. a)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD25">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Deferred invoice (ex art.21, c.4, third period lett. b)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD26">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Sale of depreciable assets and for internal transfers (ex art.36 DPR 633/72)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD27">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Self invoicing for self-consumption or for free charge invoice with VAT application</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITTD28">
		 	    <xs:annotation>
                    <xs:documentation xml:lang="en">(For Italy only) Purchases from San Marino with VAT (paper invoice)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ITTD29">
                <xs:annotation>
                    <xs:documentation xml:lang="en">(For Italy only) Communication for omitted or irregular invoicing (article 6, paragraph 8, Legislative Decree 471/97)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
			<xs:enumeration value="PLZAL">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Poland only) An invoice documenting the receipt of payment or a part thereof prior to the performance of the activity and an invoice issued in connection with Art. 106f sec. 4 of the act</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PLROZ">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Poland only) An invoice issued in connection with art. 106f sec. 3 of the act</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PLUPR">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Poland only) An invoice issued in connection to article 106e sec. 5 item 3 of the act</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PLKOR_ZAL">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Poland only) Invoice correcting the invoice documenting the receipt of the payment or its part before performing the activity and the invoice issued in connection with art. 106f sec. 4 of the act</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PLKOR_ROZ">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Poland only) Invoice correcting the invoice issued in connection with art. 106f sec. 3 of the act</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="positionTypeId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="AD">
				<xs:annotation>
					<xs:documentation xml:lang="en">Contact person</xs:documentation>
					<xs:documentation xml:lang="sv">Kontaktperson, allmänt</xs:documentation>
				</xs:annotation>
				<!-- Primarily use this value! -->
			</xs:enumeration>
			<xs:enumeration value="AP">
				<xs:annotation>
					<xs:documentation xml:lang="en">Supplier's accounts payable ledger</xs:documentation>
					<xs:documentation xml:lang="sv">Leverantörsreskontra</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="AR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Customer's accounts payable ledger</xs:documentation>
					<xs:documentation xml:lang="sv">Kundreskontra</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="AT">
				<xs:annotation>
					<xs:documentation xml:lang="en">Technical contact</xs:documentation>
					<xs:documentation xml:lang="sv">Teknisk handläggare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Customer contact</xs:documentation>
					<xs:documentation xml:lang="sv">Kundkontakt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DL">
				<xs:annotation>
					<xs:documentation xml:lang="en">Delivery responsible</xs:documentation>
					<xs:documentation xml:lang="sv">Leveransansvarig</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="GR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Goodsoffice responsible</xs:documentation>
					<xs:documentation xml:lang="sv">Godsmottagningsansvarig</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OC">
				<xs:annotation>
					<xs:documentation xml:lang="en">Order contract</xs:documentation>
					<xs:documentation xml:lang="sv">Orderkontrakt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PD">
				<xs:annotation>
					<xs:documentation xml:lang="en">Purchase division</xs:documentation>
					<xs:documentation xml:lang="sv">Inköpsavdelning</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SA">
				<xs:annotation>
					<xs:documentation xml:lang="en">Sale contact</xs:documentation>
					<xs:documentation xml:lang="sv">Säljkontakt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Suppliers contact</xs:documentation>
					<xs:documentation xml:lang="sv">Leverantörens säljare</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="paymentTypeId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="BA">
				<xs:annotation>
					<xs:documentation xml:lang="en">Bank</xs:documentation>
					<xs:documentation xml:lang="sv">Bank</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BG">
				<xs:annotation>
					<xs:documentation xml:lang="en">Bankgiro</xs:documentation>
					<xs:documentation xml:lang="sv">Bankgiro</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CC">
				<xs:annotation>
					<xs:documentation xml:lang="en">Credit card</xs:documentation>
					<xs:documentation xml:lang="sv">Kreditkort</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CSH">
				<xs:annotation>
					<xs:documentation xml:lang="en">Cash</xs:documentation>
					<xs:documentation xml:lang="sv">Kontant</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ONL">
				<xs:annotation>
					<xs:documentation xml:lang="en">Online</xs:documentation>
					<xs:documentation xml:lang="sv">Online</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PG">
				<xs:annotation>
					<xs:documentation xml:lang="en">Postal giro</xs:documentation>
					<xs:documentation xml:lang="sv">Postgiro</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PMO">
				<xs:annotation>
					<xs:documentation xml:lang="en">Postal money order</xs:documentation>
					<xs:documentation xml:lang="sv">Postförskott</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="settlementTypeId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="2">
				<xs:annotation>
					<xs:documentation xml:lang="en">Off invoice</xs:documentation>
					<xs:documentation xml:lang="sv">Avdrages fakturan</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="6">
				<xs:annotation>
					<xs:documentation xml:lang="en">Charge to be paid by customer</xs:documentation>
					<xs:documentation xml:lang="sv">Avgift att betalas av kund</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="specialServiceId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ACA">
				<xs:annotation>
					<xs:documentation xml:lang="en">Allowance</xs:documentation>
					<xs:documentation xml:lang="sv">Avdrag</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ADR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Other service</xs:documentation>
					<xs:documentation xml:lang="sv">Övriga avgifter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FC">
				<xs:annotation>
					<xs:documentation xml:lang="en">Freight service</xs:documentation>
					<xs:documentation xml:lang="sv">Fraktavgift</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="QD">
				<xs:annotation>
					<xs:documentation xml:lang="en">Quantity discount</xs:documentation>
					<xs:documentation xml:lang="sv">Mängdrabatt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SH">
				<xs:annotation>
					<xs:documentation xml:lang="en">Special handling</xs:documentation>
					<xs:documentation xml:lang="sv">Teknikrabatt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="textTypeId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ARTTXT">
				<xs:annotation>
					<xs:documentation xml:lang="en">Article comment</xs:documentation>
					<xs:documentation xml:lang="sv">Artikelkommentar</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BLUEPR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Blueprint</xs:documentation>
					<xs:documentation xml:lang="sv">Ritning</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CR"/>
			<xs:enumeration value="CREF1">
				<xs:annotation>
					<xs:documentation xml:lang="en">Customers reference 1</xs:documentation>
					<xs:documentation xml:lang="sv">Beställarreferens 1</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CREF2">
				<xs:annotation>
					<xs:documentation xml:lang="en">Customers reference 2</xs:documentation>
					<xs:documentation xml:lang="sv">Beställarreferens 2</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DESREF">
				<xs:annotation>
					<xs:documentation xml:lang="en">Despatch reference</xs:documentation>
					<xs:documentation xml:lang="sv">Referens till följesedel</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DESTXT">
				<xs:annotation>
					<xs:documentation xml:lang="en">Despatch text</xs:documentation>
					<xs:documentation xml:lang="sv">Följesedeltext</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ENDCUS">
				<xs:annotation>
					<xs:documentation xml:lang="en">End customer</xs:documentation>
					<xs:documentation xml:lang="sv">Slutkund</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ORDREF">
				<xs:annotation>
					<xs:documentation xml:lang="en">Order reference</xs:documentation>
					<xs:documentation xml:lang="sv">Orderreferens</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PRI">
				<xs:annotation>
					<xs:documentation xml:lang="en">Price marking</xs:documentation>
					<xs:documentation xml:lang="sv">Prismärkning</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PRIPRP">
				<xs:annotation>
					<xs:documentation xml:lang="en">Campaign price</xs:documentation>
					<xs:documentation xml:lang="sv">Kampanjpris</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PRIRTP">
				<xs:annotation>
					<xs:documentation xml:lang="en">Retailprice</xs:documentation>
					<xs:documentation xml:lang="sv">Konsumentpris</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="REF">
				<xs:annotation>
					<xs:documentation xml:lang="en">Referensno</xs:documentation>
					<xs:documentation xml:lang="sv">Referensnr</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="TRP">
				<xs:annotation>
					<xs:documentation xml:lang="en">Transportinstruction</xs:documentation>
					<xs:documentation xml:lang="sv">Transportinstruktion</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="TXT">
				<xs:annotation>
					<xs:documentation xml:lang="en">Free text</xs:documentation>
					<xs:documentation xml:lang="sv">Fritext</xs:documentation>
				</xs:annotation>
				<!-- Primarily use this one -->
			</xs:enumeration>
			<xs:enumeration value="VATLAW">
				<xs:annotation>
					<xs:documentation xml:lang="en">VAT law reference</xs:documentation>
					<xs:documentation xml:lang="sv">Momslagshänvisning</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="unitId">
		<xs:restriction base="xs:string">
			<xs:enumeration value="A">
				<xs:annotation>
					<xs:documentation xml:lang="en">Ampere</xs:documentation>
					<xs:documentation xml:lang="sv">Ampere</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ANN">
				<xs:annotation>
					<xs:documentation xml:lang="en">Year</xs:documentation>
					<xs:documentation xml:lang="sv">År</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="C">
				<xs:annotation>
					<xs:documentation xml:lang="en">Degree Celsius</xs:documentation>
					<xs:documentation xml:lang="sv">Grader Celsius</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CM">
				<xs:annotation>
					<xs:documentation xml:lang="en">Centimetre</xs:documentation>
					<xs:documentation xml:lang="sv">Centimeter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CM2">
				<xs:annotation>
					<xs:documentation xml:lang="en">Square centimetre</xs:documentation>
					<xs:documentation xml:lang="sv">Kvadratcentimeter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DAY">
				<xs:annotation>
					<xs:documentation xml:lang="en">Day</xs:documentation>
					<xs:documentation xml:lang="sv">Dag</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DM">
				<xs:annotation>
					<xs:documentation xml:lang="en">Decimetre</xs:documentation>
					<xs:documentation xml:lang="sv">Decimeter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="G">
				<xs:annotation>
					<xs:documentation xml:lang="en">Gram</xs:documentation>
					<xs:documentation xml:lang="sv">Gram</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="H">
				<xs:annotation>
					<xs:documentation xml:lang="en">Hour</xs:documentation>
					<xs:documentation xml:lang="sv">Timme</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="INH">
				<xs:annotation>
					<xs:documentation xml:lang="en">Inch</xs:documentation>
					<xs:documentation xml:lang="sv">Tum</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="J">
				<xs:annotation>
					<xs:documentation xml:lang="en">Joule</xs:documentation>
					<xs:documentation xml:lang="sv">Joule</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="K">
				<xs:annotation>
					<xs:documentation xml:lang="en">Kelvin</xs:documentation>
					<xs:documentation xml:lang="sv">Kelvin</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="KG">
				<xs:annotation>
					<xs:documentation xml:lang="en">Kilogram</xs:documentation>
					<xs:documentation xml:lang="sv">Kilogram</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="KHZ">
				<xs:annotation>
					<xs:documentation xml:lang="en">Kilohertz</xs:documentation>
					<xs:documentation xml:lang="sv">Kilohertz</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="KM">
				<xs:annotation>
					<xs:documentation xml:lang="en">Kilometre</xs:documentation>
					<xs:documentation xml:lang="sv">Kilometer</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="KV">
				<xs:annotation>
					<xs:documentation xml:lang="en">Kilovolt</xs:documentation>
					<xs:documentation xml:lang="sv">Kilovolt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="KWH">
				<xs:annotation>
					<xs:documentation xml:lang="en">Kilowatt-hour</xs:documentation>
					<xs:documentation xml:lang="sv">Kilowattimme</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="L">
				<xs:annotation>
					<xs:documentation xml:lang="en">Litre</xs:documentation>
					<xs:documentation xml:lang="sv">Liter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="M">
				<xs:annotation>
					<xs:documentation xml:lang="en">Meter</xs:documentation>
					<xs:documentation xml:lang="sv">Meter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="M2">
				<xs:annotation>
					<xs:documentation xml:lang="en">Square metre</xs:documentation>
					<xs:documentation xml:lang="sv">Kvadratmeter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="M3">
				<xs:annotation>
					<xs:documentation xml:lang="en">Cubic metre</xs:documentation>
					<xs:documentation xml:lang="sv">Kubikmeter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="MG">
				<xs:annotation>
					<xs:documentation xml:lang="en">Milligram</xs:documentation>
					<xs:documentation xml:lang="sv">Milligram</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="MHZ">
				<xs:annotation>
					<xs:documentation xml:lang="en">Megahertz</xs:documentation>
					<xs:documentation xml:lang="sv">Megahertz</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="MIN">
				<xs:annotation>
					<xs:documentation xml:lang="en">Minute</xs:documentation>
					<xs:documentation xml:lang="sv">Minut</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ML">
				<xs:annotation>
					<xs:documentation xml:lang="en">Millilitre</xs:documentation>
					<xs:documentation xml:lang="sv">Milliliter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="MM">
				<xs:annotation>
					<xs:documentation xml:lang="en">Millimetre</xs:documentation>
					<xs:documentation xml:lang="sv">Millimeter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="MTH">
				<xs:annotation>
					<xs:documentation xml:lang="en">Month</xs:documentation>
					<xs:documentation xml:lang="sv">Månad</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="MW">
				<xs:annotation>
					<xs:documentation xml:lang="en">Megawatt</xs:documentation>
					<xs:documentation xml:lang="sv">Megawatt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PCS">
				<xs:annotation>
					<xs:documentation xml:lang="en">Piece</xs:documentation>
					<xs:documentation xml:lang="sv">Styck</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PK">
				<xs:annotation>
					<xs:documentation xml:lang="en">Package</xs:documentation>
					<xs:documentation xml:lang="sv">Paket</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PND">
				<xs:annotation>
					<xs:documentation xml:lang="en">Pound</xs:documentation>
					<xs:documentation xml:lang="sv">Pund</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PR">
				<xs:annotation>
					<xs:documentation xml:lang="en">Pair</xs:documentation>
					<xs:documentation xml:lang="sv">Par</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PTN">
				<xs:annotation>
					<xs:documentation xml:lang="en">Portion</xs:documentation>
					<xs:documentation xml:lang="sv">Portion</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="S">
				<xs:annotation>
					<xs:documentation xml:lang="en">Second</xs:documentation>
					<xs:documentation xml:lang="sv">Sekund</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="TNE">
				<xs:annotation>
					<xs:documentation xml:lang="en">Metric ton</xs:documentation>
					<xs:documentation xml:lang="sv">Ton</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="QAN">
				<xs:annotation>
					<xs:documentation xml:lang="en">Quarter of a year</xs:documentation>
					<xs:documentation xml:lang="sv">Kvartal</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="V">
				<xs:annotation>
					<xs:documentation xml:lang="en">Volt</xs:documentation>
					<xs:documentation xml:lang="sv">Volt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="W">
				<xs:annotation>
					<xs:documentation xml:lang="en">Watt</xs:documentation>
					<xs:documentation xml:lang="sv">Watt</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="YRD">
				<xs:annotation>
					<xs:documentation xml:lang="en">Yard</xs:documentation>
					<xs:documentation xml:lang="sv">Yard</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<!-- Special types used by Schema relaxation -->
	<xs:simpleType name="empty-string">
		<xs:restriction base="xs:string">
			<xs:enumeration value=""/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="decimal-or-empty">
		<xs:union memberTypes="xs:decimal empty-string"/>
	</xs:simpleType>
	<xs:simpleType name="partyTypeEnumeration">
		<xs:restriction base="xs:string">
			<xs:enumeration value="INVOICE_SENDER"/>
			<xs:enumeration value="SALES_CONTACT"/>
			<xs:enumeration value="ORDERER"/>
			<xs:enumeration value="PAYER"/>
			<xs:enumeration value="PAYOR"/>
			<xs:enumeration value="MANUFACTURER"/>
			<xs:enumeration value="HOLDER"/>
			<xs:enumeration value="TAX_REPRESENTATIVE"/>
			<xs:enumeration value="VALIDATOR"/>
			<xs:enumeration value="FACTOR"/>
			<xs:enumeration value="RECIPIENT"/>
			<xs:enumeration value="BUYER"/>
			<xs:enumeration value="DELIVERY"/>
			<xs:enumeration value="OTHER"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="orderTypeEnumeration">
		<xs:restriction base="xs:string">
			<xs:enumeration value="SUPPLIER"/>
			<xs:enumeration value="ORDERER"/>
			<xs:enumeration value="MANUFACTURER"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="withholdingTypeEnumeration">
		<xs:restriction base="xs:string">
			<xs:enumeration value="NP">
				<xs:annotation>
					<xs:documentation xml:lang="en">Natural person is a subject for withholding</xs:documentation>
					<xs:documentation xml:lang="it">Ritenuta persone fisiche</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BE">
				<xs:annotation>
					<xs:documentation xml:lang="en">Business entity is a subject for withholding</xs:documentation>
					<xs:documentation xml:lang="it">Ritenuta persone giuridiche</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="INPS">
				<xs:annotation>
					<xs:documentation xml:lang="en">(Italy only) INPS contribution</xs:documentation>
					<xs:documentation xml:lang="it">Contributo INPS</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ENASARCO">
				<xs:annotation>
					<xs:documentation xml:lang="en">(Italy only) ENASARCO contribution</xs:documentation>
					<xs:documentation xml:lang="it">Contributo ENASARCO</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ENPAM">
				<xs:annotation>
					<xs:documentation xml:lang="en">(Italy only) ENPAM contribution</xs:documentation>
					<xs:documentation xml:lang="it">Contributo ENPAM</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OS">
				<xs:annotation>
					<xs:documentation xml:lang="en">Other social security contribution</xs:documentation>
					<xs:documentation xml:lang="it">Altro contributo previdenziale</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="withholdingReasonCodeEnumeration">
		<xs:restriction base="xs:string">
			<xs:enumeration value="A">
				<xs:annotation>
					<xs:documentation xml:lang="en">Self-employed work falling within the scope of the habitual exercise of an art or profession.</xs:documentation>
					<xs:documentation xml:lang="it">Prestazioni di lavoro autonomo rientranti nell'esercizio di arte o professione abituale.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="B">
				<xs:annotation>
					<xs:documentation xml:lang="en">Economic use, by the author or inventor, of intellectual works, industrial patents and processes, formulas or information relating to experiences acquired in the industrial, commercial or scientific fields.</xs:documentation>
					<xs:documentation xml:lang="it">Utilizzazione economica, da parte dell'autore o dell'inventore, di opere dell'ingegno, di brevetti industriali e di processi, formule o informazioni relativi a esperienze acquisite in campo industriale, commerciale o scientifico.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="C">
				<xs:annotation>
					<xs:documentation xml:lang="en">Profits arising from joint venture agreements and co-interest agreements, when the contribution consists exclusively in the provision of work.</xs:documentation>
					<xs:documentation xml:lang="it">Utili derivanti da contratti di associazione in partecipazione e da contratti di cointeressenza, quando l'apporto è costituito esclusivamente dalla prestazione di lavoro.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="D">
				<xs:annotation>
					<xs:documentation xml:lang="en">Profits due to the promoting members and founding members of joint-stock companies.</xs:documentation>
					<xs:documentation xml:lang="it">Utili spettanti ai soci promotori e ai soci fondatori delle società di capitali.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="E">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Raising of protests on bills of exchange by municipal secretaries.</xs:documentation>
					<xs:documentation xml:lang="it">Levata di protesti cambiari da parte dei segretari comunali.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="G">
				<xs:annotation>
					<xs:documentation xml:lang="en">Compensation paid for the cessation of professional sporting activity.</xs:documentation>
					<xs:documentation xml:lang="it">Indennità corrisposte per la cessazione di attività sportiva professionale.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="H">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Allowances paid for the termination of agency relationships of natural persons and partnerships, excluding amounts accrued by 12/31/2003, already accrued and taxed as business income. </xs:documentation>
					<xs:documentation xml:lang="it">Indennità corrisposte per la cessazione dei rapporti di agenzia delle persone fisiche e delle società di persone, con esclusione delle somme maturate entro il 31.12.2003, già imputate per competenza e tassate come reddito d'impresa.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="I">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Allowances paid for termination of notarial functions.</xs:documentation>
					<xs:documentation xml:lang="it">Indennità corrisposte per la cessazione da funzioni notarili.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="L">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Economic use, by a person other than the author or inventor, of intellectual works, industrial patents and processes, formulas and information relating to experiences acquired in the industrial, commercial or scientific fields.</xs:documentation>
					<xs:documentation xml:lang="it">Utilizzazione economica, da parte di soggetto diverso dall'autore o dall'inventore, di opere dell'ingegno, di brevetti industriali e di processi, formule e informazioni relative a esperienze acquisite in campo industriale, commerciale o scientifico.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="M">
				<xs:annotation>
					<xs:documentation xml:lang="en">Self-employed work not habitually performed, obligations to do, not to do or to permit.</xs:documentation>
					<xs:documentation xml:lang="it">Prestazioni di lavoro autonomo non esercitate abitualmente, obblighi di fare, di non fare o permettere.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="N">
				<xs:annotation>
					<xs:documentation xml:lang="en">Travel allowance, lump sum reimbursement of expenses, prizes and compensation paid: in the direct exercise of amateur sports activities</xs:documentation>
					<xs:documentation xml:lang="it">Le indennità di trasferta, i rimborsi forfetari di spesa, i premi e i compensi erogati ai direttori artistici ed ai collaboratori tecnici per prestazioni di natura non professionale da parte di cori, bande musicali e filodrammatiche che perseguono finalità dilettantistiche.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="O">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Self-employed work not habitually performed, obligations to do, not to do or to permit, for which there is no obligation to register with the separate management (Circ. INPS 104/2001).</xs:documentation>
					<xs:documentation xml:lang="it">Prestazioni di lavoro autonomo non esercitate abitualmente, obblighi di fare, di non fare o permettere, per le quali non sussiste l'obbligo di iscrizione alla gestione separata (Circ. Inps 104/2001).</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="P">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Compensation paid to non-resident subjects without a permanent establishment for the use or concession of use of industrial, commercial or scientific equipment located in the territory of the State or to Swiss companies or permanent establishments of Swiss companies that possess the requirements set out in art. 15, paragraph 2 of the Agreement between the European Community and the Swiss Confederation of 26 October 2004 (published in the Official Journal of the European Communities of 29 December 2004 no. L385/30);</xs:documentation>
					<xs:documentation xml:lang="it">Compensi corrisposti a soggetti non residenti privi di stabile organizzazione per l'uso o la concessione in uso di attrezzature industriali, commerciali o scientifiche che si trovano nel territorio dello</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Q">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Commissions paid to a sole-mandate sales agent or representative.</xs:documentation>
					<xs:documentation xml:lang="it">Provvigioni corrisposte ad agente o rappresentante di commercio monomandatario.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="R">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Commissions paid to a multi-mandate sales agent or representative.</xs:documentation>
					<xs:documentation xml:lang="it">Provvigioni corrisposte ad agente o rappresentante di commercio plurimandatario.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="S">
				<xs:annotation>
					<xs:documentation xml:lang="en">Commissions paid to commission agent.</xs:documentation>
					<xs:documentation xml:lang="it">Provvigioni corrisposte a commissionario.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="T">
				<xs:annotation>
					<xs:documentation xml:lang="en">Commissions paid to broker.</xs:documentation>
					<xs:documentation xml:lang="it">Provvigioni corrisposte a mediatore.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="U">
				<xs:annotation>
					<xs:documentation xml:lang="en">Commissions paid to business agent.</xs:documentation>
					<xs:documentation xml:lang="it">Provvigioni corrisposte a procacciatore di affari.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="V">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Commissions paid to a person in charge of door-to-door sales and commissions paid to a person in charge of door-to-door sales and for the street vending of daily and periodical newspapers (L. 25.02.1987, n. 67).</xs:documentation>
					<xs:documentation xml:lang="it">Provvigioni corrisposte a incaricato per le vendite a domicilio e provvigioni corrisposte a incaricato per la vendita porta a porta e per la vendita ambulante di giornali quotidiani e periodici (L. 25.02.1987, n. 67).</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="W">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Fees paid in 2013 for services relating to procurement contracts to which the provisions contained in art. 25-ter of Presidential Decree 600/1973 became applicable.</xs:documentation>
					<xs:documentation xml:lang="it">Corrispettivi erogati nel 2013 per prestazioni relative a contratti d'appalto cui si sono resi applicabili le disposizioni contenute nell'art. 25-ter D.P.R. 600/1973.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="X">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Fees paid in 2004 by resident companies or entities or by permanent establishments of foreign companies as per art. 26-quater, paragraph 1, letters a) and b) of Presidential Decree 600 of 29 September 1973, to companies or permanent establishments of companies, located in another member state of the European Union in the presence of the requirements set out in the aforementioned art. 26-quater, of Presidential Decree 600 of 29 September 1973, for which the reimbursement of the withholding tax was made in 2006 pursuant to art. 4 of Legislative Decree 30 May 2005 no. 143;</xs:documentation>
					<xs:documentation xml:lang="it">Canoni corrisposti nel 2004 da società o enti residenti ovvero da stabili organizzazioni di società estere di cui all'art. 26-quater, comma 1, lett. a) e b) del D.P.R. 600 del 29 settembre 1973, a società o stabili organizzazioni di società, situate in altro stato membro dell'Unione Europea in presenza dei requisiti di cui al citato art. 26-quater, del D.P.R. 600 del 29 settembre 1973, per i quali è stato effettuato, nell'anno 2006, il rimborso della ritenuta ai sensi dell'art. 4 del D.Lgs. 30 maggio 2005 n. 143</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Y">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Fees paid from 01.01.2005 to 07.26.2005 by the subjects referred to in the previous point.</xs:documentation>
					<xs:documentation xml:lang="it">Canoni corrisposti</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="L1">
				<xs:annotation>
					<xs:documentation xml:lang="en">"(For Italy only) Income derived from the economic use of intellectual works, industrial patents and processes, formulas and
            information relating to experience acquired in the industrial, commercial or scientific field, which are received by subjects who have purchased the rights to their use for a fee."</xs:documentation>
					<xs:documentation xml:lang="it">Canoni corrisposti</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="M1">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Income arising from the assumption of obligations to do, not to do or to permit.</xs:documentation>
					<xs:documentation xml:lang="it">Canoni corrisposti</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="M2">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Self-employed work not habitually performed for which there is an obligation to register with the ENPAPI Separate Management.</xs:documentation>
					<xs:documentation xml:lang="it">Canoni corrisposti</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="O1">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Income deriving from the assumption of obligations to do, not to do or to permit, for which there is no obligation to register with the separate management (INPS Circ. n. 104/2001).</xs:documentation>
					<xs:documentation xml:lang="it">Canoni corrisposti</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="V1">
				<xs:annotation>
					<xs:documentation xml:lang="en">(For Italy only) Income from commercial activities not habitually carried out (for example, commissions paid for occasional services to a commercial agent orrepresentative, broker, business agent)."</xs:documentation>
					<xs:documentation xml:lang="it">Canoni corrisposti</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ZO">
				<xs:annotation>
					<xs:documentation xml:lang="en">Other reasons</xs:documentation>
					<xs:documentation xml:lang="it">Canoni corrisposti</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="taxRegimeEnumeration">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ITRF01">
				<xs:annotation>
					<xs:documentation xml:lang="en">Ordinary</xs:documentation>
					<xs:documentation xml:lang="it">Ordinario</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF02">
				<xs:annotation>
					<xs:documentation xml:lang="en">Minimum taxpayers (Art. 1, section 96-117, Italian Law 244/2007)</xs:documentation>
					<xs:documentation xml:lang="it">Contribuenti minimi (art. 1, c.96-117, L. 244/2007)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF04">
				<xs:annotation>
					<xs:documentation xml:lang="en">Agriculture and connected activities and fishing (Arts. 34 and 34-bis, Italian Presidential Decree 633/72)</xs:documentation>
					<xs:documentation xml:lang="it">Agricoltura e attività connesse e pesca (artt. 34 e 34-bis,D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF05">
				<xs:annotation>
					<xs:documentation xml:lang="en">Sale of salts and tobaccos (Art. 74, section 1, Italian Presidential Decree 633/72)Vendita sali e tabacchi (art. 74, c.1, D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="it">Vendita sali e tabacchi (art. 74, c.1, D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF06">
				<xs:annotation>
					<xs:documentation xml:lang="en">Match sales (Art. 74, section 1, Italian Presidential Decree 633/72)</xs:documentation>
					<xs:documentation xml:lang="it">Commercio dei fiammiferi (art. 74, c.1, D.P.R.633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF07">
				<xs:annotation>
					<xs:documentation xml:lang="en">Publishing (Art. 74, section 1, Italian Presidential Decree 633/72)</xs:documentation>
					<xs:documentation xml:lang="it">Editoria (art. 74, c.1, D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF08">
				<xs:annotation>
					<xs:documentation xml:lang="en">Management of public telephone services (Art. 74, section 1, Italian Presidential Decree 633/72)</xs:documentation>
					<xs:documentation xml:lang="it">Gestione di servizi di telefonia pubblica (art. 74, c.1,D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF09">
				<xs:annotation>
					<xs:documentation xml:lang="en">Resale of public transport and parking documents (Art. 74, section 1, Italian Presidential Decree 633/72)</xs:documentation>
					<xs:documentation xml:lang="it">Rivendita di documenti di trasporto pubblico e di sosta (art. 74, c.1, D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF10">
				<xs:annotation>
					<xs:documentation xml:lang="en">Entertainment, gaming and other activities referred to by the tariff attached to Italian Presidential Decree 640/72 (Art. 74, section 6, Italian Presidential Decree 633/72)</xs:documentation>
					<xs:documentation xml:lang="it">Intrattenimenti, giochi e altre attività di cui alla tariffa allegata al D.P.R. n. 640/72 (art. 74, c.6, D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF11">
				<xs:annotation>
					<xs:documentation xml:lang="en">Travel and tourism agencies (Art. 74-ter, Italian Presidential Decree 633/72)</xs:documentation>
					<xs:documentation xml:lang="it">Agenzie di viaggi e turismo (art. 74-ter, D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF12">
				<xs:annotation>
					<xs:documentation xml:lang="en">Farmhouse accommodation/restaurants (Art. 5, section 2, Italian law 413/91)</xs:documentation>
					<xs:documentation xml:lang="it">Agriturismo (art. 5, c.2, L. 413/1991)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF13">
				<xs:annotation>
					<xs:documentation xml:lang="en">Door-to-door sales (Art. 25-bis, section 6, Italian Presidential Decree 600/73)</xs:documentation>
					<xs:documentation xml:lang="it">Vendite a domicilio (art. 25-bis, c.6, D.P.R. 600/1973)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF14">
				<xs:annotation>
					<xs:documentation xml:lang="en">Resale of used goods, artworks, antiques or collectors items (Art. 36, Italian Decree Law 41/95)</xs:documentation>
					<xs:documentation xml:lang="it">Rivendita di beni usati, di oggetti d?arte, d?antiquariato o da collezione (art. 36, D.L. 41/1995)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF15">
				<xs:annotation>
					<xs:documentation xml:lang="en">Artwork, antiques or collectors items auction agencies (Art. 40-bis, Italian Decree Law 41/95)</xs:documentation>
					<xs:documentation xml:lang="it">Agenzie di vendite all?asta di oggetti d?arte, antiquariato o da collezione (art. 40-bis, D.L. 41/1995)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF16">
				<xs:annotation>
					<xs:documentation xml:lang="en">VAT paid in cash by P.A. (Art. 6, section 5, Italian Presidential Decree 633/72)</xs:documentation>
					<xs:documentation xml:lang="it">IVA per cassa P.A. (art. 6, c.5, D.P.R. 633/1972)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF17">
				<xs:annotation>
					<xs:documentation xml:lang="en">VAT paid in cash by subjects with business turnover below Euro 200,000 (Art. 7, Italian Decree Law 185/2008)</xs:documentation>
					<xs:documentation xml:lang="it">IVA per cassa (art. 32-bis, D.L. 83/2012)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF18">
				<xs:annotation>
					<xs:documentation xml:lang="en">Other</xs:documentation>
					<xs:documentation xml:lang="it">Altro</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF19">
				<xs:annotation>
					<xs:documentation xml:lang="en">Flat rate (Art. 1, section 54-89, Italian Law 190/2014)</xs:documentation>
					<xs:documentation xml:lang="it">Forfettario (art.1, c. 54-89, L. 190/2014)</xs:documentation>
					<xs:documentation xml:lang="sv"/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITRF20">
                <xs:annotation>
                    <xs:documentation xml:lang="en">Cross-border VAT exemption regime (EU Directive 2020/285)</xs:documentation>
                    <xs:documentation xml:lang="it">Regime transfrontaliero di Franchigia IVA (Direttiva UE 2020/285)</xs:documentation>
                    <xs:documentation xml:lang="sv"></xs:documentation>
                </xs:annotation>
            </xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>

Examples

Example invoice
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<invoiceFile documentVersion="2.0">
  <header>
    <date>2025-01-01</date>
    <time>00:00:00</time>
    <testIndicator>false</testIndicator>
    <senderUnbLocationId>
      <codelistAgencyId>-</codelistAgencyId>
      <locationId/>
    </senderUnbLocationId>
    <receiverUnbLocationId>
      <codelistAgencyId>-</codelistAgencyId>
      <locationId/>
    </receiverUnbLocationId>
    <emailAddress>invoice@example.com</emailAddress>
  </header>
  <invoice>
    <invoiceTypeId>DB</invoiceTypeId>
    <invoiceId>Invoice01</invoiceId>
    <invoiceDate>2025-01-01</invoiceDate>
    <messageDate>2025-01-01</messageDate>
    <preceedingInvoice>
      <preceedingInvoiceId>Preceeding invoice 1</preceedingInvoiceId>
      <preceedingInvoiceIssueDate>2024-12-12</preceedingInvoiceIssueDate>
      <preceedingInvoiceTotalAmount>100.00</preceedingInvoiceTotalAmount>
    </preceedingInvoice>
    <securityDetails>
      <secrecyClass>Security class</secrecyClass>
      <secrecyDescription>Security destination</secrecyDescription>
    </securityDetails>
    <invoiceFreeText>Free text</invoiceFreeText>
    <orderInformation>
      <orderType>SUPPLIER</orderType>
      <orderNumber>orderNumber 1</orderNumber>
	  <orderDate>2024-12-10</orderDate>
      <orderReference>orderReference 1</orderReference>
      <orderPosition>orderPosition 1</orderPosition>
    </orderInformation>
    <orderInformation>
      <orderType>ORDERER</orderType>
      <orderNumber>orderNumber 2</orderNumber>
      <orderDate>2024-12-15</orderDate>
      <orderReference>orderReference 2</orderReference>
      <orderPosition>orderPosition 2</orderPosition>
    </orderInformation>
	    <orderInformation>
      <orderType>MANUFACTURER</orderType>
      <orderNumber>orderNumber 3</orderNumber>
      <orderDate>2024-12-20</orderDate>
      <orderReference>orderReference 3</orderReference>
      <orderPosition>orderPosition 3</orderPosition>
    </orderInformation>
    <agreementReference>
      <referenceNumber>Reference number some type</referenceNumber>
      <agreementType>Some type</agreementType>
      <agreementDate>2021-01-25</agreementDate>
      <agreementPeriodStartDate>2021-02-13</agreementPeriodStartDate>
      <agreementPeriodEndDate>2021-03-17</agreementPeriodEndDate>
    </agreementReference>
    <buyerParty>
      <legalName>Buyer's Name</legalName>
      <buyerAddress>
        <location>
          <codelistAgencyId>-</codelistAgencyId>
          <locationId/>
        </location>
        <addressName>Buyer's Address</addressName>
        <streetAddress>Street 1</streetAddress>
        <zipCode>123456</zipCode>
        <cityAddress>Stockholm</cityAddress>
        <countryId>SE</countryId>
        <country>Sweden</country>
        <contact>
          <positionId>AD</positionId>
          <contactName>John Doe</contactName>
          <emailAddress>contact-email@example.com</emailAddress>
        </contact>
      </buyerAddress>
      <partyIdentifier>
        <partyIdentifierType>org</partyIdentifierType>
        <partyIdentifierDetailedType>SE:ORGNR</partyIdentifierDetailedType>
        <countryId>SE</countryId>
        <identifier>1233211232</identifier>
      </partyIdentifier>
      <partyIdentifier>
        <partyIdentifierType>VAT</partyIdentifierType>
        <partyIdentifierDetailedType>SE:VAT</partyIdentifierDetailedType>
        <countryId>SE</countryId>
        <identifier>SE123321123201</identifier>
      </partyIdentifier>
      <organisationNo>1233211232</organisationNo>
      <vatCountryId>SE</vatCountryId>
      <vatNo>SE123321123201</vatNo>
      <registrationAddress>
        <addressName>Registration Address Name</addressName>
        <streetAddress>street</streetAddress>
        <zipCode>234567</zipCode>
        <cityAddress>Stockholm</cityAddress>
        <countryId>SE</countryId>
        <country>Sweden</country>
      </registrationAddress>
    </buyerParty>
    <supplierParty>
      <legalName>Supplier's Name</legalName>
      <fTax>false</fTax>
      <supplierAddress>
        <location>
          <codelistAgencyId>EAN</codelistAgencyId>
          <locationId>2222222222222</locationId>
        </location>
        <addressName>Supplier's Address Name</addressName>
        <extraAddressLine>extra line</extraAddressLine>
        <streetAddress>Street 2</streetAddress>
        <addressLine>Address line</addressLine>
        <zipCode>345678</zipCode>
        <cityAddress>Gothenburg</cityAddress>
        <countryId>SE</countryId>
        <country>Sweden</country>
        <countrySubentity>State province</countrySubentity>
        <internalReference>123456</internalReference>
        <contact>
          <positionId>AD</positionId>
          <contactName>John Doe</contactName>
          <emailAddress>contact-email@example.com</emailAddress>
        </contact>
      </supplierAddress>
      <financialInfo/>
      <partyIdentifier>
        <partyIdentifierType>org</partyIdentifierType>
        <partyIdentifierDetailedType>SE:ORGNR</partyIdentifierDetailedType>
        <countryId>SE</countryId>
        <identifier>1111111116</identifier>
      </partyIdentifier>
      <partyIdentifier>
        <partyIdentifierType>GLN</partyIdentifierType>
        <partyIdentifierDetailedType>GLN</partyIdentifierDetailedType>
        <identifier>3333333333338</identifier>
      </partyIdentifier>
      <partyIdentifier>
        <partyIdentifierType>VAT</partyIdentifierType>
        <partyIdentifierDetailedType>SE:VAT</partyIdentifierDetailedType>
        <countryId>SE</countryId>
        <identifier>SE111111111601</identifier>
      </partyIdentifier>
      <organisationNo>1111111116</organisationNo>
      <vatCountryId>SE</vatCountryId>
      <vatNo>SE111111111601</vatNo>
      <registrationAddress>
        <addressName>Registration Address Name</addressName>
        <streetAddress>street</streetAddress>
        <zipCode>456789</zipCode>
        <cityAddress>Stockholm</cityAddress>
        <countryId>SE</countryId>
        <country>Sweden</country>
      </registrationAddress>
    </supplierParty>
    <otherParty>
      <partyType>INVOICE_SENDER</partyType>
      <party>
        <partyAddress>
          <location>
            <codelistAgencyId>EAN</codelistAgencyId>
            <locationId>4444444444444</locationId>
          </location>
          <addressName>Party's Address Name</addressName>
        <extraAddressLine>extra line</extraAddressLine>
        <streetAddress>Street 2</streetAddress>
        <addressLine>Address line</addressLine>
        <zipCode>345678</zipCode>
        <cityAddress>Helsingborg</cityAddress>
        <countryId>SE</countryId>
        <country>Sweden</country>
        <countrySubentity>State province</countrySubentity>
        <internalReference>567890</internalReference>
          <contact>
            <positionId>AD</positionId>
            <contactName>John Doe</contactName>
            <phone>+1-234-56789-123-4567</phone>
            <emailAddress>contact-email@example.com</emailAddress>
            <customersReference>Customers Reference</customersReference>
          </contact>
        </partyAddress>
        <partyIdentifier>
          <partyIdentifierType>DUNS</partyIdentifierType>
          <partyIdentifierDetailedType>DUNS</partyIdentifierDetailedType>
          <identifier>11-111-1118</identifier>
        </partyIdentifier>
        <partyIdentifier>
          <partyIdentifierType>LEI</partyIdentifierType>
          <partyIdentifierDetailedType>LEI</partyIdentifierDetailedType>
          <identifier>ZZZZZZZZZZZZZZZZZZ40</identifier>
        </partyIdentifier>
        <partyIdentifier>
          <partyIdentifierType>GLN</partyIdentifierType>
          <partyIdentifierDetailedType>GLN</partyIdentifierDetailedType>
          <identifier>5555555555550</identifier>
        </partyIdentifier>
        <partyIdentifier>
          <partyIdentifierType>GSRN</partyIdentifierType>
          <partyIdentifierDetailedType>GSRN</partyIdentifierDetailedType>
          <identifier>666666666666666660</identifier>
        </partyIdentifier>
        <partyIdentifier>
          <partyIdentifierType>IBAN</partyIdentifierType>
          <partyIdentifierDetailedType>IBAN</partyIdentifierDetailedType>
          <identifier>DE317777777777777777</identifier>
        </partyIdentifier>
      </party>
    </otherParty>
    <otherParty>
      <partyType>PAYER</partyType>
      <party>
        <partyIdentifier>
          <partyIdentifierType>DUNS</partyIdentifierType>
          <partyIdentifierDetailedType>DUNS</partyIdentifierDetailedType>
          <identifier>77-777-7772</identifier>
        </partyIdentifier>
      </party>
    </otherParty>
    <otherParty>
      <partyType>HOLDER</partyType>
      <otherPartyType>Some additional info</otherPartyType>
      <party>
        <partyAddress>
          <location>
            <codelistAgencyId>EAN</codelistAgencyId>
            <locationId>9999999999994</locationId>
          </location>
          <addressName>Party's Address Name</addressName>
		  <extraAddressLine>extra line</extraAddressLine>
		  <streetAddress>Street 2</streetAddress>
		  <addressLine>Address line</addressLine>
		  <zipCode>345678</zipCode>
		  <cityAddress>Gothenburg</cityAddress>
		  <countryId>SE</countryId>
		  <country>Sweden</country>
		  <countrySubentity>State province</countrySubentity>
		  <internalReference>123456</internalReference>
        <contact>
          <positionId>AD</positionId>
          <contactName>John Doe</contactName>
          <emailAddress>contact-email@example.com</emailAddress>
        </contact>
        </partyAddress>
        <partyIdentifier>
          <partyIdentifierType>DUNS</partyIdentifierType>
          <partyIdentifierDetailedType>DUNS</partyIdentifierDetailedType>
          <identifier>88-888-8880</identifier>
        </partyIdentifier>
      </party>
    </otherParty>
    <delivery>
      <transportInformation>
        <transportId>Transport Id</transportId>
        <transportMode>Transport Mode</transportMode>
        <carrierName>Carrier Name</carrierName>
        <transportVessel>Transport Vessel</transportVessel>
        <transportLocation>
          <locationId>0001</locationId>
          <codelistAgencyId>0088</codelistAgencyId>
          <locationName>Location Name</locationName>
        </transportLocation>
        <transportDate>2024-04-04</transportDate>
        <countryOfOrigin>
          <countryCode>BF</countryCode>
          <country>Burkina Faso</country>
        </countryOfOrigin>
        <countryOfDestination>
          <countryCode>YE</countryCode>
          <country>Yemen</country>
        </countryOfDestination>
        <finalDestination>
          <locationId>0077</locationId>
          <codelistAgencyId>0088</codelistAgencyId>
          <locationName>Location Name</locationName>
        </finalDestination>
      </transportInformation>
      <goodsInformation>
		<packageInformation>
		  <goodsMarking>LOT-ABC-123</goodsMarking>
		  <packingQuantity>
			<value>50</value>
			<unit>pcs</unit>
		  </packingQuantity>
		  <grossWeight>
			<value>25.0</value>
			<unit>kg</unit>
		  </grossWeight>
		  <netWeight>
			<value>23.5</value>
			<unit>kg</unit>
		  </netWeight>
		  <measurements>
			<length>
			  <value>60.0</value>
			  <unit>cm</unit>
			</length>
			<width>
			  <value>40.0</value>
			  <unit>cm</unit>
			</width>
			<height>
			  <value>30.0</value>
			  <unit>cm</unit>
			</height>
			<volume>
			  <value>0.072</value>
			  <unit>m3</unit>
			</volume>
		  </measurements>
		</packageInformation>
		<totals>
		  <totalPackingQuantity>
			<value>150</value>
			<unit>pcs</unit>
		  </totalPackingQuantity>
		  <totalGrossWeight>
			<value>75.0</value>
			<unit>kg</unit>
		  </totalGrossWeight>
		  <totalNetWeight>
			<value>70.5</value>
			<unit>kg</unit>
		  </totalNetWeight>
		  <totalMeasurements>
			<length>
			  <value>180.0</value>
			  <unit>cm</unit>
			</length>
			<width>
			  <value>120.0</value>
			  <unit>cm</unit>
			</width>
			<height>
			  <value>90.0</value>
			  <unit>cm</unit>
			</height>
			<volume>
			  <value>1.944</value>
			  <unit>m3</unit>
			</volume>
		  </totalMeasurements>
		</totals>
      </goodsInformation>
    </delivery>
    <deliveryAddress>
      <addressName>Delivery Address Name</addressName>
      <streetAddress>Street 1</streetAddress>
      <zipCode>123432</zipCode>
      <cityAddress>Stockholm</cityAddress>
      <countryId>SE</countryId>
      <country>Sweden</country>
    </deliveryAddress>
    <invoiceCurrencyCode>SEK</invoiceCurrencyCode>
    <dueDate>2025-08-12</dueDate>
    <deliveryTerms>
      <deliveryAddressName>Delivery Address Nam</deliveryAddressName>
    </deliveryTerms>
    <paymentMeans>
      <paymentMeansType>BANK</paymentMeansType>
      <accountNo>12345678</accountNo>
      <institutionName>FirstBank</institutionName>
      <paymentRef>Script payment reference</paymentRef>
    </paymentMeans>
    <paymentTerms>
      <note>Script payment note</note>
    </paymentTerms>
    <cashDiscount>
      <date>2020-05-14</date>
      <percent>5.53</percent>
      <discountAmount>26.32</discountAmount>
      <vat>
        <taxTypeCode>AE</taxTypeCode>
        <taxPercentage>3.23</taxPercentage>
        <taxAmount>28.91</taxAmount>
      </vat>
    </cashDiscount>
    <delayTerms>
      <delayTerms>Delay terms</delayTerms>
    </delayTerms>
    <invoiceLine>
      <invoiceLineId>1</invoiceLineId>
      <supplierArticleId>Art. no. 1: supplier ArticleId</supplierArticleId>
      <manufacturerArticleId>manufacturer Article Id 1</manufacturerArticleId>
      <articleDescription>Line 1: description</articleDescription>
      <invoiceLineText>Line 1: line text;</invoiceLineText>
      <invoiceQuantity>
        <quantity>100.0</quantity>
        <edifactUnit>10</edifactUnit>
      </invoiceQuantity>
      <meteringInformation>
        <location>
          <codelistAgencyId>EAN</codelistAgencyId>
          <locationId>6666666666666</locationId>
        </location>
        <usedQuantity>
          <quantity>1.54</quantity>
          <edifactUnit>10</edifactUnit>
        </usedQuantity>
        <previousMeterReading>
          <date>2025-04-22</date>
          <time>07:24:22</time>
          <value>8.37</value>
        </previousMeterReading>
        <latestMeterReading>
          <date>2025-02-19</date>
          <time>11:27:26</time>
          <value>4.66</value>
        </latestMeterReading>
      </meteringInformation>
      <invoiceLineAmount>90.0</invoiceLineAmount>
      <price>
        <contractPrice>10.0</contractPrice>
        <unitPriceBasis>10.0</unitPriceBasis>
        <edifactUnit>10</edifactUnit>
      </price>
      <vatInfo>
        <taxTypeCode>S</taxTypeCode>
        <taxPercentage>10.0</taxPercentage>
        <taxAmount>9.0</taxAmount>
      </vatInfo>
    </invoiceLine>
    <invoiceLine>
      <invoiceLineId>2</invoiceLineId>
      <supplierArticleId>Art. no. 2: supplier ArticleId</supplierArticleId>
      <manufacturerArticleId>manufacturer Article Id 2</manufacturerArticleId>
      <articleDescription>Line 2: description</articleDescription>
      <invoiceLineText>Line 2: line text; manufacturerArticleId article number;</invoiceLineText>
      <invoiceQuantity>
        <quantity>100.0</quantity>
        <edifactUnit>10</edifactUnit>
      </invoiceQuantity>
      <invoiceLineAmount>90.0</invoiceLineAmount>
      <price>
        <contractPrice>10.0</contractPrice>
        <unitPriceBasis>10.0</unitPriceBasis>
        <edifactUnit>10</edifactUnit>
      </price>
      <vatInfo>
        <taxTypeCode>S</taxTypeCode>
        <taxPercentage>10.0</taxPercentage>
        <taxAmount>9.0</taxAmount>
      </vatInfo>
    </invoiceLine>
    <invoiceTrailer>
      <invoiceTotalQuantity>500.0</invoiceTotalQuantity>
      <invoiceNumberOfLines>5</invoiceNumberOfLines>
      <invoiceTotalAmount>495.0</invoiceTotalAmount>
      <roundOffAmount>0.0</roundOffAmount>
      <lineSumAmount>450.0</lineSumAmount>
      <vatInclusiveAmount>495.0</vatInclusiveAmount>
      <taxableAmount>450.0</taxableAmount>
      <invoiceVatTotalAmount>45.0</invoiceVatTotalAmount>
      <invoiceVat>
        <vatPercentage>10.0</vatPercentage>
        <vatAmount>45.0</vatAmount>
        <taxableAmount>450.0</taxableAmount>
        <taxTypeCode>S</taxTypeCode>
      </invoiceVat>
      <vatInfo>
        <taxTypeCode>S</taxTypeCode>
        <taxPercentage>10.0</taxPercentage>
        <taxAmount>45.0</taxAmount>
      </vatInfo>
    </invoiceTrailer>
	<attachments>
	  <attachment>
		<objectId>Invoice_20250801.pdf</objectId>
		    <encodedData 
			  filename="TestFile_Example.txt" 
			  format="Base64" 
			  mimeCode="text/plain">SGVsbG8sIHRoaXMgaXMgYSB0ZXN0IGZpbGUu</encodedData>
		<securityDetails>
		  <secrecyClass>CONFIDENTIAL</secrecyClass>
		  <secrecyDescription>Internal invoice – do not distribute externally</secrecyDescription>
		</securityDetails>
	  </attachment>
	  <externalReference>
		<URL>https://example.com/docs/attachment/12345</URL>
		<securityDetails>
		  <secrecyClass>PUBLIC</secrecyClass>
		  <secrecyDescription>Link to downloadable attachment PDF</secrecyDescription>
		</securityDetails>
	  </externalReference>
	</attachments>
  </invoice>
</invoiceFile>