Invoice Detail Request cXML Technical Specification

Contents

Overview

Details

cXML Format Examples - Transactions

 

Overview

This document describes the cXML (v1.2.028) InvoiceDetailRequest sent from the ESM Solutions Procurement Invoice solution to Buyer’s for integration with their general ledger systems.

 

Requirements

ESM Solutions Procurement Invoice solution.

 

Details

Definitions of Important Transaction Data Elements - Invoice Detail Request

Element

Description

DataType

Header/From/Credential/domain

Specifies the type of credential. This attribute allows documents to contain multiple types of credentials for multiple authentication domains. For example, DUNS for a D-U-N-S number, or NetworkId for a preassigned ID.

nvarchar

Header/From/Credential/Identity

Buyer’s Supplier identifier

nvarchar

Header/To/Credential/domain

Specifies the type of credential. This attribute allows documents to contain multiple types of

credentials for multiple authentication domains. For example, DUNS for a D-U-N-S number, or NetworkId for a preassigned ID.

 

Header/To/Credential/Identity

Supplier’s Buyer identifier

nvarchar

Header/Sender/Credential/domain

Specifies the type of credential. This attribute allows documents to contain multiple types of credentials for multiple authentication domains. For example, DUNS for a D-U-N-S number, or NetworkId for a preassigned ID.

 

Header/Sender/Credential/Identity

ESM’s Identifier

nvarchar

Header/Sender/Credential/SharedSecret

ESM’s password for the buyer

nvarchar

Request/InvoiceDetailRequest/InvoiceDetailRequestHeader/invoiceID

Supplier’s invoice identifier

nvarchar

//InvoiceDetailRequestHeader/purpose

Specifies the purpose of the invoice.  The cXML specification defines acceptable values; Standard Invoice, Credit Memo, Debit Memo, Line-Item

Credit memo, Information Only, or

Cancel Invoice. The ESM Purchase

nvarchar

 

 

application only generates “Standard Invoice” requests at this time.

 

//InvoiceDetailRequestHeader/operation

Operation to be performed (“new”)

nvarchar

// InvoiceDetailRequestHeader/invoiceDate

Invoice date

date

///InvoiceDetailLineIndicator/isTaxInLine

yes—Tax (Tax) is provided at invoice line level. If header tax is specified, it will be ignored.

nvarchar

///InvoiceDetailLineIndicator/isShippingInLine

yes—Shipping

(InvoiceDetailLineShipping) is provided at invoice line level.

nvarchar

///InvoiceDetailLineIndicator/isAccountingInLine

yes—Accounting distribution

(Distribution) is provided at invoice line level. If isHeaderInvoice is true, this indicator must not be specified, because Distribution is available only at item level.

nvarchar

//InvoiceDetailRequestHeader/InvoicePartner/Contact/role

Contact information of the invoice partner. Allowed contact roles are “soldTo”, “shipTo”, and “remitTo”

nvarchar

///InvoicePartner/Contact/addressID

Buyer’s GL code for the location

nvarchar

///InvoicePartner/Contact/Name

Name of the location

nvarchar

///InvoicePartner/Contact/PostalAddress/name

Name of the postal address. Allowed value is “default”.

nvarchar

///InvoicePartner/Contact/PostalAddress/Street/DeliverTo

The deliver to name at the address

nvarchar

///InvoicePartner/Contact/PostalAddress/Street

The street name. 

nvarchar

///InvoicePartner/Contact/PostalAddress/City

The city name

nvarchar

///InvoicePartner/Contact/PostalAddress/State

The full state name

nvarchar

///InvoicePartner/Contact/PostalAddress/PostalCode

The postal code

nvarchar

///InvoicePartner/Contact/PostalAddress/Country

The country name

nvarchar

///InvoicePartner/Contact/PostalAddress/Email

The contact’s email. This element will also have a name such as “default” or “work”

nvarchar

///InvoicePartner/Contact/PostalAddress/Phone

The contact’s phone number

(countryCode, AreaOrCityCode, Number). The full phone number including area code will be in the number element. This element will also have a name such as “default” or “work”

nvarchar

///InvoicePartner/Contact/PostalAddress/Fax

The contact’s fax number

(countryCode, AreaOrCityCode, Number). The full phone number including area code will be in the number element.  This element will also have a name such as “default” or “work”

nvarchar

//InvoiceDetailRequestHeader/PaymentTerm

Defines the payment term in orders and invoices. Multiple PaymentTerm elements may exists per a single invoice.

nvarchar

//InvoiceDetailRequestHeader/PaymentTerm/payInNumberOfDays

Indicates the invoice must be paid in a certain number of days after the invoice effective date.

integer

//InvoiceDetailRequestHeader/PaymentTerm/Discount/DiscountPercent

The percentage or amount of the discount term. The discount rate applies if the invoice total is paid within the time specified by payInNumberOfDays. Positive rates denote discounts and negative rates denote penalties.  

integer

 

//InvoiceDetailRequestHeader/Extrinsic/AuxiliaryUserId

Auxiliary user id (optional)

nvarchar

//InvoiceDetailRequestHeader/Extrinsic/EsmGLSupplierId

Buyer’s GL code for the supplier

nvarchar

//InvoiceDetailRequestHeader/Extrinsic/EsmInvoiceId

ESM invoice identifier

nvarchar

//InvoiceDetailRequestHeader/Extrinsic/EsmTimeZoneAdjustedInvoiceDate

Invoice date converted to requester’s time zone

date

//InvoiceDetailRequestHeader/Extrinsic/ESMDirectInvoice

Indicates if the invoice passed though the ESM purchase application (true/false)

boolean

//InvoiceDetailRequestHeader/Extrinsic/EsmPaymentDueDate

Nearest valid due date based on configured payment terms definitions

date

//InvoiceDetailRequestHeader/Extrinsic/EsmTransactionDate

Requisition created date

date

//InvoiceDetailRequestHeader/Extrinsic/EsmBankCode

Optional bank code

nvarchar

//InvoiceDetailOrder/InvoiceDetailOrderInfo/OrderReference/orderID

Order Number

nvarchar

///InvoiceDetailOrderInfo/OrderReference/DocumentReference/ payloadID

An id to be used on future status update requests that will identify the original invoice request.

nvarchar

///InvoiceDetailOrderInfo/SupplierOrderInfo/orderID

Supplier order ID

nvarchar

///InvoiceDetailItem/invoiceLineNumber

Invoice line number

integer

///InvoiceDetailItem/quantity

Quantity

integer

///InvoiceDetailItem/InvoiceDetailItemReference/lineNumber

Line number

integer

///InvoiceDetailItem/Tax/Money

Total tax for the item

nvarchar

///InvoiceDetailItem/Tax/Description

“Total item tax”

nvarchar

///InvoiceDetailItem/Tax/TaxDetail

Defines the detail of each tax. This segment will repeat for each tax.

 

///InvoiceDetailItem/Tax/TaxDetail/category

Tax name

nvarchar

///InvoiceDetailItem/Tax/TaxDetail/percentageRate

Tax rate percentage

decimal

///InvoiceDetailItem/Tax/TaxDetail/TaxableAmount/Money

Taxable amount for this tax detail

decimal

///InvoiceDetailItem/Tax/TaxDetail/TaxAmount/Money

Tax amount for this tax detail

decimal

///InvoiceDetailItem/SpecialHandling/Money

Total special handling for the item

decimal

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/role

“shipTo” or “shipFrom”

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/addressID

Ship to address ID

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/Name

Name of the location.

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/name

Name of the postal address. Allowed value is “default”.

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/Street/DeliverTo

The deliver to name at the address

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/Street

The street name. 

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/City

The city name

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/State

The full state name

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/PostalCode

The postal code

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/Country

The country name

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/Email

The contact’s email. This element will also have a name such as “default” or “work”

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Contact/PostalAddress/Phone

The contact’s phone number

(countryCode, AreaOrCityCode, Number). The full phone number including area code will be in the number element. This element will also have a name such as “default” or “work”

nvarchar

////InvoiceDetailLineShipping/InvoiceDetailShipping/Money

Shipping amount.

decimal

///InvoiceDetailItem/Distribution

Contains the account details and amount. The chart information is followed by details of each segment. This section repeats for each account. 

 

////Distribution/Accounting/name

Name of the account

nvarchar

////Distribution/Accounting/AccountingSegment/id

The chart name

nvarchar

////Distribution/Accounting/AccountingSegment/Name

“Chart”

nvarchar

////Distribution/Accounting/AccountingSegment/Description

The chart Name

nvarchar

////Distribution/Accounting/AccountingSegment/id

Segment code

nvarchar

////Distribution/Accounting/AccountingSegment/Name

Segment name

nvarchar

////Distribution/Accounting/AccountingSegment/Description

Segment description

nvarchar

 

////Distribution/Charge/Money

The amount assigned to the account

decimal

////Extrinsic/EsmDistributions/EsmDistribution

Contains the accounting detail including segment information, subtotal, tax, shipping, discount, special handling and total amounts. This section will repeat for each account.

 

////Extrinsic/EsmDistributions/EsmDistribution/Accounting/name

Name of the account

nvarchar

////Extrinsic/EsmDistributions/EsmDistribution /Accounting/AccountingSegment/id

The chart name

nvarchar

////Extrinsic/EsmDistributions/EsmDistribution /Accounting/AccountingSegment/Name

“Chart”

nvarchar

////Extrinsic/EsmDistributions/EsmDistribution /AccountingSegment/Description

The chart Name

nvarchar

////Extrinsic/EsmDistributions/EsmDistribution/Accounting/AccountingSegment/id

Segment code

nvarchar

////Extrinsic/EsmDistributions/EsmDistribution/Accounting/AccountingSegment/Name

Segment name

nvarchar

////Extrinsic/EsmDistributions/EsmDistribution/Accounting/AccountingSegment/Description

Segment description

nvarchar

////Extrinsic/EsmDistributions/EsmDistribution/SubtotalAmount

The charge before discount/tax/shipping/special handling

decimal

////Extrinsic/EsmDistributions/EsmDistribution /Tax

The tax amount to be added

decimal

////Extrinsic/EsmDistributions/EsmDistribution/Shipping

The shipping amount to be added

decimal

////Extrinsic/EsmDistributions/EsmDistribution/DiscountAmount

The discount amount to be subtracted

decimal

////Extrinsic/EsmDistributions/EsmDistribution/SpecialHandlingAmount

The special handling amount for the invoice (may be positive or negative)

decimal

////Extrinsic/EsmDistributions/EsmDistribution/Charge

The total charge (SubTotal + Tax +

Shipping – Discount + / – Special Handling)

decimal

////Extrinsic/IsNonCatalogItem

Reflects whether the item was entered by the user through the ESM Purchase application instead of through the supplier’s catalog (true/false)

Boolean

////Extrinsic/AuxField1

Auxiliary Field 1 value for the item (optional)

nvarchar

////Extrinsic/AuxField2

Auxiliary Field 2 value for the item (optional)

nvarchar

////Extrinsic/AuxField3

Auxiliary Field 3 value for the item (optional)

nvarchar

////Extrinsic/AuxField4

Auxiliary Field 4 value for the item (optional)

nvarchar

////Extrinsic/AuxField5

Auxiliary Field 5 value for the item (optional)

nvarchar

////Extrinsic/AuxField6

Auxiliary Field 6 value for the item (optional)

nvarchar

////Extrinsic/AuxField7

Auxiliary Field 7 value for the item (optional)

nvarchar

////Extrinsic/AuxField8

Auxiliary Field 8 value for the item (optional)

nvarchar

//InvoiceDetailSummary/SubtotalAmount/Money

The subtotal amount for the invoice

decimal

//InvoiceDetailSummary/Tax/Money

The tax amount for the invoice

decimal

//InvoiceDetailSummary/Tax/Description

“Total Tax”

nvarchar

//InvoiceDetailSummary/Tax/TaxDetail

Defines the detail of each tax. This segment will repeat for each tax.

 

//InvoiceDetailSummary/Tax/TaxDetail/category

Tax name

nvarchar

//InvoiceDetailSummary/Tax/TaxDetail/percentageRate

Tax rate percentage

decimal

//InvoiceDetailSummary/Tax/TaxDetail/TaxableAmount/Money

Taxable amount for this tax detail

decimal

//InvoiceDetailSummary/Tax/TaxDetail/TaxAmount/Money

Tax amount for this tax detail

decimal

//InvoiceDetailSummary/SpecialHandlingAmount/Money

Special handling amount for the invoice

decimal

//InvoiceDetailSummary/ShippingAmount

The shipping amount for the invoice

decimal

//InvoiceDetailSummary/InvoiceDetailDiscount

The discount amount to be subtracted

decimal

//InvoiceDetailSummary/NetAmount

The total amount for the invoice

decimal

 

Definitions of Important Transaction Data Elements - Status Update Request

Element  Description Data Type

Header/From/Credential/domain

Specifies the type of credential. This attribute allows documents to contain multiple types of

credentials for multiple authentication domains. For example, DUNS for a D-U-N-S number, or NetworkId for a preassigned ID.

nvarchar

Header/From/Credential/Identity

Buyer’s Supplier identifier

nvarchar

Header/To/Credential/domain

Specifies the type of credential. This attribute allows documents to contain multiple types of credentials for multiple authentication domains. For example, DUNS for a D-U-N-S number, or NetworkId for a preassigned ID.

nvarchar

Header/To/Credential/Identity

Supplier’s Buyer identifier

nvarchar

Header/Sender/Credential/domain

Specifies the type of credential. This attribute allows documents to contain multiple types of credentials for multiple authentication domains. For example, DUNS for a D-U-N-S number, or NetworkId for a preassigned ID.

nvarchar

Header/Sender/Credential/Identity

ESM’s Buyer Identifier

nvarchar

Header/Sender/Credential/SharedSecret

ESM’s password for the buyer

nvarchar

Request/StatusUpdateRequest/DocumentReference/payLoadId

The reference to the original request

nvarchar

Request/StatusUpdateRequest/Status/code

200 or 201 for success

nvarchar

Request/StatusUpdateRequest/Status/text

“OK” for success

nvarchar

Request/StatusUpdateRequest/InvoiceStatus/type

processing—The invoice was received by the buying organization and is being processed. reconciled—The invoice successfully reconciled. The amounts in the invoice have not yet been paid. rejected—The invoice failed reconciliation. The buying organization is rejecting the

invoice. The Comments element should contain free text explaining why the invoice was

rejected, and the actions the supplier should take. The supplier can then resubmit a corrected

invoice (a new invoice document with a new invoice number). paying—The invoice has been approved for payment and is in the payment process. paid—The invoice amounts have been paid by the buying organization.

nvarchar

Request/StatusUpdateRequest/InvoiceStatus/InvoiceIDInfo/invoiceId

The ID of then invoice known to the supplier system

nvarchar

Request/StatusUpdateRequest/InvoiceStatus/InvoiceIDInfo/invoiceDate

The invoice date

date

Request/StatusUpdateRequest/InvoiceStatus/Comments

Comments related to the status update

nvarchar

Request/StatusUpdateRequest/Extrinsic/EsmInvoiceId

ESM invoice identifier

nvarchar

 

cXML Format Examples - Transactions

Invoice Detail Request Transaction

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.028/InvoiceDetail.dtd">

<cXML payloadID="a64eb9ef-a750-4b29-a958-6a7620813410" timestamp="2017-03-17T09:24:16">   <Header>

    <From>

      <Credential domain="DUNS">

        <Identity>963258</Identity>

      </Credential>

    </From>

    <To>

      <Credential domain="DUNS">

        <Identity>8521</Identity>

      </Credential>

    </To>

    <Sender>

      <Credential domain="DUNS">

        <Identity>132443859</Identity>

        <SharedSecret>330</SharedSecret>

      </Credential>

      <UserAgent>easyPurchase Invoice Hub</UserAgent>

    </Sender>

  </Header>

  <Request deploymentMode="production">

    <InvoiceDetailRequest>

 

<InvoiceDetailRequestHeader invoiceID="Mar17-74610" purpose="standard" operation="new" invoiceDate="2017-03-18">         <InvoiceDetailHeaderIndicator />

        <InvoiceDetailLineIndicator isTaxInLine="yes" isShippingInLine="yes" isAccountingInLine="yes" />         <InvoicePartner>

          <Contact role="soldTo" addressID="269407">

            <Name xml:lang="en-US">Bill Jones</Name>

            <PostalAddress name="default">

              <DeliverTo>Bill Jones</DeliverTo>

              <Street>Kelly Road</Street>

              <City>Warrington</City>

              <State>Pennsylvania</State>

              <PostalCode>12345</PostalCode>

              <Country isoCountryCode=""></Country>

            </PostalAddress>

            <Email name="default"></Email>

            <Phone name="work">

              <TelephoneNumber>

                <CountryCode isoCountryCode=""></CountryCode>

                <AreaOrCityCode></AreaOrCityCode>

                <Number>215-444-9300</Number>

              </TelephoneNumber>

            </Phone>

            <Fax name="work">

              <TelephoneNumber>

                <CountryCode isoCountryCode=""></CountryCode>

                <AreaOrCityCode></AreaOrCityCode>

                <Number></Number>

              </TelephoneNumber>

            </Fax>

          </Contact>

        </InvoicePartner>

        <InvoicePartner>

          <Contact role="shipTo" addressID="269407">

            <Name xml:lang="en-US">Joe Smith</Name>

            <PostalAddress name="default">

              <DeliverTo>Joe Smith</DeliverTo>

<Street>Street Road</Street>

              <City>Philadelphia</City>

              <State>Pennsylvania</State>

              <PostalCode>12345</PostalCode>

              <Country isoCountryCode=""></Country>

            </PostalAddress>

            <Email name="default"></Email>

            <Phone name="work">

              <TelephoneNumber>

                <CountryCode isoCountryCode=""></CountryCode>

                <AreaOrCityCode></AreaOrCityCode>

                <Number>215-444-9300</Number>

              </TelephoneNumber>

            </Phone>

            <Fax name="work">

              <TelephoneNumber>

                <CountryCode isoCountryCode=""></CountryCode>

                <AreaOrCityCode></AreaOrCityCode>

                <Number></Number>

              </TelephoneNumber>

            </Fax>

          </Contact>

        </InvoicePartner>

        <InvoicePartner>

          <Contact role="remitTo" addressID="11214">

            <Name xml:lang="en-US">Office Products</Name>

            <PostalAddress name="default">

              <DeliverTo>Phil Smith</DeliverTo>

              <Street>Street Line 11</Street>

              <City>New York</City>

              <State>Georgia</State>

              <PostalCode>30022</PostalCode>

              <Country isoCountryCode=""></Country>

            </PostalAddress>

            <Email name="default">test@supplier.com</Email>

            <Phone name="work">

              <TelephoneNumber>

                <CountryCode isoCountryCode=""></CountryCode>

                <AreaOrCityCode></AreaOrCityCode>

                <Number>2134567890</Number>

              </TelephoneNumber>

            </Phone>

            <Fax name="work">

              <TelephoneNumber>

                <CountryCode isoCountryCode=""></CountryCode>

                <AreaOrCityCode></AreaOrCityCode>

                <Number></Number>

              </TelephoneNumber>

            </Fax>

          </Contact>

        </InvoicePartner>

        <PaymentTerm payInNumberOfDays="10">

          <Discount>

            <DiscountPercent percent="10.00" />

          </Discount>

        </PaymentTerm>

        <Extrinsic name="AuxiliaryUserId"></Extrinsic>

        <Extrinsic name="EsmGLSupplierId"></Extrinsic>

        <Extrinsic name="EsmInvoiceId">ESM000000000925</Extrinsic>

        <Extrinsic name="EsmTimeZoneAdjustedInvoiceDate">2017-03-18</Extrinsic>

        <Extrinsic name="EsmDirectInvoice">false</Extrinsic>

        <Extrinsic name="EsmPaymentDueDate">2017-03-28</Extrinsic>

        <Extrinsic name="EsmTransactionDate">2017-03-17</Extrinsic>

        <Extrinsic name="EsmBankCode"></Extrinsic>

      </InvoiceDetailRequestHeader>

      <InvoiceDetailOrder>

        <InvoiceDetailOrderInfo>

          <OrderReference orderID="POOVERRIDE89680">

            <DocumentReference payloadID="1ca58d34-0309-444c-a85b-a63d4550ce70" />

          </OrderReference>

          <SupplierOrderInfo orderID="Mar17-74610" />

        </InvoiceDetailOrderInfo>

        <InvoiceDetailItem invoiceLineNumber="1" quantity="1">

          <UnitOfMeasure>Ea</UnitOfMeasure>

          <UnitPrice>

            <Money currency="USD">433.870000</Money>

          </UnitPrice>

          <InvoiceDetailItemReference lineNumber="1">

            <ItemID>

              <SupplierPartID>9336P-4F1H-BLK</SupplierPartID>

            </ItemID>

            <Description xml:lang="en">Chair</Description>

          </InvoiceDetailItemReference>

          <SubtotalAmount>

            <Money currency="USD">390.48</Money>

          </SubtotalAmount>

          <Tax>

            <Money currency="USD">0.00</Money>

            <Description xml:lang="en">total item tax</Description>

            <TaxDetail purpose="" category="TaxCode1" percentageRate="0.00">

              <TaxableAmount>

                <Money currency="USD">390.48</Money>

              </TaxableAmount>

              <TaxAmount>

                <Money currency="USD">0.00</Money>

              </TaxAmount>

              <TaxLocation xml:lang="en"></TaxLocation>

            </TaxDetail>

            <TaxDetail purpose="" category="TaxCode2" percentageRate="0.00">

              <TaxableAmount>

                <Money currency="USD">390.48</Money>

              </TaxableAmount>

              <TaxAmount>

                <Money currency="USD">0.00</Money>

              </TaxAmount>

              <TaxLocation xml:lang="en"></TaxLocation>

            </TaxDetail>

          </Tax>

          <InvoiceDetailLineSpecialHandling>

            <Money currency="USD">5.00</Money>

          </InvoiceDetailLineSpecialHandling>

          <InvoiceDetailLineShipping>

            <InvoiceDetailShipping>

              <Contact role="shipTo" addressID="1050614">

                <Name xml:lang="en">Joseph Williams</Name>

                <PostalAddress name="default">

                  <DeliverTo>John Jones</DeliverTo>

                  <Street>West Avenue</Street>

                  <City>Warrington</City>

                  <State>PA</State>

                  <PostalCode>129354</PostalCode>

                  <Country isoCountryCode="US">United States</Country>

                </PostalAddress>

                <Email name="default"></Email>

                <Phone name="work">

                  <TelephoneNumber>

                    <CountryCode isoCountryCode=""></CountryCode>

                    <AreaOrCityCode></AreaOrCityCode>

                    <Number>215-444-9300</Number>

                  </TelephoneNumber>                 </Phone> </Contact>

<Contact role="shipFrom" addressID="WAREHOUSE001">

                <Name xml:lang="en">Warehouse 001</Name>

                <PostalAddress name="default">

                  <DeliverTo>Fullfillment Dept.</DeliverTo>

                  <Street>123 Any Street</Street>

                  <City>Anywhere</City>

                  <State>PA</State>

                  <PostalCode>99999</PostalCode>

                  <Country isoCountryCode="US">United States</Country>

                </PostalAddress>

                <Email name="default"></Email>

                <Phone name="work">

                  <TelephoneNumber>

                    <CountryCode isoCountryCode=""></CountryCode>

                    <AreaOrCityCode></AreaOrCityCode>

                    <Number>215-555-1212</Number>

                  </TelephoneNumber>

                </Phone>               </Contact>

            </InvoiceDetailShipping>

            <Money currency="USD">0.00</Money>

          </InvoiceDetailLineShipping>

          <Distribution>

            <Accounting name="Code-First Segment-Second Segment">

              <AccountingSegment id="C">

                <Name xml:lang="en">Chart</Name>

                <Description xml:lang="en">C</Description>

              </AccountingSegment>

              <AccountingSegment id="100">

                <Name xml:lang="en">Code</Name>

                <Description xml:lang="en"></Description>

              </AccountingSegment>

              <AccountingSegment id="100100">

                <Name xml:lang="en">First Segment</Name>

                <Description xml:lang="en"></Description>

              </AccountingSegment>

              <AccountingSegment id="100200">

                <Name xml:lang="en">Second Segment</Name>

                <Description xml:lang="en"></Description>

              </AccountingSegment>

            </Accounting>

            <Charge>

              <Money currency="USD">395.48</Money>

            </Charge>

          </Distribution>

          <Extrinsic name="EsmDistributions">             <Extrinsic name="EsmDistribution">

              <Accounting name="Code-First Segment-Second Segment">

                <AccountingSegment id="C">

                  <Name xml:lang="en">Chart</Name>

                  <Description xml:lang="en">C</Description>

                </AccountingSegment>

                <AccountingSegment id="100">

                  <Name xml:lang="en">Code</Name>

                  <Description xml:lang="en"></Description>

                </AccountingSegment>

                <AccountingSegment id="100100">

                  <Name xml:lang="en">First Segment</Name>

                  <Description xml:lang="en"></Description>

                </AccountingSegment>

                <AccountingSegment id="100200">

                  <Name xml:lang="en">Second Segment</Name>

                  <Description xml:lang="en"></Description>

                </AccountingSegment>

              </Accounting> <SubtotalAmount>

                <Money currency="USD">433.87</Money>

              </SubtotalAmount>

              <Tax>

                <Money currency="USD">0.00</Money>

                <Description xml:lang="en" />

              </Tax>

              <Shipping>

                <Money currency="USD">0.00</Money>

                <Description xml:lang="en" />

              </Shipping>

              <Discount>

                <DiscountAmount>

                  <Money currency="USD">43.39</Money>

                </DiscountAmount>

              </Discount>

              <SpecialHandlingAmount>

                <Money currency="USD">5.00</Money>

              </SpecialHandlingAmount>

              <Charge>

                <Money currency="USD">395.48</Money>

              </Charge>

            </Extrinsic>

          </Extrinsic>

          <Extrinsic name="isNonCatalogItem">false</Extrinsic>

          <Extrinsic name="AuxField1">W-123456</Extrinsic>

          <Extrinsic name="AuxField2">Office Furniture</Extrinsic>

          <Extrinsic name="AuxField3"/>

          <Extrinsic name="AuxField4"/>

          <Extrinsic name="AuxField5"/>

          <Extrinsic name="AuxField6"/>

          <Extrinsic name="AuxField7"/>

          <Extrinsic name="AuxField8"/>

        </InvoiceDetailItem>

        <InvoiceDetailItem invoiceLineNumber="2" quantity="1">

          <UnitOfMeasure>Ea</UnitOfMeasure>

          <UnitPrice>

            <Money currency="USD">345.290000</Money>

          </UnitPrice>

          <InvoiceDetailItemReference lineNumber="2">

            <ItemID>

              <SupplierPartID>9336P-3F1H-LGR</SupplierPartID>

            </ItemID>

            <Description xml:lang="en">Table</Description>

          </InvoiceDetailItemReference>

          <SubtotalAmount>

            <Money currency="USD">310.76</Money>

          </SubtotalAmount>

          <Tax>

            <Money currency="USD">0.00</Money>

            <Description xml:lang="en">total item tax</Description>

            <TaxDetail purpose="" category="TaxCode1" percentageRate="0.00">

              <TaxableAmount>

                <Money currency="USD">310.76</Money>

              </TaxableAmount>

              <TaxAmount>

                <Money currency="USD">0.00</Money>

              </TaxAmount>

              <TaxLocation xml:lang="en"></TaxLocation>

            </TaxDetail>

            <TaxDetail purpose="" category="TaxCode2" percentageRate="0.00">

              <TaxableAmount>

                <Money currency="USD">310.76</Money>

              </TaxableAmount>

              <TaxAmount>

                <Money currency="USD">0.00</Money>

</TaxAmount>

<TaxLocation xml:lang="en"></TaxLocation>

            </TaxDetail>

          </Tax>

          <InvoiceDetailLineSpecialHandling>

            <Money currency="USD">5.00</Money>

          </InvoiceDetailLineSpecialHandling>

          <InvoiceDetailLineShipping>

            <InvoiceDetailShipping>

              <Contact role="shipTo" addressID="1050614">

                <Name xml:lang="en">Roger Jones</Name>

                <PostalAddress name="default">

                  <DeliverTo>Mike Smith</DeliverTo>

                  <Street>Kelly Road</Street>

                  <City>Warrington</City>

                  <State>PA</State>

                  <PostalCode>49283</PostalCode>

                  <Country isoCountryCode="US">United States</Country>

                </PostalAddress>

                <Email name="default"></Email>

                <Phone name="work">

                  <TelephoneNumber>

                    <CountryCode isoCountryCode=""></CountryCode>

                    <AreaOrCityCode></AreaOrCityCode>

                    <Number>215-444-9300</Number>

                  </TelephoneNumber>

                </Phone>

              </Contact>

              <Contact role="shipFrom" addressID="WAREHOUSE001">

                <Name xml:lang="en">Warehouse 001</Name>

                <PostalAddress name="default">

                  <DeliverTo>Fullfillment Dept.</DeliverTo>

                  <Street>123 Any Street</Street>

                  <City>Anywhere</City>

                  <State>PA</State>

                  <PostalCode>99999</PostalCode>

                  <Country isoCountryCode="US">United States</Country>

                </PostalAddress>

                <Email name="default"></Email>

                <Phone name="work">

                  <TelephoneNumber>

                    <CountryCode isoCountryCode=""></CountryCode>

                    <AreaOrCityCode></AreaOrCityCode>

                    <Number>215-555-1212</Number>

                  </TelephoneNumber>

                </Phone>               </Contact>

            </InvoiceDetailShipping>

            <Money currency="USD">0.00</Money>

          </InvoiceDetailLineShipping>

          <Distribution>

            <Accounting name="Code-First Segment-Second Segment">

              <AccountingSegment id="C">

                <Name xml:lang="en">Chart</Name>

                <Description xml:lang="en">C</Description>

              </AccountingSegment>

              <AccountingSegment id="100">

                <Name xml:lang="en">Code</Name>

                <Description xml:lang="en"></Description>

              </AccountingSegment>

              <AccountingSegment id="100100">

                <Name xml:lang="en">First Segment</Name>

                <Description xml:lang="en"></Description>

              </AccountingSegment>

              <AccountingSegment id="100200">

                <Name xml:lang="en">Second Segment</Name>

                <Description xml:lang="en"></Description>               </AccountingSegment>

            </Accounting>

            <Charge>

              <Money currency="USD">315.76</Money>

            </Charge>

          </Distribution>

          <Extrinsic name="EsmDistributions">             <Extrinsic name="EsmDistribution">

              <Accounting name="Code-First Segment-Second Segment">

                <AccountingSegment id="C">

                  <Name xml:lang="en">Chart</Name>

                  <Description xml:lang="en">C</Description>

                </AccountingSegment>

                <AccountingSegment id="100">

                  <Name xml:lang="en">Code</Name>

                  <Description xml:lang="en"></Description>

                </AccountingSegment>

                <AccountingSegment id="100100">

                  <Name xml:lang="en">First Segment</Name>

                  <Description xml:lang="en"></Description>

                </AccountingSegment>

                <AccountingSegment id="100200">

                  <Name xml:lang="en">Second Segment</Name>

                  <Description xml:lang="en"></Description>

                </AccountingSegment>

              </Accounting>

              <SubtotalAmount>

                <Money currency="USD">345.29</Money>

              </SubtotalAmount>

              <Tax>

                <Money currency="USD">0.00</Money>

                <Description xml:lang="en" />

              </Tax>

              <Shipping>

                <Money currency="USD">0.00</Money>

                <Description xml:lang="en" />

              </Shipping>

              <Discount>

                <DiscountAmount>

                  <Money currency="USD">34.53</Money>

                </DiscountAmount>

              </Discount>

              <SpecialHandlingAmount>

                <Money currency="USD">5.00</Money>

              </SpecialHandlingAmount>

              <Charge>

                <Money currency="USD">315.76</Money>

              </Charge>

            </Extrinsic>

          </Extrinsic>

          <Extrinsic name="isNonCatalogItem">false</Extrinsic>

          <Extrinsic name="AuxField1">W-123456</Extrinsic>

          <Extrinsic name="AuxField2">Office Furniture</Extrinsic>

          <Extrinsic name="AuxField3"/>

          <Extrinsic name="AuxField4"/>

          <Extrinsic name="AuxField5"/>

          <Extrinsic name="AuxField6"/>

          <Extrinsic name="AuxField7"/>

          <Extrinsic name="AuxField8"/>

        </InvoiceDetailItem>

      </InvoiceDetailOrder>

      <InvoiceDetailSummary>

        <SubtotalAmount>

          <Money currency="USD">701.24</Money>

        </SubtotalAmount>

        <Tax>

          <Money currency="USD">0.00</Money>

          <Description xml:lang="en">total tax</Description>

          <TaxDetail purpose="tax" category="TaxCode1" percentageRate="0.00">

            <TaxableAmount>

              <Money currency="">701.24</Money>

            </TaxableAmount>

            <TaxAmount>

              <Money currency="">0.00</Money>

            </TaxAmount>

          </TaxDetail>

          <TaxDetail purpose="tax" category="TaxCode2" percentageRate="0.00">

            <TaxableAmount>

              <Money currency="">701.24</Money>

            </TaxableAmount>

            <TaxAmount>

              <Money currency="">0.00</Money>

            </TaxAmount>

          </TaxDetail>

        </Tax>

        <SpecialHandlingAmount>

          <Money currency="USD">10.00</Money>

        </SpecialHandlingAmount>

        <ShippingAmount>

          <Money currency="USD">0.00</Money>

        </ShippingAmount>

        <InvoiceDetailDiscount percentageRate="10.00">

          <Money currency="USD">77.92</Money>

        </InvoiceDetailDiscount>

        <NetAmount>

          <Money currency="USD">711.24</Money>

        </NetAmount>

      </InvoiceDetailSummary>

    </InvoiceDetailRequest>

  </Request>

</cXML>

 

Invoice Status Update Request Transaction

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.028/cXML.dtd">

<cXML timestamp="2017-03-17T10:05:12" payloadID="94fe9ba6-c56e-410b-a82c-438778798f04">

  <Header>

    <From>

      <Credential domain="DUNS">

        <Identity>8521</Identity>

      </Credential>

    </From>

    <To>

      <Credential domain="DUNS">

        <Identity>963258</Identity>

      </Credential>

    </To>

    <Sender>

      <Credential domain="DUNS">

        <Identity>8521</Identity>

        <SharedSecret>330</SharedSecret>

      </Credential>

      <UserAgent>easyPurchase Invoice Hub</UserAgent>

    </Sender>

  </Header>  

  <Request>

    <StatusUpdateRequest>

      <DocumentReference payloadID="a64eb9ef-a750-4b29-a958-6a7620813410" />

      <Status code="200" text="OK" />

      <InvoiceStatus type="processing">

        <InvoiceIDInfo invoiceID="93345" invoiceDate="2015-12-22T00:00:00" />

        <Comments />

      </InvoiceStatus>

      <Extrinsic name="EsmInvoiceId">A0003881</Extrinsic>

    </StatusUpdateRequest>

  </Request>

</cXML>

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section