{
"UserPrefix": "string",
"UserFullName": "string",
"UserEmail": "string",
"ProfileCode": "string",
"IsSendNotification": "integer",
"NotificationEmail": "string",
"NotificationCustomMessage": "string",
"TimeFees": [
{
"FeesDate": "DateTime",
"FeesFileNumber": "string",
"FeesPrefix": "string",
"FeesLawyerCode": "string",
"FeesReference": "string",
"FeesCode": "string",
"FeesDescription": "string",
"FeesNetAmount": "decimal",
"Tax1Amount": "decimal",
"Tax2Amount": "decimal",
"FeesRate": "decimal",
"FeesHours": "decimal",
"FeesBillable": "boolean",
"FeesTaxable": "boolean",
"FeesUI": "string",
"FeesUpdDate": "DateTime?"
}
]
}
{
"RequestID": "integer",
"TotalRecords": "integer",
"TotalUpdated": "integer",
"TotalInserted": "integer",
"TotalErrors": "integer",
"TimeFees": [
{
"ID": "string",
"FeesDate": "DateTime",
"FeesFileNumber": "string",
"FeesPrefix": "string",
"FeesLawyerCode": "string",
"FeesReference": "string",
"FeesCode": "string",
"FeesDescription": "string",
"FeesNetAmount": "decimal",
"Tax1Amount": "decimal",
"Tax2Amount": "decimal",
"FeesRate": "decimal",
"FeesHours": "decimal",
"FeesBillable": "boolean",
"FeesTaxable": "boolean",
"FeesUI": "string",
"FeesUpdDate": "DateTime?",
"ImportNotes": "string",
"ImportStatus": "string"
}
]
}
crossDomain: true,
contentType: 'application/json; charset=utf-8',
dataType: 'json',
data: JSON.stringify(TimeFees),
headers: {
'Authorization': 'Bearer ' + apiKey,
'sd:' + subDomain,
'Content-Type': 'application/json'
}
var TimeFees =
{
"UserPrefix": "BS",
"UserFullName": "Brian Smith",
"UserEmail": "info@lawpractica.com",
"ProfileCode": "LP-DE",
"IsSendNotification": "0",
"NotificationEmail": "notification@example.com",
"NotificationCustomMessage": "This is a custom notification message",
"TimeFees": [
{
"FeesDate": "2024-01-10",
"FeesFileNumber": "12345",
"FeesPrefix" : "FEE-1",
"FeesLawyerCode": "",
"FeesReference": "",
"FeesCode": "0",
"FeesDescription": "Sample Fees one",
"FeesNetAmount": 220.00,
"Tax1Amount": 0.00,
"Tax2Amount": 0.00,
"FeesRate": 0.00,
"FeesHours": 0.00,
"FeesBillable": true,
"FeesTaxable": true,
"FeesUI": "1",
"FeesUpdDate": null
},
{
"FeesDate": "2024-01-11",
"FeesFileNumber": "45678",
"FeesPrefix" : "FEE-2",
"FeesLawyerCode": "",
"FeesReference": "",
"FeesCode": "0",
"FeesDescription": "Sample Fees two",
"FeesNetAmount": 200.00,
"Tax1Amount": 0.00,
"Tax2Amount": 0.00,
"FeesRate": 0.00,
"FeesHours": 0.00,
"FeesBillable": true,
"FeesTaxable": false,
"FeesUI": "2",
"FeesUpdDate": "2024-01-15T12:30:00"
}
]
}
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);
}