Skip to main content

 

 

Coupa Success Portal

Sample cXML Invoice Multiple Lines not PO Backed

Simple Invoice: Multiple Lines not PO Backed (no Tax, no Header Charges)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.020/InvoiceDetail.dtd">
<cXML payloadID="20101222 190337.2999" timestamp="2010-12-22T19:03:37" version="1.0">
  <Header>
    <From>
      <Credential domain="DUNS">
        <Identity>supplierid</Identity>
      </Credential>
    </From>
    <To>
      <Credential domain="DUNS">
        <Identity>buyerid</Identity>
      </Credential>
    </To>
    <Sender>
      <Credential domain="DUNS">
        <Identity>supplierid</Identity>
        <SharedSecret>secret</SharedSecret>
      </Credential>
      <UserAgent>Your Very Own Agent 1.23</UserAgent>
    </Sender>
  </Header>
  <Request deploymentMode="production">
    <InvoiceDetailRequest>
      <InvoiceDetailRequestHeader invoiceDate="2010-12-16T00:00:00" invoiceID="INV00001" operation="new" purpose="standard">
        <InvoiceDetailHeaderIndicator/>
        <InvoiceDetailLineIndicator isAccountingInLine="yes"/>
        <PaymentTerm payInNumberOfDays="30"/>
      </InvoiceDetailRequestHeader>
      <InvoiceDetailOrder>
        <InvoiceDetailOrderInfo>
          <MasterAgreementReference>
            <!-- payloadID is the Contract number in Coupa -->
            <DocumentReference payloadID="123" />
          </MasterAgreementReference>
        </InvoiceDetailOrderInfo>
        <InvoiceDetailItem invoiceLineNumber="1" quantity="2">
          <UnitOfMeasure>EA</UnitOfMeasure>
          <UnitPrice>
            <Money currency="USD">100</Money>
          </UnitPrice>
          <InvoiceDetailItemReference lineNumber="1">
            <Description xml:lang="en">Item1</Description>
          </InvoiceDetailItemReference>
          <SubtotalAmount>
            <Money currency="USD">200</Money>
          </SubtotalAmount>
        </InvoiceDetailItem>
        <InvoiceDetailItem invoiceLineNumber="2" quantity="2">
          <UnitOfMeasure>EA</UnitOfMeasure>
          <UnitPrice>
            <Money currency="USD">10</Money>
          </UnitPrice>
          <InvoiceDetailItemReference lineNumber="1">
            <Description xml:lang="en">Test Item</Description>
          </InvoiceDetailItemReference>
          <SubtotalAmount>
            <Money currency="USD">20</Money>
          </SubtotalAmount>
        </InvoiceDetailItem>
      </InvoiceDetailOrder>
      <InvoiceDetailSummary>
        <SubtotalAmount>
          <Money currency="USD">220.00</Money>
        </SubtotalAmount>
        <Tax>
          <Money currency="USD">0</Money>
          <Description xml:lang="en">TaxStuff</Description>
          <TaxDetail category="tax" purpose="tax" taxPointDate="2010-12-16T00:00:00">
            <TaxableAmount>
              <Money currency="USD"/>
            </TaxableAmount>
            <TaxAmount>
              <Money currency="USD">0</Money>
            </TaxAmount>
            <TaxLocation xml:lang="en">CA</TaxLocation>
          </TaxDetail>
        </Tax>
        <SpecialHandlingAmount>
          <Money currency="USD">0</Money>
        </SpecialHandlingAmount>
        <ShippingAmount>
          <Money currency="USD">0</Money>
        </ShippingAmount>
        <NetAmount>
          <Money currency="USD">0</Money>
        </NetAmount>
      </InvoiceDetailSummary>
    </InvoiceDetailRequest>
  </Request>
</cXML>

cXML Invoice: Multiple Lines not PO Backed (with Multiple Taxes at Line)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.020/InvoiceDetail.dtd">
<cXML version="1.0" payloadID="1240598937@devtrunk.coupahost.com" timestamp="2009-05-04T01:24:51-07:00">
   <Header>
      <From>
         <Credential domain="DUNS">
            <Identity>supplierid</Identity>
         </Credential>
      </From>
      <To>
         <Credential domain="DUNS">
            <Identity>buyerid</Identity>
         </Credential>
      </To>
      <Sender>
         <Credential domain="DUNS">
            <Identity>supplierid</Identity>
            <SharedSecret>secret</SharedSecret>
         </Credential>
         <UserAgent>Your Very Own Agent 1.23</UserAgent>
      </Sender>
   </Header>
   <Request deploymentMode="production">
      <InvoiceDetailRequest>
         <InvoiceDetailRequestHeader invoiceID="3492" purpose="standard" operation="new" invoiceDate="2009-05-01T11:45:51-07:00">
            <InvoiceDetailHeaderIndicator />
            <InvoiceDetailLineIndicator isTaxInLine="yes" isAccountingInLine="yes" />
            <PaymentTerm payInNumberOfDays="30" />
         </InvoiceDetailRequestHeader>
         <InvoiceDetailOrder>
            <InvoiceDetailOrderInfo>
               <MasterAgreementReference>
                  <DocumentReference payloadID="123" />
               </MasterAgreementReference>
            </InvoiceDetailOrderInfo>
            <InvoiceDetailItem invoiceLineNumber="1" quantity="1">
               <UnitOfMeasure>EA</UnitOfMeasure>
               <UnitPrice>
                  <Money currency="USD">365</Money>
               </UnitPrice>
               <InvoiceDetailItemReference lineNumber="1">
                  <Description xml:lang="en">NEW 1 NINTENDO WII GAME CONSOLE + WII FIT BUNDLE +GAMES</Description>
               </InvoiceDetailItemReference>
               <SubtotalAmount>
                  <Money currency="USD">365</Money>
               </SubtotalAmount>
                          <Tax>
               <Money currency="USD">6.36</Money>
               <Description xml:lang="en">TOTAL TAX</Description>
               <TaxDetail category="sales" percentageRate="10" purpose="tax">
                  <TaxAmount>
                     <Money currency="USD">6.25</Money>
                  </TaxAmount>
                  <Description xml:lang="en">sales and use tax</Description>
               </TaxDetail>
               <TaxDetail category="VATPR" percentageRate="10.5" purpose="VAT">
                  <TaxAmount>
                     <Money currency="USD">6.36</Money>
                  </TaxAmount>
                  <Description xml:lang="en">VAT - Puerto Rico</Description>
               </TaxDetail>
            </Tax>
            </InvoiceDetailItem>
         </InvoiceDetailOrder>
         <InvoiceDetailSummary>
            <SubtotalAmount>
               <Money currency="USD">365</Money>
            </SubtotalAmount>
            <Tax>
               <Money currency="USD">6.36</Money>
               <Description xml:lang="en">TOTAL TAX</Description>
               <TaxDetail category="sales" percentageRate="10" purpose="tax">
                  <TaxAmount>
                     <Money currency="USD">6.25</Money>
                  </TaxAmount>
                  <Description xml:lang="en">sales and use tax</Description>
               </TaxDetail>
               <TaxDetail category="VATPR" percentageRate="10.5" purpose="VAT">
                  <TaxAmount>
                     <Money currency="USD">6.36</Money>
                  </TaxAmount>
                  <Description xml:lang="en">VAT - Puerto Rico</Description>
               </TaxDetail>
            </Tax>
            <SpecialHandlingAmount>
               <Money currency="USD">5</Money>
            </SpecialHandlingAmount>
            <ShippingAmount>
               <Money currency="USD">30</Money>
            </ShippingAmount>
            <NetAmount>
               <Money currency="USD" />
            </NetAmount>
         </InvoiceDetailSummary>
      </InvoiceDetailRequest>
   </Request>
</cXML>
  • Was this article helpful?