Companies
List earlier vehicle registrations for a company (AG Grid)
Closed registration periods from Transportstyrelsen, one row per period (ägare or brukare) with periodStartDate and periodEndDate, newest end date first. A vehicle the company held twice appears twice.
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 |
isStolen |
Whether the vehicle is reported stolen |
mileageKm, mileageDate |
The latest odometer reading and its date |
Authorization
x-api-keystringheaderrequiredYour API key, sent in the x-api-key header.
Path parameters
idintegerrequiredInternal company ID
Bodyapplication/json
startRowintegerendRowintegerrowGroupColsRowGroupModel[] | nullHide child attributes
idstring | nulldisplayNamestring | nullfieldstring | nullgroupKeysstring[] | nullfilterModelFilterModel[] | nullHide child attributes
columnNamestring | nullcolumnNameWithAliasstring | nullread-onlyfilterTypestring | nullsortModelSortModel[] | nullHide child attributes
sortstringcolIdstring | nullResponses
AG Grid page of CompanyVehicleGrid_Dto rows
Company not found or not accessible
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.
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.
{ "startRow": 0, "endRow": 50, "sortModel": [], "filterModel": {} } Sort or filter a column and the request body updates; the response arrives as rows and lastrow.