Click or drag to resize

IeCommerceJsonContactCreate Method

Create a new contact

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

Parameters

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

Return Value

Type: MemberContact
Contact
Exceptions
ExceptionCondition
LSOmniServiceExceptionStatusCodes returned:
  • StatusCode.Error
  • StatusCode.UserNamePasswordInvalid
  • StatusCode.PasswordInvalid
  • StatusCode.EmailInvalid
  • StatusCode.UserNameInvalid
  • StatusCode.UserNameExists
  • StatusCode.MissingLastName
  • StatusCode.MissingFirstName
  • StatusCode.AccountNotFound
Remarks
Nav/Central WS: MM_MOBILE_CONTACT_CREATE

Contact will get new Card that should be used when dealing with Orders. Card Id is the unique identifier for Contacts in LS Nav/Central

Contact will be assigned to a Member Account. Member Account has Club and Club has Scheme level.

If No Account is provided, New Account will be created. If No Club level for the Account is set, then default Club and Scheme level will be set.

Valid UserName, Password and Email address is determined by LS Nav/Central and can be found in CU 99009001.

Examples
Sample request including minimum data needed to be able to process the request in OMNI
REST Sample Request
{
  "contact": {
    "Id": "",
    "Account": {
      "Id": "",
      "Scheme": {
        "Id": "",
        "Club": {
          "Id": "CRONUS"
        }
      }
    },
    "Addresses": [{
      "Address1": "Santa Monica",
      "City": "Hollywood",
      "Country": "US",
      "PostCode": "1001",
      "StateProvinceRegion": "",
      "Type": "0"
        }],
    "Email": "Sarah@Hollywood.com",
    "FirstName": "Sarah",
    "Gender": "2",
    "Initials": "Ms",
    "LastName": "Parker",
    "MaritalStatus": "0",
    "MiddleName": "",
    "MobilePhone": "555-5551",
    "Name": "Sarah Parker",
    "Password": "SxxInTheCity",
    "Phone": "666-6661",
    "UserName": "sarah"
  }
}
See Also