Skip to main content

 

 

Coupa Success Portal

Sample cXML Credit Memo


<?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@SUBDOMAIN.coupahost.com" timestamp="2014-06-30T01:24:51-07:00">
   <Header>
      <From>
         <Credential domain="DUNS">
            <Identity>nothing01</Identity>
         </Credential>
      </From>
      <To>
         <Credential domain="DUNS">
            <Identity>12-345-6799</Identity>
         </Credential>
      </To>
      <Sender>
         <Credential domain="DUNS">
            <Identity>nothing01</Identity>
            <SharedSecret>password</SharedSecret>
         </Credential>
         <UserAgent>Your Very Own Agent 1.23</UserAgent>
      </Sender>
   </Header>
   <Request deploymentMode="production">
      <InvoiceDetailRequest>
         <InvoiceDetailRequestHeader invoiceID="credit-note-2" purpose="creditMemo" operation="new" invoiceDate="2014-04-30T11:45:51-07:00">
            <InvoiceDetailHeaderIndicator />
            <InvoiceDetailLineIndicator isAccountingInLine="yes" />
            <InvoicePartner>
               <Contact role="remitTo" addressID="RTC-GB-4">
                  <Name xml:lang="en">RTN GB</Name>
               </Contact>
            </InvoicePartner>
            <InvoicePartner>
               <Contact role="billTo">
                  <Name xml:lang="en">xxx yyy</Name>
                  <PostalAddress name="default">
                     <DeliverTo>xxx yyy</DeliverTo>
                     <Street>Line1</Street>
                     <Street>Line2</Street>
                     <City>City</City>
                     <State>State</State>
                     <PostalCode>151515</PostalCode>
                     <Country isoCountryCode="BE">1</Country>
                  </PostalAddress>
                  <Email name="default">user@example.com</Email>
                  <Phone name="work">
                     <TelephoneNumber>
                        <CountryCode isoCountryCode="BE">Belgium</CountryCode>
                        <AreaOrCityCode>745</AreaOrCityCode>
                        <Number>+1 (987) 654-3210</Number>
                     </TelephoneNumber>
                  </Phone>
               </Contact>
            </InvoicePartner>
            <DocumentReference payloadID="inv123112" />
            <!-- InvoiceDetailShipping for specifying shipping addreses on invoice header level,
                    is not required
                  -->
            <InvoiceDetailShipping>
               <Contact role="shipFrom">
                  <Name xml:lang="en">Minh Tran</Name>
                  <PostalAddress name="default">
                     <DeliverTo>Minh Tran</DeliverTo>
                     <Street>2 W Fifth Street</Street>
                     <Street>Suite 300</Street>
                     <City>San Mateo</City>
                     <State>CA</State>
                     <PostalCode>94402</PostalCode>
                     <Country isoCountryCode="US">United States</Country>
                  </PostalAddress>
               </Contact>
               <Contact role="shipTo">
                  <Name xml:lang="en">golmal</Name>
                  <PostalAddress name="default">
                     <DeliverTo>Golmal</DeliverTo>
                     <Street>qwerty</Street>
                     <Street>ytrewq</Street>
                     <City>Broncolli</City>
                     <State>lemon</State>
                     <PostalCode>223344</PostalCode>
                     <Country isoCountryCode="US">United States</Country>
                  </PostalAddress>
               </Contact>
            </InvoiceDetailShipping>
            <PaymentTerm payInNumberOfDays="30" />
            <Extrinsic name="CustomFields">
               <IdReference identifier="original_invoice_date" domain="CustomField">
                  <Description xml:lang="en">2014-08-06T11:45:51-07:00</Description>
               </IdReference>
            </Extrinsic>
            <Extrinsic name="CustomFields">
               <IdReference identifier="original_invoice" domain="CustomField">
                  <Description xml:lang="en">inv123112</Description>
               </IdReference>
            </Extrinsic>
         </InvoiceDetailRequestHeader>
         <InvoiceDetailOrder>
            <InvoiceDetailOrderInfo>
               <MasterAgreementReference>
                  <!-- payloadID is the Contract number -->
                  <DocumentReference payloadID="2200" />
               </MasterAgreementReference>
            </InvoiceDetailOrderInfo>
            <!-- First invoice quantity line. -->
            <InvoiceDetailItem invoiceLineNumber="1" quantity="1">
               <UnitOfMeasure>EA</UnitOfMeasure>
               <UnitPrice>
                  <Money currency="USD">100</Money>
               </UnitPrice>
               <InvoiceDetailItemReference lineNumber="1">
                  <Description xml:lang="en">Tortuga_Item01</Description>
               </InvoiceDetailItemReference>
               <SubtotalAmount>
                  <Money currency="USD">100</Money>
               </SubtotalAmount>
            </InvoiceDetailItem>
         </InvoiceDetailOrder>
         <InvoiceDetailSummary>
            <SubtotalAmount>
               <Money currency="USD">100</Money>
            </SubtotalAmount>
            <Tax>
               <Money currency="USD" alternateAmount="10" alternateCurrency="EUR">8</Money>
               <Description xml:lang="en">total tax</Description>
               <TaxDetail purpose="tax" category="Standard Rate" percentageRate="20" taxPointDate="2014-06-30T11:45:51-07:00">
                  <TaxableAmount>
                     <Money currency="USD">100</Money>
                  </TaxableAmount>
                  <TaxAmount>
                     <Money currency="USD">20</Money>
                  </TaxAmount>
                  <TaxLocation xml:lang="en">CA</TaxLocation>
               </TaxDetail>
            </Tax>
            <NetAmount>
               <Money currency="USD" />
            </NetAmount>
         </InvoiceDetailSummary>
      </InvoiceDetailRequest>
   </Request>
</cXML>

  • Was this article helpful?