Invoice Integration - InvoiceDetailOrder

  • Updated

The <InvoiceDetailOrder> element and its children define the items being invoiced, linking them back to the original Purchase Order (PO) lines for matching purposes.

 

InvoiceDetailOrder

The <InvoiceDetailOrderInfo> element is mandatory and provides the reference to the matching PO number via the <OrderReference> element.

The <InvoiceDetailOrder> contains one or more <InvoiceDetailItem> elements, which define the specific details and totals for each line being invoiced.

 
<InvoiceDetailOrderInfo>
    <OrderReference orderID="[Purchase Order Number]"/>
</InvoiceDetailOrderInfo>

 

Element/AttributePurposeRequirement/Calculation
invoiceLineNumberThe Invoice Line Number assigned by the supplier. 
quantityThe quantity of the item being invoiced. (For Credit Notes, this value must be negative.) 
<InvoiceDetailItemReference>Links the invoice line to the corresponding Purchase Order line.The lineNumber attribute must match the PO line number. The <SupplierPartID> must match the product code/SKU on the PO.
<UnitOfMeasure>The Unit Of Measure (UOM) the line was invoiced in.Must match the UOM for the corresponding PO line.
<UnitPrice>The price per unit for the line (excluding tax).<Money currency="[CODE]"> attribute is required.
<SubtotalAmount>The subtotal for the line.Calculation: UnitPrice x Quantity = Subtotal (e.g., $1.09 x 12 = $13.08).
<Tax>The tax amount for the line.Calculation: Subtotal x Tax Rate = Tax (e.g., $13.08 x 0.15 (15%) = $1.962).

 

InvoiceDetailItem (Line Item Details)

<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>

 

InvoiceDetailItemReference

<InvoiceDetailItemReference lineNumber="2">
    <ItemID>
        <SupplierPartID>2223414</SupplierPartID>
    </ItemID>
    <Description lang="en">TISSUE FACIAL TORK 2311408 PREMIUM 2 PLY PK/100</Description>
</InvoiceDetailItemReference>

 

UnitOfMeasure

<UnitOfMeasure>PACK</UnitOfMeasure>

 

UnitPrice

<UnitPrice>
    <Money currency="NZD">1.09</Money>
</UnitPrice>

 

Subtotal

<SubtotalAmount>
    <Money currency="NZD">13.08</Money>
</SubtotalAmount>

 

Tax

<Tax>
    <Money currency="NZD">1.962</Money>
    <Description lang="en">GST</Description>
</Tax>