Skip to content

Insert client

Request

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
Security
BasicAuthCredentials
Bodyapplication/json
firstNamestring
Example:"John"
lastNamestring
Example:"Doe"
middleInitstring
Example:"D"
address1string
Example:"1 Main st"
address2string
Example:"Suite 10"
citystring
Example:"Buffalo"
statestring
Example:"NY"
zipstring
Example:"14220"
homePhonestring
Example:"7165551234"
workPhonestring
Example:"7165555678"
cellPhonestring
Example:"7165550987"
emailstring
Example:"test@test.com"
dobstring, (date)
Example:"1980-12-25"
storecodestring
Example:"0000000001"
empNostring
Example:"0000000001"
genderstring
Example:"female"
doNotSolicitinteger
Example:0
emailCommPrefinteger
Example:1
cellVoiceCommPrefinteger
Example:1
cellTextCommPrefinteger
Example:1
homePhoneCommPrefinteger
Example:1
mailCommPrefinteger
Example:1
workPhoneCommPrefinteger
Example:1
skinTypestring
Example:"0000000001"
howHearstring
Example:"Online"
curl -i -X POST \
  -u '<username>:<password>' \
  http://sandbox.sunlync.net:9000/slapi/clients/insert \
  -H 'Content-Type: application/json' \
  -d '{
    "firstName": "John",
    "lastName": "Doe",
    "middleInit": "D",
    "address1": "1 Main st",
    "address2": "Suite 10",
    "city": "Buffalo",
    "state": "NY",
    "zip": "14220",
    "homePhone": "7165551234",
    "workPhone": "7165555678",
    "cellPhone": "7165550987",
    "email": "test@test.com",
    "dob": "1980-12-25",
    "storecode": "0000000001",
    "empNo": "0000000001",
    "gender": "female",
    "doNotSolicit": 0,
    "emailCommPref": 1,
    "cellVoiceCommPref": 1,
    "cellTextCommPref": 1,
    "homePhoneCommPref": 1,
    "mailCommPref": 1,
    "workPhoneCommPref": 1,
    "skinType": "0000000001",
    "howHear": "Online"
  }'

Responses

Inserts a client

Bodyapplication/json
clientNumberstring
Example:"0000000001"
messagestring
Example:""
Response
{ "clientNumber": "0000000001", "message": "" }