Click or drag to resize

IUCJsonContactCreate Method

Create new Member Contact

Namespace: LSOmni.Service
Assembly: LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2026.8.0
Syntax
C#
MemberContact ContactCreate(
	MemberContact contact,
	bool doLogin
)

Parameters

contact  MemberContact
contact
doLogin  Boolean
Perform Login after Create, this will return full Contact object with all information. If false, only contact, card, account ids are returned.

Return Value

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

Contact will get new Card that should be used when dealing with Orders. Card Id is the unique identifier for Contacts in LS 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 Central and can be found in CU 99009001.

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