GET
/
datasets
/
companies
/
{companyId}
/
se
/
vehicles-history-owner
curl --request GET \
  --url https://api.tic.io/datasets/companies/{companyId}/se/vehicles-history-owner \
  --header 'x-api-key: <api-key>'
[
  {
    "vehicleId": 123,
    "licencePlate": "<string>",
    "vehicleType": "<string>",
    "vehicleName": "<string>",
    "tradeName": "<string>",
    "modelYear": 123,
    "vehicleYear": 123,
    "colorSwedish": "<string>",
    "vin": "<string>",
    "currentOwnerCompanyId": 123,
    "currentOwnerCompanyRegistrationNumber": "<string>",
    "currentOwnerCompanyLegalName": "<string>",
    "currentUserCompanyId": 123,
    "currentUserCompanyRegistrationNumber": "<string>",
    "currentUserCompanyLegalName": "<string>",
    "eventStartDate": "2023-11-07T05:31:56Z",
    "eventEndDate": "2023-11-07T05:31:56Z"
  }
]

Returns a list of vehicles that company has been an owner or user of. History up to about 3 years in time. Vehicles are returned in the order of when the last owner change from the company occured. The intention of the endpoint is to quickly get an overview of any vehicles that may have been sold or transferred to other parties for example prior to a bankruptcy event.

Therfore only maximum 1000 history owned or used vehicles are returned in the response.

EventStartDate and EventEndDate

The fields EventStartDate and EventEndDate represents that last duration when the company was the owner or user of the vehicle. This means for example with the following json response:

Example response
{
[
    {
        "vehicleId": 1,
        "licencePlate": "XXX000",
        "vehicleType": "SLÄP",
        "vehicleName": "ABC",
        "tradeName": null,
        "modelYear": 2008,
        "vehicleYear": 2008,
        "colorSwedish": "VIT",
        "vin": "123",
        "currentOwnerCompanyId": 123,
        "currentOwnerCompanyRegistrationNumber": "This is the current company registered as owner",
        "currentOwnerCompanyLegalName": "XXX",
        "currentUserCompanyId": 123,
        "currentUserCompanyRegistrationNumber": null,
        "currentUserCompanyLegalName": "This is the company currentley using the vehicle",
        "eventStartDate": "2023-08-02T00:00:00",
        "eventEndDate": "2025-01-22T00:00:00"
    },

This means that the company you are requesting date for was an owner or user of the vehicle between 2023-08-02, e.g eventStartDate, and 2025-01-22, e.g eventEndDate.

Authorizations

x-api-key
string
header
required

Path Parameters

companyId
integer
required

The company id

Response

200
application/json

OK

The response is of type object[].