Click or drag to resize

IUCServiceContactUpdate Method

Update Member Contact

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2024.6
Syntax
C#
MemberContact ContactUpdate(
	MemberContact contact,
	bool getContact
)

Parameters

contact
Type: LSRetail.Omni.Domain.DataModel.Loyalty.MembersMemberContact
contact
getContact
Type: SystemBoolean
Return contact object filled out after Update

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
LS Central WS2 : MemberContactUpdate

Contact Id, User name 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 Central

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

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">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:ContactUpdate>
         <ser:contact>
            <ns:Id>MO000012</ns:Id>
            <ns1:Addresses>
               <ns:Address>
                  <ns:Address1>Santa Monica</ns:Address1>
                  <ns:CellPhoneNumber>555-5551</ns:CellPhoneNumber>
                  <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:Cards>
               <ns:Card>
                  <ns:Id>10027</ns:Id>
               </ns:Card>
            </ns1:Cards>
            <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:UserName>sarah</ns1:UserName>
         </ser:contact>
      </ser:ContactUpdate>
   </soapenv:Body>
</soapenv:Envelope>
See Also