{
"UserPrefix": "string",
"UserFullName": "string",
"UserEmail": "string",
"ProfileCode": "string",
"IsSendNotification": "integer",
"NotificationEmail": "string",
"NotificationCustomMessage": "string",
"Clients": [
{
"FileNumber": "string",
"FileType": "string",
"FileDescription": "string",
"ClientType": "string",
"ClientFirstName": "string",
"ClientLastName": "string",
"ClientCorporation": "string",
"ClientTypeOfLaw": "string",
"ClientRespLawyer": "string",
"ClientAddress1": "string",
"ClientAddress2": "string",
"ClientCity": "string",
"ClientProvinceCode": "string",
"ClientPostalCode": "string",
"ClientCountryCode": "string",
"ClientHomePhone": "string",
"ClientWorkPhone": "string",
"ClientCell": "string",
"ClientFax": "string",
"ClientEmail": "string",
"ClientUI": "string",
"ClientUpdDate": "string (ISO 8601 format)",
"IsPrimaryToContact": "boolean"
}
]
}
{
"RequestID": "integer",
"TotalRecords": "integer",
"TotalUpdated": "integer",
"TotalInserted": "integer",
"TotalErrors": "integer",
"Clients": [
{
"ID": "string",
"FileNumber": "string",
"FileType": "string",
"FileDescription": "string",
"ClientType": "string",
"ClientFirstName": "string",
"ClientLastName": "string",
"ClientCorporation": "string",
"ClientTypeOfLaw": "string",
"ClientRespLawyer": "string",
"ClientAddress1": "string",
"ClientAddress2": "string",
"ClientCity": "string",
"ClientProvinceCode": "string",
"ClientPostalCode": "string",
"ClientCountryCode": "string",
"ClientHomePhone": "string",
"ClientWorkPhone": "string",
"ClientCell": "string",
"ClientFax": "string",
"ClientEmail": "string",
"ClientUI": "string",
"ClientUpdDate": "string",
"IsPrimaryToContact": "boolean",
"ImportNotes": "string",
"ImportStatus": "string"
}
]
}
crossDomain: true,
contentType: 'application/json; charset=utf-8',
dataType: 'json',
data: JSON.stringify(Clients),
headers: {
'Authorization': 'Bearer ' + apiKey,
'sd:' + subDomain,
'Content-Type': 'application/json'
}
var Clients =
{
"UserPrefix": "BS",
"UserFullName": "Brian Smith",
"UserEmail": "info@lawpractica.com",
"ProfileCode": "LP-DE",
"IsSendNotification": "0",
"NotificationEmail": "info@lawpractica.com",
"NotificationCustomMessage": "This is a custom notification message",
"Clients": [
{
"FileNumber": "ABCN",
"FileType": "P",
"FileDescription": "Matter description sample",
"ClientType": "B",
"ClientFirstName": "Brian",
"ClientLastName": "Smith",
"ClientCorporation": "xyz corp",
"ClientTypeOfLaw": "TLCode",
"ClientRespLawyer": "RLCode",
"ClientAddress1": "8192 Sample Street",
"ClientAddress2": "",
"ClientCity": "Vancouver",
"ClientProvinceCode": "BC",
"ClientPostalCode": "123 XYZ",
"ClientCountryCode": "CA",
"ClientHomePhone": "1800Home",
"ClientWorkPhone": "1800Work",
"ClientCell": "604Cell",
"ClientFax": "1718FAX",
"ClientEmail": "brian.smith@dd.com",
"ClientUI": "YourAppClientID1",
"ClientUpdDate": "2024-01-05T12:15:00",
"IsPrimaryToContact": true
},
{
"FileNumber": "12345",
"FileType": "P",
"FileDescription": "",
"ClientType": "S",
"ClientFirstName": "Sara",
"ClientLastName": "Brown",
"ClientCorporation": "",
"ClientTypeOfLaw": "TLCode",
"ClientRespLawyer": "RLCode",
"ClientAddress1": "92 Sample Street",
"ClientAddress2": "",
"ClientCity": "Vancouver",
"ClientProvinceCode": "BC",
"ClientPostalCode": "123 XYZ",
"ClientCountryCode": "CA",
"ClientHomePhone": "1800Home",
"ClientWorkPhone": "1800Work",
"ClientCell": "604Cell",
"ClientFax": "1718FAX",
"ClientEmail": "brian.smith@dd.com",
"ClientUI": "YourAppClientID2",
"ClientUpdDate": "2024-01-05T12:15:00",
"IsPrimaryToContact": false
}
]
}
200: function () {
console.log("200 - Success");
},
//when any of info not supplied (without json object(ajax) either in URL parameters)
400: function (request, status, error) {
alert(error);
},
//when any of supplied info is empty
411: function (request, status, error) {
alert(error);
},
//when the provided info is not invalid
422: function (request, status, error) {
alert(error);
},
500: function (request, status, error) {
alert(error);
}