Create a new theft case
POST /createTheftCase
Allow an external party to create a new theft case in the theft case portal.
Validations:
- The
integratorroute parameter is used to validate if the client has permission to create a theft case for that integrator. - The device and theft case will be created under the integrator’s organization.
- Object validation on the request body.
Webhook:
Every theft case can have a notification webhook URL. When a Theft Case has been resolved, the URL will be called with a POST-request containing all relevant data of the Theft Case.
When the webhook endpoint responds with a 420, 429 or 5xx, the webhook will be retried with a backoff strategy. Any other non-2xx status code will cause the webhook request to fail.
The webhook will be retried with a 2* multiplying backoff strategy. Every subsequent failure will be retried with a twice as long delay as the previous one. The maximum retry delay is 18 hours.
Webhook request body example:
{
"theft_case_id": <case_id>,
"theft_case_name": "<case_name>",
"status": {
"major":"found", //one of ["found", "not_found", "cancelled"]
"minor":"" //optional string with extra details
},
"resolved_at": <ISO8601>
}Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Example
https://example.com/webhook/caseidobject
Identifier for the device/vehicle that is unique in your entire system.
This ID must remain the same across all cases created for the same vehicle.
Example
3822a2fe-3b3e-4dc7-b3ad-ab91eaef1128object
VIN or frame number of the vehicle. Also used to retrieve/validate insurance info if possible
License plate of the vehicle if applicable
Brand name of the vehicle. Also used to retrieve/validate insurance info if possible
Model name of the vehicle
Any given name of the vehicle, could be the make and model concatenated
US English name of the primary color of the vehicle
object
Example
enraIdentifier for the insurance policy
Example
18619034object
Telephone number to contact the user on
A device type is used to differentiate between different devices and their capabilities.
This provides context for the Theft Case Portal to show specific information based on device functionality.
For instance; if a device supports WiFi-localisation, the Theft Case Portal will show contextual information based on the presence of WiFi related data.
These device types will be pre-determined.
Example
{integrator}:2Responses
Section titled “ Responses ”Theft case created
object
Bad Request
Unauthorized
Forbidden