Skip to main content

 

 

Coupa Success Portal

Sample cXML Invoice Backed by Contract

Coupa allows to post non-PO backed invoices against contract via cXML. Below sample is for non Services which has quantity.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2...oiceDetail.dtd">
<cXML version="1.1.008" payloadID="201404091618341618340.106@coupa.com" timestamp="2014-04-09T16:18:34-07:00">
  <Header>
    <From>
      <Credential domain="DUNS">
        <Identity>11111111</Identity>
      </Credential>
    </From>
    <To>
      <Credential domain="DUNS">
        <Identity>22222222</Identity>
      </Credential>
    </To>
    <Sender>
      <Credential domain="DUNS">
        <Identity>11111111</Identity>
        <SharedSecret>password</SharedSecret>
      </Credential>
      <UserAgent>CatalogManager</UserAgent>
    </Sender>
  </Header>
  <Request deploymentMode="production">
    <InvoiceDetailRequest>
      <InvoiceDetailRequestHeader invoiceDate="2010-12-16T00:00:00" invoiceID="INV000012" operation="new" purpose="standard">
        <InvoiceDetailHeaderIndicator/>
        <InvoiceDetailLineIndicator isAccountingInLine="yes"/>
        <PaymentTerm payInNumberOfDays="30"/>
      </InvoiceDetailRequestHeader>
      <InvoiceDetailOrder>
        <InvoiceDetailOrderInfo>
          <MasterAgreementReference>
            <!-- payloadID is the Contract number -->
            <DocumentReference payloadID="10"/>
          </MasterAgreementReference>
        </InvoiceDetailOrderInfo>
        <InvoiceDetailItem invoiceLineNumber="1" quantity="1">
          <UnitOfMeasure>EA</UnitOfMeasure>
          <UnitPrice>
            <Money currency="USD">200</Money>
          </UnitPrice>
          <InvoiceDetailItemReference lineNumber="">
            <Description xml:lang="en">Window cleaning on 1-1-11 at HQ</Description>
          </InvoiceDetailItemReference>
          <SubtotalAmount>
            <Money currency="USD">200</Money>
          </SubtotalAmount>
        </InvoiceDetailItem>
      </InvoiceDetailOrder>
      <InvoiceDetailSummary>
        <SubtotalAmount>
          <Money currency="USD">200</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>

  • Was this article helpful?