ThinkLP
ThinkLP Case Management API

Cases

Serverhttps://your-org.my.salesforce.com/services/apexrest/ThinkLP

Investigation case management (theft, fraud) - maps to ThinkLP__Investigation__c


List Cases

GET
https://your-org.my.salesforce.com/services/apexrest/ThinkLP
/incidents

Retrieve cases with optional filtering (AND logic across all filters).

Date Filters (ISO 8601, open-ended ranges supported):

  • lastModifiedDateFrom / lastModifiedDateTo - Filter by LastModifiedDate
  • createdDateFrom / createdDateTo - Filter by CreatedDate
  • Formats: YYYY-MM-DD (date only) or YYYY-MM-DDTHH:mm:ssZ (full datetime)
  • Open-ended: Can specify only 'from' or only 'to' (or both)

Text Filters (exact match, case-sensitive):

  • incidentType - Incident type (e.g., "Theft", "Fraud")
  • investigationType - Investigation type (e.g., "External Theft")
  • status - Case status (e.g., "Open", "Closed")

Filter Combination: All filters are optional and combined with AND logic.

Example:

Code
?lastModifiedDateFrom=2025-10-01&status=Open&incidentType=Theft

Returns all Theft incidents with Open status modified on/after Oct 1, 2025.

List Cases › query Parameters

lastModifiedDateFrom
​string · date-time

Filter by LastModifiedDate >= (ISO 8601)

lastModifiedDateTo
​string · date-time

Filter by LastModifiedDate <= (ISO 8601)

createdDateFrom
​string · date-time

Filter by CreatedDate >= (ISO 8601)

createdDateTo
​string · date-time

Filter by CreatedDate <= (ISO 8601)

incidentType
​string

Exact match incident type (case-sensitive)

investigationType
​string

Exact match investigation type (case-sensitive)

status
​string

Exact match status (case-sensitive)

List Cases › Headers

API-Version
​string · required

API version

Default: 1.0

List Cases › Responses

List of cases (summary view)

Case summary returned in GET /incidents (list view)
id
​string · readOnly
incident_type
​string
investigation_type
​string
incident_number
​string · readOnly
location_number
​string

External identifier for Location (Account) via ThinkLP__Location_Number__c

location_id
​string · pattern: ^[a-zA-Z0-9]{15,18}$
narrative
​string · maxLength: 32000
status
​string
total_estimated_value
​number · readOnly

Calculated sum of all stolen items

incident_local_date
​DateOnly · date

Date in YYYY-MM-DD format (RFC3339 full-date)

incident_local_time
​TimeLocal · pattern: ^([01]\d|2[0-3]):[0-…

Local time in HH:MM:SS with optional milliseconds separated by a colon (e.g., "14:30:00" or "14:30:00:123"). No timezone suffix.

report_local_date
​DateOnly · date

Date in YYYY-MM-DD format (RFC3339 full-date)

report_local_time
​TimeLocal · pattern: ^([01]\d|2[0-3]):[0-…

Local time in HH:MM:SS with optional milliseconds separated by a colon (e.g., "14:30:00" or "14:30:00:123"). No timezone suffix.

police_department
​string · maxLength: 100
police_report_number
​string · maxLength: 25
police_officer_name
​string · maxLength: 50
concealment_method
​string
concealment_location
​string
uuid
​string · uuid · readOnly
last_modified_date
​DateTime · date-time · readOnly

ISO 8601 date-time (RFC3339)


Create Case

POST
https://your-org.my.salesforce.com/services/apexrest/ThinkLP
/incidents

Create case with optional nested persons/vehicles/items in single atomic request.

Create Case › Headers

API-Version
​string · required

API version

Default: 1.0
Source
​string · enum

Data source for special processing (e.g., FlockSafety)

Enum values:
FlockSafety

Create Case › Request Body

Case creation payload (POST /incidents). ## Field Categories **Read-Only Fields (Ignored if Sent):** - `incident_number` - AutoNumber field (format: `C-{number}`) - `total_estimated_value` - Roll-up from Case Items - `total_recovered_value` - Roll-up from recovered Case Items - Audit fields: `created_date`, `last_modified_date`, etc. **Date/Time Handling:** - Preferred: `incident_local_date` + `incident_local_time` (separate fields) - Alternative: `incident_date_time` (ISO 8601 combined) - Default: If only date provided, time = midnight **Record Type:** - Determined by the integration user's default Case record type - `record_type` is not accepted in the payload **Location Fields (Lookup Precedence):** - `location_number` - External identifier (for lookup) - `location_id` - Direct Salesforce ID - **Rule:** If both provided, `location_id` takes precedence **Value Fields:** - `initial_case_value` - Writable estimate at creation - Total case value auto-calculated from Case Items (read-only) **Extensibility:** Field mappings configured via Custom Metadata (`DomainMapping__mdt`). Additional fields beyond spec will be processed per your org's config.
incident_type
​string
investigation_type
​string
narrative
​string · maxLength: 32000
status
​string
location_number
​string

External identifier for Location

location_id
​string · pattern: ^[a-zA-Z0-9]{15,18}$
concealment_location
​string
concealment_method
​string
incident_local_date
​DateOnly · date

Date in YYYY-MM-DD format (RFC3339 full-date)

incident_local_time
​TimeLocal · pattern: ^([01]\d|2[0-3]):[0-…

Local time in HH:MM:SS with optional milliseconds separated by a colon (e.g., "14:30:00" or "14:30:00:123"). No timezone suffix.

report_local_date
​DateOnly · date

Date in YYYY-MM-DD format (RFC3339 full-date)

report_local_time
​TimeLocal · pattern: ^([01]\d|2[0-3]):[0-…

Local time in HH:MM:SS with optional milliseconds separated by a colon (e.g., "14:30:00" or "14:30:00:123"). No timezone suffix.

police_report_number
​string · maxLength: 25
police_department
​string · maxLength: 100
police_officer_name
​string · maxLength: 50
stage
​string · writeOnly

Case stage (accepted in POST/PATCH, never returned in GET)

source
​string · writeOnly

Case source (accepted in POST/PATCH, never returned in GET)

outcome
​string · writeOnly

Case outcome (accepted in POST/PATCH, never returned in GET)

incident_category
​string · writeOnly

Incident category (accepted in POST/PATCH, never returned in GET)

incident_location
​string · writeOnly

Incident location (accepted in POST/PATCH, never returned in GET)

initial_case_value
​number · writeOnly

Initial case value (accepted in POST/PATCH, never returned in GET)

total_recovered_value
​number · writeOnly

Total recovered value (accepted in POST/PATCH, never returned in GET)

incident_date_time
​DateTime · date-time · writeOnly

ISO 8601 date-time (RFC3339)

report_date_time
​DateTime · date-time · writeOnly

ISO 8601 date-time (RFC3339)

closed_date_time
​DateTime · date-time · writeOnly

ISO 8601 date-time (RFC3339)

police_officer_badge_number
​string · writeOnly

Police officer badge number (accepted in POST/PATCH, never returned in GET)

police_notified
​boolean · writeOnly

Whether police were notified (accepted in POST/PATCH, never returned in GET)

case_owner
​string · writeOnly

Case owner User/Queue Id (15/18 chars). If omitted, defaults to integration user.

investigator
​string · writeOnly

Investigator (accepted in POST/PATCH, never returned in GET)

priority
​string · writeOnly

Case priority (accepted in POST/PATCH, never returned in GET)

external_id
​string · writeOnly

External system ID (accepted in POST/PATCH, never returned in GET)

external_owner
​string · writeOnly

External owner (accepted in POST/PATCH, never returned in GET)

​CreatePerson[]
​CreateVehicle[]
​CreateItem[]

Create Case › Responses

Resource created successfully

success
​boolean
message
​string
id
​string
​object
​object

IDs of nested entities (if created)


Get Case

GET
https://your-org.my.salesforce.com/services/apexrest/ThinkLP
/incidents/{incidentId}

Retrieve case with all nested entities (persons, vehicles, items).

Get Case › path Parameters

incidentId
​string · pattern: ^[a-zA-Z0-9]{15,18}$ · required

Salesforce case ID (15/18 chars)

Get Case › Headers

API-Version
​string · required

API version

Default: 1.0

Get Case › Responses

Case with nested entities (detail view)

Case summary returned in GET /incidents (list view)
id
​string · readOnly
incident_type
​string
investigation_type
​string
incident_number
​string · readOnly
location_number
​string

External identifier for Location (Account) via ThinkLP__Location_Number__c

location_id
​string · pattern: ^[a-zA-Z0-9]{15,18}$
narrative
​string · maxLength: 32000
status
​string
total_estimated_value
​number · readOnly

Calculated sum of all stolen items

incident_local_date
​DateOnly · date

Date in YYYY-MM-DD format (RFC3339 full-date)

incident_local_time
​TimeLocal · pattern: ^([01]\d|2[0-3]):[0-…

Local time in HH:MM:SS with optional milliseconds separated by a colon (e.g., "14:30:00" or "14:30:00:123"). No timezone suffix.

report_local_date
​DateOnly · date

Date in YYYY-MM-DD format (RFC3339 full-date)

report_local_time
​TimeLocal · pattern: ^([01]\d|2[0-3]):[0-…

Local time in HH:MM:SS with optional milliseconds separated by a colon (e.g., "14:30:00" or "14:30:00:123"). No timezone suffix.

police_department
​string · maxLength: 100
police_report_number
​string · maxLength: 25
police_officer_name
​string · maxLength: 50
concealment_method
​string
concealment_location
​string
uuid
​string · uuid · readOnly
last_modified_date
​DateTime · date-time · readOnly

ISO 8601 date-time (RFC3339)

​PersonDetail[]
​VehicleDetail[]
​ItemDetail[]

Update Case

PATCH
https://your-org.my.salesforce.com/services/apexrest/ThinkLP
/incidents/{incidentId}

Partial update - only send fields to change. Omitted fields remain unchanged.

Null Handling: Send null to explicitly clear a field value. Nested Entities: To update persons/vehicles/items, use dedicated child endpoints.

Update Case › path Parameters

incidentId
​string · pattern: ^[a-zA-Z0-9]{15,18}$ · required

Salesforce case ID (15/18 chars)

Update Case › Headers

API-Version
​string · required

API version

Default: 1.0

Update Case › Request Body

Case update payload (PATCH /incidents/{id}). ## PATCH Semantics **Field Handling:** - **Omitted fields**: Preserved (not modified) - **Null values**: Clear the field (set to null in database) - **Provided values**: Update the field - **ReadOnly fields**: Ignored if sent (incident_number, total_estimated_value, audit fields) **Nested Entities:** To update persons/vehicles/items, use dedicated child endpoints (not supported in case PATCH). **Response:** Returns UpdatedResponse with id, attributes, success, message.
incident_type
​string
investigation_type
​string
narrative
​string · maxLength: 32000
status
​string
location_number
​string

External identifier for Location

location_id
​string · pattern: ^[a-zA-Z0-9]{15,18}$
concealment_location
​string
concealment_method
​string
incident_local_date
​DateOnly · date

Date in YYYY-MM-DD format (RFC3339 full-date)

incident_local_time
​TimeLocal · pattern: ^([01]\d|2[0-3]):[0-…

Local time in HH:MM:SS with optional milliseconds separated by a colon (e.g., "14:30:00" or "14:30:00:123"). No timezone suffix.

report_local_date
​DateOnly · date

Date in YYYY-MM-DD format (RFC3339 full-date)

report_local_time
​TimeLocal · pattern: ^([01]\d|2[0-3]):[0-…

Local time in HH:MM:SS with optional milliseconds separated by a colon (e.g., "14:30:00" or "14:30:00:123"). No timezone suffix.

police_report_number
​string · maxLength: 25
police_department
​string · maxLength: 100
police_officer_name
​string · maxLength: 50
stage
​string · writeOnly
source
​string · writeOnly
outcome
​string · writeOnly
incident_category
​string · writeOnly
incident_location
​string · writeOnly
initial_case_value
​number · writeOnly
total_recovered_value
​number · writeOnly
incident_date_time
​DateTime · date-time · writeOnly

ISO 8601 date-time (RFC3339)

report_date_time
​DateTime · date-time · writeOnly

ISO 8601 date-time (RFC3339)

closed_date_time
​DateTime · date-time · writeOnly

ISO 8601 date-time (RFC3339)

police_officer_badge_number
​string · writeOnly
police_notified
​boolean · writeOnly
case_owner
​string · writeOnly

Case owner User/Queue Id (15/18 chars). If omitted, defaults to integration user.

investigator
​string · writeOnly
priority
​string · writeOnly
external_id
​string · writeOnly
external_owner
​string · writeOnly

Update Case › Responses

Resource updated successfully

Response for successful PATCH operations. Returns the updated resource ID and attributes.
success
​boolean
message
​string
id
​string

ID of the updated resource

​object

Resource metadata