Click or drag to resize

IUCJsonContactUpdate 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
Sample request including minimum data needed to be able to process the request in LS Commerce
REST Sample Request
{
  "contact": {
    "Id": "MO000012",
    "Addresses": [{
      "Address1": "Santa Monica",
      "CellPhoneNumber": "555-5551",
      "City": "Hollywood",
      "Country": "US",
      "PhoneNumber": "666-6661",
      "PostCode": "1001",
      "StateProvinceRegion": "",
      "Type": "0"
    }],
    "Cards": [{
      "Id": "10033"
    }],
    "Email": "Sarah@Hollywood.com",
    "FirstName": "Sarah",
    "Gender": "2",
    "Initials": "Ms",
    "LastName": "Parker",
    "MaritalStatus": "0",
    "MiddleName": "",
    "Name": "Sarah Parker",
    "Password": "SxxInTheCity",
    "UserName": "sarah"
  }
}
See Also