TIC
Pro+ tier
POSThttps://lens-api.tic.io/companies/{id}/vehicles/history

Returns the company’s ended registrations on vehicles, one row per registration period as owner (ägare) or user (brukare), newest end date first. A vehicle the company held twice appears twice. The current registrations are in vehicles now, and the whole list as a file in the CSV export.

The request body is the grid request described in Pagination. Each row has the columns below and the period: periodStartDate and periodEndDate, with isCurrent false.

Columns

Sort and filter on these field names.

Field Description
registreringsnummer The registration number
namn Make and model as shown, from fordonsbenamning and handelsbeteckning
arsmodell, fordonsar Model year and vehicle year
fordonsslagsklassOchBeskrivning The vehicle class
fordonsstatusKodBeskrivning The vehicle’s status, for example in traffic or deregistered
isOwner, isUser Whether the company is registered as owner (ägare), as user (brukare) or both
agareNamn, brukareNamn, antalBrukare The owner, the user and the number of users
agareIntelligenceScoreTotal, brukareIntelligenceScoreTotal The owner’s and the user’s risk indicator scores
forvarvsdatum When the vehicle was acquired
leasing, kreditkop Whether the vehicle is leased or bought on credit
forsakringsbolag, forsakringsbolagBeskrivning The insurer, as the vehicle register’s code and the insurer’s name. Sort and filter on the code
forsakringsform The form of insurance, as the vehicle register’s code
isStolen Whether the vehicle is reported stolen
mileageKm, mileageDate The latest odometer reading and its date

Authorization

x-api-keystringheaderrequired

Your API key, sent in the x-api-key header.

Path parameters

idintegerrequired

Internal company ID

format: int32

Bodyapplication/json

startRowinteger

Zero-based index of the first row of the page: 0, then the answer's nextStartRow

format: int32

endRowinteger

One past the last row of the page: the page has endRow - startRow rows, or 100 when endRow is left out or not above startRow

format: int32

rowGroupColsRowGroupModel[] | null
Hide child attributes
idstring | null
displayNamestring | null
fieldstring | null
groupKeysstring[] | null
filterModelFilterModel[] | null
Hide child attributes
columnNamestring | null
columnNameWithAliasstring | nullread-only
filterTypestring | null
sortModelSortModel[] | null
Hide child attributes
sortstring

One of: asc desc

colIdstring | null

Responses

AG Grid page of CompanyVehicleGrid_Dto rows · application/json

successboolean

Always true for a page; an error comes as an HTTP status instead

rowsCompanyVehicleGrid_Dto[] | null

The rows of the page, at most endRow - startRow

Hide child attributes
brukareIntelligenceScoreTotalinteger | null

format: int32

brukareIntelligenceNumberOfMaxinteger | null

format: int32

agareIntelligenceScoreTotalinteger | null

format: int32

agareIntelligenceNumberOfMaxinteger | null

format: int32

isOwnerboolean
isUserboolean
isCurrentboolean
periodStartDatestring | null

format: date-time

periodEndDatestring | null

format: date-time

transportstyrelsen_VehicleSummaryIdinteger

format: int32

companyIdinteger | null

format: int32

registreringsnummerstring | null
companyid_Identitetsnummerinteger | null

format: int32

companyid_Agareinteger | null

format: int32

agareNamnstring | null
brukareNamnstring | null
isStolenboolean | null
forvarvsdatumstring | null

format: date-time

forvarvsdatumAgarestring | null

format: date-time

fordonsbenamningstring | null
handelsbeteckningstring | null
namnstring | nullread-only
arsmodellinteger | null

format: int32

fordonsarinteger | null

format: int32

chassinummerstring | null
fabrikatskodstring | null
fabrikskodBeskrivningStringTuple
Show child attributes
item1string | null
item2string | null
modellnummerstring | null
gruppnummerstring | null
antalBrukareinteger | null

format: int32

leasingboolean | null
kreditkopboolean | null
forsakringsformstring | null
forsakringsbolagstring | null
forsakringsbolagBeskrivningstring | nullread-only
mileageKminteger | null

format: int32

mileageDatestring | null

format: date-time

fordonsslagstring | null
fordonslagBeskrivningstring | nullread-only
fordonsstatusKodstring | null
avregOrsakstring | null
fordonsstatusKodBeskrivningstring | nullread-only
fordonsslagsklassstring | null
fordonsslagsklassBeskrivningstring | nullread-only
fordonsslagsklassOchBeskrivningstring | nullread-only
drivmedel1Kodstring | null
drivmedel2Kodstring | null
drivmedel3Kodstring | null
anvandningssatt1string | null
anvandningssatt2string | null
anvandningssatt3string | null
anvandningssatt4string | null
anvandningssatt5string | null
elfordonKonfigurationstring | null
elfordonKonfigurationBeskrivningstring | nullread-only
drivmedelsBeskrivningarstring[] | nullread-only
anvandningssattstring[] | nullread-only
lastrowinteger

AG Grid's lastRow: -1 while more rows may follow; on the last page the number of rows in all (startRow + rows)

format: int32

hasMoreboolean

True when the page is full, so more rows may follow: ask again from nextStartRow. A last page that is exactly full is followed by one with no rows

nextStartRowinteger | null

The startRow of the next page; left out on the last page

format: int32

Try it with a grid

A server-side data grid bound to this endpoint through the proxy. Sort and filter columns and watch the request body the grid sends; the response arrives as rows with lastrow.

Grid playgroundrequests: 0 · Fill in the parameters and run the query.
Authorization

Stored in this browser only (until you forget it) and sent as the x-api-key header through the documentation proxy.

Enter your API key to load the grid.

Last request body
{ "startRow": 0, "endRow": 50, "sortModel": [], "filterModel": {} }
Response

Sort or filter a column and the request body updates; the response arrives as rows and lastrow.