API Get Case Items

The following endpoint can be used to retrieve all items that are in a specific case:

POST https://securelb.trackerproducts.com/api/cases/8854597/items

Body: { "orderBy":"PrimaryCaseNumber","orderByAsc":false,"pageSize":5,"pageNumber":1}



The body contains parameters that are used for customizing the returned results. These can be changed to suit your needs, but keep in mind the max number of items returned is 100 records. Also, note that the returned data contains a total count field so you will know how many items are in the case.

Here is an example of the returned data:


{

"entities": [

{

"checkoutReason": "Court",

"checkoutDate": "2020-10-01T19:43:09.9446627Z",

"checkoutTo": "Jack 3176D103FF Sparrow",

"checkoutExpectedReturnDate": "2020-10-01T19:42:00Z",

"checkoutNotes": "Test",

"disposalMethod": null,

"disposalDate": null,

"disposedBy": null,

"disposalUser": null,

"disposalNotes": null,

"witness": null,

"formDataParsed": [

{

"value": "123456",

"searchName": "816.field2765",

"customFormId": 816,

"customFormName": "Test 2",

"fieldName": null,

"fieldType": "text",

"name": "Test Item Form",

"text": null

},

{

"value": null,

"searchName": "816.field4995",

"customFormId": 816,

"customFormName": "Test 2",

"fieldName": null,

"fieldType": "text",

"name": "Test Textbox",

"text": null

}

],

"sequentialCaseId": "1",

"sequentialCaseIdNested": {

"section": 1,

"nested": null

},

"barcode": "1a0b2e4c-5e85-4ce0-825e-3514237e091b",

"description": "test import item 1",

"recoveryDate": "2020-03-05T17:00:00Z",

"recoveryLocation": "3224 Elm Street",

"recoveryLocationLatitude": null,

"recoveryLocationLongitude": null,

"active": true,

"locationId": null,

"location": "",

"fullLocation": "",

"lastLocationId": 15,

"lastLocation": "Shelf 1",

"statusId": 2,

"status": "Checked Out",

"categoryId": 31,

"category": null,

"custodyReasonId": 7,

"custodyReason": null,

"recoveredById": 0,

"recoveredBy": "",

"submittedById": 1,

"submittedBy": "Sparrow,Jack",

"custodianId": 1,

"custodian": "Jack 3176D103FF Sparrow",

"currentOfficeId": 1,

"currentOfficeName": "1 Office, LLC",

"primaryCaseId": 2934491,

"primaryCaseNumber": "2020-0604-01",

"primaryCaseOfficerId": 1,

"primaryCaseOfficer": "Sparrow,Jack",

"primaryCaseOffenseTypeId": 74,

"primaryCaseOffenseType": "Alcohol Related",

"isPrimaryCaseRestricted": false,

"make": null,

"model": null,

"serialNumber": null,

"creatingOrgId": 1,

"dateCreated": "2020-03-05T17:00:00Z",

"loaningOrgId": null,

"incomingOrgId": null,

"sequentialOrgId": 163050,

"cases": [

2934491

],

"caseModels": [],

"media": null,

"mediaAmount": 0,

"rootMediaFolderId": 0,

"formData": [

{

"id": "5ed92d5b98efcc0d087ef20b",

"active": true,

"entityId": 5250192,

"formId": 816,

"formName": "Test 2",

"dateFields": null,

"data": "{\"field2765\":\"123456\"}",

"organizationId": 1,

"officeId": 1,

"visibilityId": 1

}

],

"formDataAmount": 1,

"notes": [],

"notesAmount": 0,

"tags": [],

"tagsAmount": 0,

"barcodes": [],

"barcodesAmount": 0,

"id": 5250192,

"sqlId": 4912282,

"people": null,

"peopleIds": [],

"peopleNames": null,

"peopleGuids": null,

"parentItemId": null,

"parentItemDescription": null,

"parentSequentialOrgId": null,

"childItems": [],

"childItemsAmount": 0,

"tasks": [],

"tasksAmount": 0,

"historiesAmount": 0,

"checkoutReasonId": null,

"checkoutTakenById": null,

"checkedOutById": null,

"checkoutSignature": null,

"isNewItemCheckout": false,

"isForbidden": false

}

],


"totalCount": 18

}