Companies
List vehicles a company is registered on now (AG Grid)
Vehicles where the company is currently ägare, brukare or both, one row per vehicle, from the Transportstyrelsen snapshot. Use POST /companies/{id}/vehicles/history for earlier registrations.
Returns the vehicles the company is registered on today, as owner (ägare), as user (brukare) or both, one row per vehicle, from the vehicle register. The registrations that have ended are in earlier vehicle registrations, and the whole list as a file in the CSV export.
The request body is the grid request described in Pagination. Here isCurrent is always true and the period dates are empty.
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.