Skip to main content

 

 

Coupa Success Portal

Sample cXML Inbound Invoice

<SpecialHandlingAmount> is for handling fees.

<InvoiceDetailDiscount> is for discounts and other fees, and it shows up as Misc fees within Coupa.

 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.020/InvoiceDetail.dtd">
<cXML version="1.2.020" xml:lang="en-US" timestamp="2015-01-30T20:16:25-08:00" payloadID="xxxx.xxxx.xxx@demo.coupahost">
   <Header>
      <From>
         <Credential domain="DUNS">
            <Identity>Supplier Identity</Identity>
         </Credential>
      </From>
      <To>
         <Credential domain="DUNS">
            <Identity>Customer Identity</Identity>
         </Credential>
      </To>
      <Sender>
         <Credential domain="DUNS">
            <Identity>Supplier Identity</Identity>
            <SharedSecret>xxxxxxx</SharedSecret>
         </Credential>
         <UserAgent>The User Agent</UserAgent>
      </Sender>
   </Header>
   <Request deploymentMode="production">
      <InvoiceDetailRequest>
         <InvoiceDetailRequestHeader invoiceDate="2015-01-30T20:13:00-08:00" operation="new" purpose="standard" invoiceOrigin="supplier" invoiceID="A0000000">
            <InvoicePartner>
               <Contact role="soldTo">
                  <Name xml:lang="en-US">Customer Contact</Name>
                  <PostalAddress>
                     <DeliverTo>Customer Name</DeliverTo>
                     <Street>123 Coupa Avenue</Street>
                     <City>San Mateo</City>
                     <State>CA</State>
                     <PostalCode>94402</PostalCode>
                     <Country isoCountryCode="US">United States</Country>
                  </PostalAddress>
                  <Phone>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="US" />
                        <Number>650-200-4000</Number>
                     </TelephoneNumber>
                  </Phone>
                  <Fax>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="US" />
                     </TelephoneNumber>
                  </Fax>
               </Contact>
            </InvoicePartner>
            <InvoicePartner>
               <Contact role="billTo">
                  <Name xml:lang="en-US">Accounts Payable</Name>
                  <PostalAddress>
                     <DeliverTo>Customer Name</DeliverTo>
                     <Street>1200 Coupa Avenue</Street>
                     <City>San Mateo</City>
                     <State>CA</State>
                     <PostalCode>94402</PostalCode>
                     <Country isoCountryCode="US">United States</Country>
                  </PostalAddress>
                  <Phone>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="US" />
                        <Number>650-200-4000</Number>
                     </TelephoneNumber>
                  </Phone>
                  <Fax>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="US" />
                     </TelephoneNumber>
                  </Fax>
               </Contact>
            </InvoicePartner>
            <InvoicePartner>
               <Contact role="remitTo">
                  <Name xml:lang="en-US" />
                  <PostalAddress>
                     <Country isoCountryCode="" />
                  </PostalAddress>
                  <Phone>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="" />
                     </TelephoneNumber>
                  </Phone>
                  <Fax>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="" />
                     </TelephoneNumber>
                  </Fax>
               </Contact>
            </InvoicePartner>
            <InvoiceDetailShipping>
               <Contact role="shipFrom">
                  <Name xml:lang="en-US" />
                  <PostalAddress>
                     <Country isoCountryCode="" />
                  </PostalAddress>
                  <Phone>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="" />
                     </TelephoneNumber>
                  </Phone>
                  <Fax>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="" />
                     </TelephoneNumber>
                  </Fax>
               </Contact>
               <Contact role="shipTo">
                  <Name xml:lang="en-US">Contact Name</Name>
                  <PostalAddress>
                     <DeliverTo>Company Name</DeliverTo>
                     <Street>123 Coupa Avenue</Street>
                     <City>San Mateo</City>
                     <State>CA</State>
                     <PostalCode>94402</PostalCode>
                     <Country isoCountryCode="US">United States</Country>
                  </PostalAddress>
                  <Phone>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="US" />
                        <Number>650-200-4000</Number>
                     </TelephoneNumber>
                  </Phone>
                  <Fax>
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="US" />
                     </TelephoneNumber>
                  </Fax>
               </Contact>
            </InvoiceDetailShipping>
            <PaymentTerm payInNumberOfDays="30" />
            <Comments xml:lang="en-US" />
            <Extrinsic name="DueDate">2015-03-01T00:00:00-08:00</Extrinsic>
            <Extrinsic name="CustomFields">
               <IdReference identifier="invoice_type1" domain="CustomField">
                  <Description xml:lang="en-US">1</Description>
               </IdReference>
               <IdReference identifier="vendor_1" domain="CustomField">
                  <Description xml:lang="en-US">18537</Description>
               </IdReference>
               <IdReference identifier="ticket_1" domain="CustomField">
                  <Description xml:lang="en-US" />
               </IdReference>
               <IdReference identifier="project_name__gl_code1" domain="CustomField">
                  <Description xml:lang="en-US" />
               </IdReference>
            </Extrinsic>
         </InvoiceDetailRequestHeader>
         <InvoiceDetailOrder>
            <InvoiceDetailOrderInfo>
               <OrderReference>
                  <DocumentReference payloadID="001" />
               </OrderReference>
               <SupplierOrderInfo orderID="A0000000" />
            </InvoiceDetailOrderInfo>
            <InvoiceDetailItem quantity="1" invoiceLineNumber="1">
               <UnitOfMeasure>EA</UnitOfMeasure>
               <UnitPrice>
                  <Money currency="USD">123.49</Money>
               </UnitPrice>
               <InvoiceDetailItemReference lineNumber="1">
                  <ItemID>
                     <SupplierPartID>41U3196</SupplierPartID>
                     <SupplierPartAuxiliaryID>359</SupplierPartAuxiliaryID>
                  </ItemID>
                  <Description xml:lang="en-US">Lenovo</Description>
               </InvoiceDetailItemReference>
               <SubtotalAmount>
                  <Money currency="USD">123.49</Money>
               </SubtotalAmount>
               <Extrinsic name="CustomFields">
                  <IdReference identifier="serial_number" domain="CustomField">
                     <Description xml:lang="en-US" />
                  </IdReference>
                  <IdReference identifier="maintenance_start_date" domain="CustomField">
                     <Description xml:lang="en-US">2015-02-01T00:00:00-08:00</Description>
                  </IdReference>
                  <IdReference identifier="maintenance_end_date" domain="CustomField">
                     <Description xml:lang="en-US">2016-01-31T00:00:00-08:00</Description>
                  </IdReference>
               </Extrinsic>
            </InvoiceDetailItem>
         </InvoiceDetailOrder>
         <InvoiceDetailSummary>
            <SubtotalAmount>
               <Money currency="USD">123.49</Money>
            </SubtotalAmount>
            <Tax>
               <Money currency="USD">0.00</Money>
               <Description xml:lang="en-US">Tax</Description>
            </Tax>
            <ShippingAmount>
               <Money currency="USD">11.00</Money>
            </ShippingAmount>
            <NetAmount>
               <Money currency="USD">138.49</Money>
            </NetAmount>
            <DueAmount>
               <Money currency="USD">138.49</Money>
            </DueAmount>
            <InvoiceDetailDiscount>
               <Money currency="USD">4.00</Money>
            </InvoiceDetailDiscount>
         </InvoiceDetailSummary>
      </InvoiceDetailRequest>
   </Request>
</cXML>
  • Was this article helpful?