Click or drag to resize

IeCommerceServiceContactUpdate Method

Update a contact

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: LS Omni 3.7.0
Syntax
C#
MemberContact ContactUpdate(
	MemberContact contact
)

Parameters

contact
Type: LSRetail.Omni.Domain.DataModel.Loyalty.MembersMemberContact
contact

Return Value

Type: MemberContact
Contact
Exceptions
ExceptionCondition
LSOmniServiceExceptionStatusCodes returned:
  • StatusCode.Error
  • StatusCode.SecurityTokenInvalid
  • StatusCode.UserNotLoggedIn
  • StatusCode.DeviceIsBlocked
  • StatusCode.AccessNotAllowed
  • StatusCode.ParameterInvalid
  • StatusCode.EmailInvalid
  • StatusCode.ContactIdNotFound
Remarks
Nav/Central WS: MM_MOBILE_CONTACT_UPDATE

Contact Id, Username and EMail are required values for the update command to work.

Any field left out or sent in empty will wipe out that information. Always fill out all Name field, Address and phone number even if it has not changed so it will not be wiped out from LS Nav/Central

Examples
This Sample request can be used in SOAP UI application to send request to OMNI.

Include minimum data needed to be able to process the request

SOAP Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://lsretail.com/LSOmniService/EComm/2017/Service" xmlns:ns="http://lsretail.com/LSOmniService/Base/2017" xmlns:ns1="http://lsretail.com/LSOmniService/Loy/2017" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:ContactUpdate>
         <ser:contact>
            <ns:Id>MO000012</ns:Id>
            <ns1:Addresses>
               <ns:Address>
                  <ns:Address1>Santa Monica</ns:Address1>
                  <ns:City>Hollywood</ns:City>
                  <ns:Country>US</ns:Country>
                  <ns:PostCode>1001</ns:PostCode>
                  <ns:StateProvinceRegion></ns:StateProvinceRegion>
                  <ns:Type>Residential</ns:Type>
               </ns:Address>
            </ns1:Addresses>
            <ns1:Email>Sarah@Hollywood.com</ns1:Email>
            <ns1:FirstName>Sarah</ns1:FirstName>
            <ns1:Gender>Female</ns1:Gender>
            <ns1:Initials>Ms</ns1:Initials>
            <ns1:LastName>Parker</ns1:LastName>
            <ns1:MiddleName></ns1:MiddleName>
            <ns1:MobilePhone>555-5551</ns1:MobilePhone>
            <ns1:UserName>sarah</ns1:UserName>
         </ser:contact>
      </ser:ContactUpdate>
   </soapenv:Body>
</soapenv:Envelope>
See Also