API Example Create Person

API URL

https://securelb.trackerproducts.com/api/people

The Safe system, for Persons, is built on the premise of a Unique Person. We want, if possible, to avoid having multiple people in the system that are actually the same person. Before submitting a new Person, you should check to see if that person is already in the system. See notes below for 'Duplicate Persons Detection'


Fields used in Post

Example JSON For Adding A Person


{"person":

       {

       "id":0,

       "businessName":"Tracker Products",

       "firstName":"Bob",

       "middleName":"Edward",

       "lastName":"Smith",

       "alias":"Big Bob",

       "mobilePhone":"123-456-7890",

       "otherPhone":"987-654-3210",

       "email":"bigbobsmith@trackerproducts.com",

       "driverLicence":"",

       "raceId":1,

       "genderId":2,

       "dob":"1960-07-07T00:00:00.000Z",

       "active":true,

       "deceased":true,

       "juvenile":true,

       "notes":[],

       "addresses":[],

       "formData":[],

       "personTypeId":null

       },

"address":

       {

       "id":0,

       "date":"2017-12-04T20:35:33.125Z",

       "entityId":0,

       "line1":"1 Symphony Way",

       "line2":"",

       "city":"Vienna",

       "zip":"1001",

       "stateId":"",

       "addressTypeId":1,

       "countryId":231,

       "isDefaultAddress":true

       }

}

Duplicate Person Detection

When submitting a Person via POST, we are doing a check for potential duplicate people in the system. We check the following fields to determine if a potential duplicate exists:

Driver's License

Business Name

Duplicate Name (FirstName LastName)

If when posting a Person that is considered a duplicate, you will get this response.

At this point you can do one of two things:

Person Post With Custom Form Data


When creating a new person in the system, a post can also include custom form data. Here is an example post of a person with a custom form: 

POST Person With Form Data

Add Person to Case after Submit

To Add the Person submitted to an Existing Case, take the ID returned in the Person Post and go to Attach Existing Person to Existing Case