How do I update bill to site address?
In this use case, we'll update the Bill-To Site address for situations when the ship-to and bill-to address are different.
Operation: mergeCustomer
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>6666</cus:CustomerAccountId> <cus:CustomerAccountSite> <cus:CustomerAccountSiteId>7088</cus:CustomerAccountSiteId> <cus:CustomerAccountSiteUse> <cus:SiteUseId>8237</cus:SiteUseId> <cus:BillToSiteUseId>8236</cus:BillToSiteUseId> </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:af18c21b-901d-412e-8fbd-f0756132d7f0</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:ns10="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccount/" xmlns:ns11="http://xmlns.oracle.com/apps/flex/cdm/foundation/parties/custAccountGdf/" 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>6666</ns2:CustomerAccountId> <ns2:PartyId>39332</ns2:PartyId> <ns2:LastUpdateDate>2003-11-18T12:32:12Z</ns2:LastUpdateDate> <ns2:AccountNumber>3500</ns2:AccountNumber> <ns2:LastUpdatedBy>1001530</ns2:LastUpdatedBy> <ns2:CreationDate>2003-11-18T12:32:12Z</ns2:CreationDate> <ns2:CreatedBy>1001530</ns2:CreatedBy> <ns2:LastUpdateLogin>2422191</ns2:LastUpdateLogin> <ns2:RequestId xsi:nil="true"/> <ns2:OrigSystem xsi:nil="true"/> <ns2:OrigSystemReference>6666</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>2003-11-18</ns2:AccountEstablishedDate> <ns2:AccountTerminationDate>4712-12-31</ns2:AccountTerminationDate> <ns2:HeldBillExpirationDate xsi:nil="true"/> <ns2:HoldBillFlag>false</ns2:HoldBillFlag> <ns2:AccountName>w_cw, Inc.</ns2:AccountName> <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>ASO_CUSTOMER_DATA</ns2:CreatedByModule> <ns2:SellingPartyId xsi:nil="true"/> <ns2:CustomerAccountSite xmlns:ns7="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountSite/" xmlns:ns8="http://xmlns.oracle.com/apps/flex/cdm/foundation/parties/custAccountSiteGdf/"> <ns2:CustomerAccountSiteId>7088</ns2:CustomerAccountSiteId> <ns2:CustomerAccountId>6666</ns2:CustomerAccountId> <ns2:PartySiteId>18255</ns2:PartySiteId> <ns2:LastUpdateDate>2003-11-18T12:32:12Z</ns2:LastUpdateDate> <ns2:LastUpdatedBy>1001530</ns2:LastUpdatedBy> <ns2:CreationDate>2003-11-18T12:32:12Z</ns2:CreationDate> <ns2:CreatedBy>1001530</ns2:CreatedBy> <ns2:LastUpdateLogin>2422191</ns2:LastUpdateLogin> <ns2:RequestId xsi:nil="true"/> <ns2:OrigSystemReference>7088</ns2:OrigSystemReference> <ns2:Status>A</ns2:Status> <ns2:BillToIndicator>Y</ns2:BillToIndicator> <ns2:MarketIndicator xsi:nil="true"/> <ns2:ShipToIndicator>Y</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>ASO_CUSTOMER_DATA</ns2:CreatedByModule> <ns2:SetId>204</ns2:SetId> <ns2:StartDate>1951-01-01</ns2:StartDate> <ns2:EndDate>4712-12-31</ns2:EndDate> <ns2:SetCode>Vision Operations 204</ns2:SetCode> <ns2:CustomerAccountSiteUse xmlns:ns6="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/custAccountSiteUse/"> <ns2:SiteUseId>8237</ns2:SiteUseId> <ns2:CustomerAccountSiteId>7088</ns2:CustomerAccountSiteId> <ns2:LastUpdateDate>2004-09-10T11:12:24Z</ns2:LastUpdateDate> <ns2:LastUpdatedBy>1001530</ns2:LastUpdatedBy> <ns2:CreationDate>2003-11-18T12:32:12Z</ns2:CreationDate> <ns2:CreatedBy>1001530</ns2:CreatedBy> <ns2:SiteUseCode>SHIP_TO</ns2:SiteUseCode> <ns2:PrimaryFlag>true</ns2:PrimaryFlag> <ns2:Status>A</ns2:Status> <ns2:Location>8237</ns2:Location> <ns2:LastUpdateLogin>2828607</ns2:LastUpdateLogin> <ns2:BillToSiteUseId>8236</ns2:BillToSiteUseId> <ns2:OrigSystemReference>8237</ns2:OrigSystemReference> <ns2:SICCode xsi:nil="true"/> <ns2:PaymentTermId xsi:nil="true"/> <ns2:GSAIndicator>N</ns2:GSAIndicator> <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>ASO_CUSTOMER_DATA</ns2:CreatedByModule> <ns2:SetId>204</ns2:SetId> <ns2:EndDate>4712-12-31</ns2:EndDate> <ns2:StartDate>1951-01-01</ns2:StartDate> </ns2:CustomerAccountSiteUse> </ns2:CustomerAccountSite> </ns2:Value> </ns0:result> </ns0:mergeCustomerAccountResponse> </env:Body> </env:Envelope>