Skip to main content

 

 

Coupa Success Portal

Sample cXML Invoice with Both Backed and Unbacked Lines

 


<?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">
         <!-- Supplier Domain from Supplier Invoice Credentials -->
            <Identity>supplier-test</Identity>
         </Credential>
      </From>
      <To>
         <Credential domain="TESTDOMAIN">
        <!-- Buyer Domain from Supplier Invoice Credentials -->
            <Identity>buyer-test</Identity>
         </Credential>
      </To>
      <Sender>
         <Credential domain="TESTDOMAIN">
<!-- Buyer Domain from Supplier Invoice Credentials -->
            <Identity>testidentity</Identity>
<!-- Supplier Identity from Supplier Invoice Credentials -->
            <SharedSecret>TESTSECRET</SharedSecret>
<!-- Shared Secret from Supplier Invoice Credentials -->
         </Credential>
         <UserAgent>Coupa Out Wcf Service</UserAgent>
      </Sender>
   </Header>
   <Request deploymentMode="production">
      <InvoiceDetailRequest>
         <InvoiceDetailRequestHeader invoiceDate="2010-12-16T00:00:00" invoiceID="INVOICENUMBER" operation="new" purpose="standard">
             <!-- InvoiceID=Invoice Number -->
            <InvoiceDetailHeaderIndicator />
            <InvoiceDetailLineIndicator isAccountingInLine="yes" />
            <PaymentTerm payInNumberOfDays="30" />
         </InvoiceDetailRequestHeader>
         <InvoiceDetailOrder>
            <InvoiceDetailOrderInfo>
               <OrderReference>
     <!-- PO ID listed in PayloadID Notice different Order Reference than below contract -->
                  <DocumentReference payloadID="E14994" />
               </OrderReference>
            </InvoiceDetailOrderInfo>
            <InvoiceDetailItem invoiceLineNumber="1" quantity="3">
               <UnitOfMeasure>EA</UnitOfMeasure>
               <UnitPrice>
                  <Money currency="USD">100</Money>
               </UnitPrice>
               <InvoiceDetailItemReference lineNumber="1">
                  <Description xml:lang="en">Item1</Description>
                    <!-- Line Item Description -->
               </InvoiceDetailItemReference>
               <SubtotalAmount>
                  <Money currency="USD">200</Money>
               </SubtotalAmount>
            </InvoiceDetailItem>
         </InvoiceDetailOrder>
         <InvoiceDetailOrder>
            <InvoiceDetailOrderInfo>
               <MasterAgreementReference>
                  <DocumentReference payloadID="" />
          <!-- PayloadID= Contract Number or leave blank if invoicing with no backing document -->
               </MasterAgreementReference>
            </InvoiceDetailOrderInfo>
            <InvoiceDetailItem invoiceLineNumber="2" quantity="2">
               <UnitOfMeasure>EA</UnitOfMeasure>
               <UnitPrice>
                  <Money currency="USD">10</Money>
               </UnitPrice>
               <InvoiceDetailItemReference lineNumber="1">
                  <Description xml:lang="en">Non PO or Contract Line Item Description </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>