Add a New Site Use to an Existing Customer Site

In this use case, we'll add a new site use to an existing customer site.

Operation: mergeAccount

Request Body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/applicationModule/types/" xmlns:cus="http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/" xmlns:cus1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountContactRole/" xmlns:par="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:sour="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/sourceSystemRef/" xmlns:cus2="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountContact/" xmlns:cus3="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountRel/" xmlns:cus4="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountSiteUse/" xmlns:cus5="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountSite/" xmlns:cus6="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccount/">
<soapenv:Header/>
  <soapenv:Body>
     <typ:mergeCustomerAccount>
        <typ:customerAccount>
           <cus:CustomerAccountId>300100590899663</cus:CustomerAccountId>
           <cus:CustomerAccountSite>
              <cus:CustomerAccountSiteId>300100590899664</cus:CustomerAccountSiteId>
              <cus:SetId>202</cus:SetId>
			  <cus:CreatedByModule>HZ_WS</cus:CreatedByModule>
              <cus:CustomerAccountSiteUse>
                 <cus:SiteUseCode>SHIP_TO</cus:SiteUseCode>
				 <cus:Location>CDRM_199390</cus:Location>
                <cus:CreatedByModule>HZ_WS</cus:CreatedByModule>
              </cus:CustomerAccountSiteUse>
           </cus:CustomerAccountSite>
        </typ:customerAccount>
     </typ:mergeCustomerAccount>
  </soapenv:Body>
</soapenv:Envelope>

Response Body

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <env:Header>
      <wsa:Action>http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/applicationModule/CustomerAccountService/mergeCustomerAccountResponse</wsa:Action>
      <wsa:MessageID>urn:uuid:5fa14092-53c2-4fbd-bb58-37fd39e48349</wsa:MessageID>
   </env:Header>
   <env:Body>
      <ns0:mergeCustomerAccountResponse xmlns:ns0="http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/applicationModule/types/">
         <ns0:result xsi:type="ns2:CustomerAccountResult" xmlns:ns4="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:ns9="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccount/" xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/parties/customerAccountService/" xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/" xmlns:ns1="http://xmlns.oracle.com/adf/svc/types/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ns2:Value>
               <ns2:CustomerAccountId>300100590899663</ns2:CustomerAccountId>
               <ns2:PartyId>1003</ns2:PartyId>
               <ns2:LastUpdateDate>2022-03-18T11:18:31.284Z</ns2:LastUpdateDate>
               <ns2:AccountNumber>CDRM_233288</ns2:AccountNumber>
               <ns2:LastUpdatedBy>FUSION</ns2:LastUpdatedBy>
               <ns2:CreationDate>2022-03-18T11:18:29.002Z</ns2:CreationDate>
               <ns2:CreatedBy>FUSION</ns2:CreatedBy>
               <ns2:LastUpdateLogin>DA278437F279FFF9E053D711F10A3522</ns2:LastUpdateLogin>
               <ns2:RequestId xsi:nil="true"/>
               <ns2:OrigSystem xsi:nil="true"/>
               <ns2:OrigSystemReference>300100590899663</ns2:OrigSystemReference>
               <ns2:Status>A</ns2:Status>
               <ns2:CustomerType xsi:nil="true"/>
               <ns2:CustomerClassCode xsi:nil="true"/>
               <ns2:TaxCode xsi:nil="true"/>
               <ns2:TaxHeaderLevelFlag xsi:nil="true"/>
               <ns2:TaxRoundingRule xsi:nil="true"/>
               <ns2:CoterminateDayMonth xsi:nil="true"/>
               <ns2:AccountEstablishedDate>2022-03-18</ns2:AccountEstablishedDate>
               <ns2:AccountTerminationDate>4712-12-31</ns2:AccountTerminationDate>
               <ns2:HeldBillExpirationDate xsi:nil="true"/>
               <ns2:HoldBillFlag>false</ns2:HoldBillFlag>
               <ns2:AccountName xsi:nil="true"/>
               <ns2:DepositRefundMethod xsi:nil="true"/>
               <ns2:NpaNumber xsi:nil="true"/>
               <ns2:SourceCode xsi:nil="true"/>
               <ns2:Comments xsi:nil="true"/>
               <ns2:DateTypePreference xsi:nil="true"/>
               <ns2:ArrivalsetsIncludeLinesFlag xsi:nil="true"/>
               <ns2:StatusUpdateDate xsi:nil="true"/>
               <ns2:AutopayFlag xsi:nil="true"/>
               <ns2:LastBatchId xsi:nil="true"/>
               <ns2:CreatedByModule>HZ_WS</ns2:CreatedByModule>
               <ns2:SellingPartyId xsi:nil="true"/>
               <ns2:CustomerAccountSite xmlns:ns7="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountSite/">
                  <ns2:CustomerAccountSiteId>300100590899664</ns2:CustomerAccountSiteId>
                  <ns2:CustomerAccountId>300100590899663</ns2:CustomerAccountId>
                  <ns2:PartySiteId>300100590899661</ns2:PartySiteId>
                  <ns2:LastUpdateDate>2022-03-18T11:23:54.278Z</ns2:LastUpdateDate>
                  <ns2:LastUpdatedBy>FUSION</ns2:LastUpdatedBy>
                  <ns2:CreationDate>2022-03-18T11:18:29.055Z</ns2:CreationDate>
                  <ns2:CreatedBy>FUSION</ns2:CreatedBy>
                  <ns2:LastUpdateLogin>DA27851EB6140001E053D711F10A4C92</ns2:LastUpdateLogin>
                  <ns2:RequestId xsi:nil="true"/>
                  <ns2:OrigSystemReference>300100590899664</ns2:OrigSystemReference>
                  <ns2:Status>A</ns2:Status>
                  <ns2:BillToIndicator>P</ns2:BillToIndicator>
                  <ns2:MarketIndicator>N</ns2:MarketIndicator>
                  <ns2:ShipToIndicator>P</ns2:ShipToIndicator>
                  <ns2:CustomerCategoryCode xsi:nil="true"/>
                  <ns2:Language xsi:nil="true"/>
                  <ns2:KeyAccountFlag xsi:nil="true"/>
                  <ns2:TpHeaderId xsi:nil="true"/>
                  <ns2:EceTpLocationCode xsi:nil="true"/>
                  <ns2:TranslatedCustomerName xsi:nil="true"/>
                  <ns2:CreatedByModule>HZ_WS</ns2:CreatedByModule>
                  <ns2:SetId>202</ns2:SetId>
                  <ns2:StartDate>2022-03-18</ns2:StartDate>
                  <ns2:EndDate>4712-12-31</ns2:EndDate>
                  <ns2:SetCode>Vision Corporation 202</ns2:SetCode>
                  <ns2:CustomerAccountSiteUse xmlns:ns6="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountSiteUse/">
                     <ns2:SiteUseId>300100590899666</ns2:SiteUseId>
                     <ns2:CustomerAccountSiteId>300100590899664</ns2:CustomerAccountSiteId>
                     <ns2:LastUpdateDate>2022-03-18T11:23:53.096Z</ns2:LastUpdateDate>
                     <ns2:LastUpdatedBy>FUSION</ns2:LastUpdatedBy>
                     <ns2:CreationDate>2022-03-18T11:23:53.001Z</ns2:CreationDate>
                     <ns2:CreatedBy>FUSION</ns2:CreatedBy>
                     <ns2:SiteUseCode>SHIP_TO</ns2:SiteUseCode>
                     <ns2:PrimaryFlag>true</ns2:PrimaryFlag>
                     <ns2:Status>A</ns2:Status>
                     <ns2:Location>CDRM_199390</ns2:Location>
                     <ns2:LastUpdateLogin>DA27851EB6140001E053D711F10A4C92</ns2:LastUpdateLogin>
                     <ns2:BillToSiteUseId xsi:nil="true"/>
                     <ns2:OrigSystemReference>300100590899666</ns2:OrigSystemReference>
                     <ns2:SICCode xsi:nil="true"/>
                     <ns2:PaymentTermId xsi:nil="true"/>
                     <ns2:GSAIndicator xsi:nil="true"/>
                     <ns2:TerritoryId xsi:nil="true"/>
                     <ns2:RequestId xsi:nil="true"/>
                     <ns2:TaxReference xsi:nil="true"/>
                     <ns2:SortPriority xsi:nil="true"/>
                     <ns2:TaxCode xsi:nil="true"/>
                     <ns2:SecondLastAccrueChargeDate xsi:nil="true"/>
                     <ns2:LastAccrueChargeDate xsi:nil="true"/>
                     <ns2:LastUnaccrueChargeDate xsi:nil="true"/>
                     <ns2:SecondLastUnaccrueChrgDate xsi:nil="true"/>
                     <ns2:TaxHeaderLevelFlag xsi:nil="true"/>
                     <ns2:FinchrgReceivablesTrxId xsi:nil="true"/>
                     <ns2:TaxRoundingRule xsi:nil="true"/>
                     <ns2:TaxClassification xsi:nil="true"/>
                     <ns2:CreatedByModule>HZ_WS</ns2:CreatedByModule>
                     <ns2:SetId>202</ns2:SetId>
                     <ns2:EndDate>4712-12-31</ns2:EndDate>
                     <ns2:StartDate>2022-03-18</ns2:StartDate>
                  </ns2:CustomerAccountSiteUse>
               </ns2:CustomerAccountSite>
            </ns2:Value>
         </ns0:result>
      </ns0:mergeCustomerAccountResponse>
   </env:Body>
</env:Envelope>