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 |
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-keystringheaderrequiredYour API key, sent in the x-api-key header.
Path parameters
idintegerrequiredInternal company ID
Bodyapplication/json
startRowintegerZero-based index of the first row of the page: 0, then the answer's nextStartRow
endRowintegerOne past the last row of the page: the page has endRow - startRow rows, or 100 when endRow is left out or not above startRow
rowGroupColsRowGroupModel[] | 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 · application/json
successbooleanAlways true for a page; an error comes as an HTTP status instead
rowsCompanyVehicleGrid_Dto[] | nullThe rows of the page, at most endRow - startRow
Hide child attributes
brukareIntelligenceScoreTotalinteger | nullbrukareIntelligenceNumberOfMaxinteger | nullagareIntelligenceScoreTotalinteger | nullagareIntelligenceNumberOfMaxinteger | nullisOwnerbooleanisUserbooleanisCurrentbooleanperiodStartDatestring | nullperiodEndDatestring | nulltransportstyrelsen_VehicleSummaryIdintegercompanyIdinteger | nullregistreringsnummerstring | nullcompanyid_Identitetsnummerinteger | nullcompanyid_Agareinteger | nullagareNamnstring | nullbrukareNamnstring | nullisStolenboolean | nullforvarvsdatumstring | nullforvarvsdatumAgarestring | nullfordonsbenamningstring | nullhandelsbeteckningstring | nullnamnstring | nullread-onlyarsmodellinteger | nullfordonsarinteger | nullchassinummerstring | nullfabrikatskodstring | nullfabrikskodBeskrivningStringTupleShow child attributes
item1string | nullitem2string | nullmodellnummerstring | nullgruppnummerstring | nullantalBrukareinteger | nullleasingboolean | nullkreditkopboolean | nullforsakringsformstring | nullforsakringsbolagstring | nullforsakringsbolagBeskrivningstring | nullread-onlymileageKminteger | nullmileageDatestring | nullfordonsslagstring | nullfordonslagBeskrivningstring | nullread-onlyfordonsstatusKodstring | nullavregOrsakstring | nullfordonsstatusKodBeskrivningstring | nullread-onlyfordonsslagsklassstring | nullfordonsslagsklassBeskrivningstring | nullread-onlyfordonsslagsklassOchBeskrivningstring | nullread-onlydrivmedel1Kodstring | nulldrivmedel2Kodstring | nulldrivmedel3Kodstring | nullanvandningssatt1string | nullanvandningssatt2string | nullanvandningssatt3string | nullanvandningssatt4string | nullanvandningssatt5string | nullelfordonKonfigurationstring | nullelfordonKonfigurationBeskrivningstring | nullread-onlydrivmedelsBeskrivningarstring[] | nullread-onlyanvandningssattstring[] | nullread-onlylastrowintegerAG Grid's lastRow: -1 while more rows may follow; on the last page the number of rows in all (startRow + rows)
hasMorebooleanTrue 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 | nullThe startRow of the next page; left out on the last page
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.