InvoiceDetailOrder
This contains the InvoiceDetailOrderInfo element which provides a reference to the matching purchase order.
<InvoiceDetailOrderInfo>
<OrderReference orderID="[Purchase Order Number]"/>
</InvoiceDetailOrderInfo>
InvoiceDetailOrder will contain one or more InvoiceDetailItem elements.
These contain more information about the lines listed on the invoice.
Example InvoiceDetailItem
<InvoiceDetailItem invoiceLineNumber="2" quantity="12.00">
<InvoiceDetailItemReference lineNumber="2">
<ItemID>
<SupplierPartID>2223414</SupplierPartID>
</ItemID>
<Description lang="en">TISSUE FACIAL TORK 2311408 PREMIUM 2 PLY PK/100</Description>
</InvoiceDetailItemReference>
<UnitOfMeasure>PACK</UnitOfMeasure>
<UnitPrice>
<Money currency="NZD">1.09</Money>
</UnitPrice>
<SubtotalAmount>
<Money currency="NZD">13.08</Money>
</SubtotalAmount>
<Tax>
<Money currency="NZD">1.962</Money>
<Description lang="en">GST</Description>
</Tax>
</InvoiceDetailItem>
InvoiceDetailItem
The invoiceLineNumber attribute is the Invoice Line Number.
The quantity attribute is the quantity for the Invoice Line being invoiced.
<InvoiceDetailItem invoiceLineNumber="2" quantity="12.00">
InvoiceDetailItemReference
The InvoiceDetailItemReference contains the lineNumber attribute, this is the reference that matches up the Invoice Line with the Purchase Order Line.
The ItemID element contains the SupplierPartID element which is the product code for the line.
The Description element contains the description for the line.
<InvoiceDetailItemReference lineNumber="2">
<ItemID>
<SupplierPartID>2223414</SupplierPartID>
</ItemID>
<Description lang="en">TISSUE FACIAL TORK 2311408 PREMIUM 2 PLY PK/100</Description>
</InvoiceDetailItemReference>
UnitOfMeasure
The UnitOfMeasure element contains the Unit Of Measure (UOM) the line was invoiced in.
This must match the UOM for the purchase order line.
<UnitOfMeasure>PACK</UnitOfMeasure>
UnitPrice
The UnitPrice element contains the Money element.
The Money element has a currency attribute and the per unit price for the line.
<UnitPrice>
<Money currency="NZD">1.09</Money>
</UnitPrice>
Subtotal
The Subtotal element contains the Money element.
The Money element has a currency attribute and the subtotal for the line.
This should be calculated based on UnitPrice x Quantity = Subtotal
In this example it would be: 1.09 x 12 = 13.08
<SubtotalAmount>
<Money currency="NZD">13.08</Money>
</SubtotalAmount>
Tax
The Tax element contains the Money and Description elements.
The Money element has a currency attribute and tax amount for the line.
This should be calculated based on Subtotal x Tax Rate = Tax
In this example it would be: 13.08 x 0.15 (15%) = 1.962
The Description element contains the name of this type of tax. In this example it would be GST.
<Tax>
<Money currency="NZD">1.962</Money>
<Description lang="en">GST</Description>
</Tax>
See the articles below for additional information on Invoice Integration:
Invoice Integration - Overview
Invoice Integration - cXML Request
Invoice Integration - cXML Header (Credentials)
Invoice Integration - InvoiceDetailSummary
Invoice Integration - Discount at Header Level
Invoice Integration - Shipping at Header Level
Invoice Integration - Shipping at Line Level
Invoice Integration - Shipping & Special Handling at Header Level
Invoice Integration - Shipping & Special Handling at Line Level