XML invoice standard – OIOXML

OIOXML is an XML invoice standard that is used in Denmark.

If you receive XML invoices from one or more companies from there, the invoices may come in this format.

This topic lists the INVOICES field types that are normally mapped to elements in these documents and indicates where in the XML code the elements are normally found. The INVOICES field types that are not normally mapped to XML elements are not listed here.

For more information on how the logic in COLLECTOR's intelligent XML functionality works with this standard, please see ReadSoft COLLECTOR 6-3 Integration Specification.pdf. You can obtain this document from your ReadSoft representative.

INVOICES field

Location of element mapped in the XML code

BuyerAddressPostalCode

/Invoice/com:BuyerParty/ com:Address/com:PostalZone

BuyerContactPersonName

/Invoice/cac:B/Invoice/com:BuyerParty/com:BuyerContact/com:Name

BuyerVATRegistrationNumber

/Invoice/com:BuyersReferenceID

InvoiceBaselineDate

/Invoice/com:IssueDate

InvoiceCredit

/Invoice/com:TypeCode

Extracted value “PIP” or “PIE” is translated to 0 (Debit)

Extracted value “PCP” or “PCM” is translated into 1 (Credit)

InvoiceCurrency

/invoice/main:InvoiceCurrencyCode

InvoiceDate

/Invoice/com:IssueDate

InvoiceDueDate

/Inv/Invoice/com:PaymentMeans/com:PaymentDueDateoice/cac:PaymentMeans/cbc:DuePaymentDate

InvoiceNumber

/Invoice/com:ID

InvoiceOrderNumber

/Invoice/com:ReferenceOrder/com:BuyersOrderID

If the value of this element is “n/a”, translate as empty string.

InvoiceTotalVATAmount

/Invoice/com:TaxTotal/com:TaxAmounts/com:TaxAmount

Only takes the value from the section in which /Invoice/com:TaxTotal/com:TaxTypeCode is equal to “VAT”.

InvoiceTotalVATExcludedAmount

/Invoice/com:LegalTotal/com:LineExtensionTotalAmount

If the value of this element is 0, use this alternative location:

/Invoice/com:LegalTotal/com:ToBePaidTotalAmount

InvoiceTotalVATIncludedAmount

/Invoice/com:LegalTotal/com:ToBePaidTotalAmount

InvoiceTotalVATRatePercent

/Invoice/com:TaxTotal/com:CategoryTotal/com:RatePercentNumeric

Only takes the value from the section in which /Invoice/com:TaxTotal/com:CategoryTotal/com:rateCategoryCode

ID is equal “VAT”.

Payment ReferenceNumber

/Invoice/com:PaymentMeans/com:PaymentID

PaymentTerms

/Invoicecom:PaymentTerms/com:ID

PaymentTermsInterest

/Invoice/com:PaymentTerms/com:PenaltySurchargeRateNumeric

PaymentType

/Invoice/com:PaymentMeans/com:PaymentChannelCode

SupplierAccountNumber1

/Invoice/com:PaymentMeans/com:PayeeFinancialAccount/com:ID

SupplierAddressPostalCode

/Invoice/com:SellerParty/com:Adress/com:PostalZone

SupplierVATRegistrationNumber

/Invoice/cac:SellerParty/cac:PartyTaxScheme/cac:CompanyID

Takes the value from the section in which the value of

/Invoice/cac:SellerParty/cac:PartyTaxScheme/cac:TaxScheme/cac:ID is equal to 'VAT'.

Line Item Fields

LIT_ArticleIdentifier

/Invoice/com:InvoiceLine/com:Item/com:ID

LIT_ArticleName

/Invoice/com:InvoiceLine/com:Item/com:Description

LIT_DeliveredQuantity

/Invoice/com:InvoiceLine/com:InvociedQuantity

LIT_DeliveredQuantityUnitCode

/Invoice/com:InvoiceLine/comInvoicedQuantity/@unitCode

LIT_OrderNumber

/Invoice/com:InvoiceLine/com:ReferenceOrderLine/com:BuyersID

LIT_RowIdentifier

/Invoice/com:InvoiceLine/com:ID

LIT_UnitPriceAmount

/Invoice/com:InvoiceLine/com:BasePrice/com:PriceAmount

LIT_VatExcludedAmount

/Invoice/com:InvoiceLine/com:LineExtensionAmount

LIT_VatRate

/Invoice/com:InvoiceLine/com:Item/com:Tax/com:RatePercentNumeric

Attachment fields

EmbeddedValue

/Invoice/EncodedDocument

AdditionalInfo

/Invoice/EncodedDocument/@agencyID

Supported XML invoice standard formats

Processing XML invoices using COLLECTOR: Overview

Optimizing XML invoice definitions

Creating rules to map values for fields in XML invoices