Sample for Resolving Disputes via Credit Notes

Use this sample cXML for resolving disputes through your credit notes and you can test your Coupa integration.

 

<?xml version="1.0"?>
<!DOCTYPE cXML
        SYSTEM 'http://xml.cXML.org/schemas/cXML/1.2...oiceDetail.dtd'>
<cXML payloadID="i1240598937@SUBDOMAIN.coupahost.com" timestamp="2017-01-24 15:18:07 +0530" version="1.0">
  <Header>
    <From>
      <Credential domain="s_test_domain">
        <Identity>s_test_i</Identity>
      </Credential>
    </From>
    <To>
      <Credential domain="c_test_domain">
        <Identity>c_test_i</Identity>
      </Credential>
    </To>
    <Sender>
      <Credential domain="s_test_domain">
        <Identity>s_test_i</Identity>
        <SharedSecret>secret</SharedSecret>
      </Credential>
      <UserAgent>Star Wars</UserAgent>
    </Sender>
  </Header>
  <Request deploymentMode="production">
    <InvoiceDetailRequest>
      <InvoiceDetailRequestHeader invoiceDate="2017-01-24 15:18:07 +0530" invoiceID="Credit_Note_correction" operation="new" purpose="creditMemo">
        <InvoiceDetailHeaderIndicator/>
        <InvoiceDetailLineIndicator isAccountingInLine="yes"/>
        <InvoicePartner>
          <Contact role="remitTo" addressID="">
            <Name xml:lang="en"></Name>
          </Contact>
          <IdReference domain="taxPrefix" identifier="" />
          <IdReference domain="taxNumber" identifier="" />
        </InvoicePartner>
        <DocumentReference payloadID="DISPUTE_1"/>
        <PaymentTerm payInNumberOfDays="30"/>
        <Extrinsic name="CustomFields">
          <IdReference identifier='original_invoice_date' domain='CustomField'><Description xml:lang='en'>2016-08-06T11:45:51-07:00</Description></IdReference>
        </Extrinsic>
      </InvoiceDetailRequestHeader>
      <InvoiceDetailOrder>
        <InvoiceDetailOrderInfo>
          <MasterAgreementReference>
            <DocumentReference payloadID=""/>
          </MasterAgreementReference>
        </InvoiceDetailOrderInfo>
        <InvoiceDetailItem invoiceLineNumber="1" quantity="1">
          <UnitOfMeasure>EA</UnitOfMeasure>
          <UnitPrice>
            <Money currency="USD">8</Money>
          </UnitPrice>
          <InvoiceDetailItemReference lineNumber="1">
            <Description xml:lang="en">Sandcrawler</Description>
          </InvoiceDetailItemReference>
          <SubtotalAmount>
            <Money currency="USD">8</Money>
          </SubtotalAmount>
        </InvoiceDetailItem>
      </InvoiceDetailOrder>
      <InvoiceDetailSummary>
        <SubtotalAmount>
          <Money currency="USD">8</Money>
        </SubtotalAmount>
        <Tax>
          <Money currency="USD">0</Money>
          <Description xml:lang="en">Total Tax</Description>
          <TaxDetail category="VAT" percentageRate="1" purpose="tax" taxPointDate="2017-01-24 15:18:07 +0530">
            <TaxableAmount>
              <Money currency="USD">0</Money>
            </TaxableAmount>
            <TaxAmount>
              <Money currency="USD">0</Money>
            </TaxAmount>
            <TaxLocation xml:lang="en">CA</TaxLocation>
          </TaxDetail>
        </Tax>
        <NetAmount>
          <Money currency="USD"/>
        </NetAmount>
      </InvoiceDetailSummary>
    </InvoiceDetailRequest>
  </Request>
</cXML>