# Insert client

Inserts a client and returns client number
* **storecode** is the storecode of the store location
* **empNo** is the employee number of the employee inserting the client

Endpoint: POST /slapi/clients/insert
Version: 0.0.1
Security: BasicAuthCredentials

## Security:

  - `BasicAuthCredentials` (unknown)
    http basic

## Request fields (application/json):

  - `firstName` (string)
    Example: John

  - `lastName` (string)
    Example: Doe

  - `middleInit` (string)
    Example: D

  - `address1` (string)
    Example: 1 Main st

  - `address2` (string)
    Example: Suite 10

  - `city` (string)
    Example: Buffalo

  - `state` (string)
    Example: NY

  - `zip` (string)
    Example: 14220

  - `homePhone` (string)
    Example: 7165551234

  - `workPhone` (string)
    Example: 7165555678

  - `cellPhone` (string)
    Example: 7165550987

  - `email` (string)
    Example: test@test.com

  - `dob` (string)
    Example: 1980-12-25

  - `storecode` (string)
    Example: 0000000001

  - `empNo` (string)
    Example: 0000000001

  - `gender` (string)
    Example: female

  - `doNotSolicit` (integer)
    Example: 0

  - `emailCommPref` (integer)
    Example: 1

  - `cellVoiceCommPref` (integer)
    Example: 1

  - `cellTextCommPref` (integer)
    Example: 1

  - `homePhoneCommPref` (integer)
    Example: 1

  - `mailCommPref` (integer)
    Example: 1

  - `workPhoneCommPref` (integer)
    Example: 1

  - `skinType` (string)
    Example: 0000000001

  - `howHear` (string)
    Example: Online

## Response 201:

  - `201` (unknown)
    Inserts a client

## Response 201 fields (applicaiton/json):

  - `clientNumber` (string)
    Example: 0000000001

  - `message` (string)

## Response 400:

  - `400` (unknown)
    Client already exists

## Response 400 fields (applicatoin/json):

  - `error` (string)

  - `message` (string)

