Get a list of vehicles
Retrieve a paged collection of vehicles (required scope vehicles:read)
Query Parameters
Possible values: [createdAt
, groupName
, registration
]
The field to sort items in the page by
Possible values: [ascending
, descending
]
The direction to apply the sort
Only return vehicles where registration
matches with the value(s) provided
Only return vehicles where reference
matches the value(s) provided
Only return resources where id
matches the value(s) provided
Only return resources where groupId
matches the value(s) provided
Possible values: >= 1
and <= 2147483
The page number being requested (minimum: 1, maximum: 2147483)
Possible values: >= 1
and <= 1000
The page size being requested (minimum: 1, maximum: 1000)
Header Parameters
The customer identifier
- 200
- 400
- 403
- 500
Success
Schema
- Array [
- motorcycle: Motorcycle vehicle type
- car: Car vehicle type
- trailer: Trailer vehicle type
- bus: Bus vehicle type
- emergency: Emergency vehicle type
- goodsLess7_5T: Goods vehicle type with weight less than 7.5 tons
- goodsMore7_5T: Goods vehicle type with weight more than or equal to 7.5 tons
- busLess12: Bus vehicle type with less than 12 seats
- eur: Euro
- aud: Australian Dollar
- gbp: Pound Sterling
- bgn: Bulgarian Lev
- cad: Canadian Dollar
- czk: Czech Koruna
- dkk: Danish Krone
- huf: Forint
- ils: New Israeli Sheqel
- lvl: Latvian Lats - replaced by Euro
- ltl: Lithuanian Litas - replaced by Euro
- mxn: Mexican Peso
- nzd: New Zealand Dollar
- nok: Norwegian Krone
- pln: Zloty
- ron: Romanian Leu
- rub: Russian Ruble
- zar: Rand
- sek: Swedish Krona
- chf: Swiss Franc
- aed: UAE Dirham
- usd: US Dollar
- unknown: Unknown currency
- eur: Euro
- aud: Australian Dollar
- gbp: Pound Sterling
- bgn: Bulgarian Lev
- cad: Canadian Dollar
- czk: Czech Koruna
- dkk: Danish Krone
- huf: Forint
- ils: New Israeli Sheqel
- lvl: Latvian Lats - replaced by Euro
- ltl: Lithuanian Litas - replaced by Euro
- mxn: Mexican Peso
- nzd: New Zealand Dollar
- nok: Norwegian Krone
- pln: Zloty
- ron: Romanian Leu
- rub: Russian Ruble
- zar: Rand
- sek: Swedish Krona
- chf: Swiss Franc
- aed: UAE Dirham
- usd: US Dollar
- unknown: Unknown currency
- miles
- kilometres
- Array [
- boolean: Indicates a boolean field (Example: "false")
- integer: Indicates an integer numeric field (Example: "1001")
- decimal: Indicates a floating point numeric field (Example: "1.42")
- text: Indicates an editable text field (Example: "Purple")
- list: Indicates a field with a single value from a predefined list of options (Example: "Purple")
- statement: Indicates a text field that cannot be edited. The value is always equal to the default value (Example: "By signing this you agree to the following...")
- date: Indicates a date field, which will be represented as an RFC3339 formatted date string. The default value is not supported for this type and will always be null (Example: "2024-01-31")
- note: Indicates a multiline, editable text field. Lines are seperated with a line feed character (Example: "This is a note.")
- time: Indicates a time field, formatted as HH:mm. The default value is not supported for this type and will always be null (Example: "10:30")
- systemList: Indicates the ID of a related resource, vehicle or web user (Example: "228007")
- resource
- vehicle
- webUser
- ]
- ]
items object[]
The items returned for the requested page
The unique identifier of the vehicle
The UTC timestamp of when this vehicle was created
The unique identifier of the group that the vehicle belongs to
Possible values: [motorcycle
, car
, trailer
, bus
, emergency
, goodsLess7_5T
, goodsMore7_5T
, busLess12
]
Enumeration representing different types of vehicles
Possible values:
The unique identifier of the resource who this vehicle is assigned to
The name of the group that the vehicle belongs to
The internal reference of the vehicle - should usually be unique
The registration number of the vehicle
The manufacturer of the vehicle
The model of the vehicle
The year that the vehicle was first registered as new
Indicates whether this vehicle can be scheduled jobs
The litre fuel consumption of the vehicle used when idling per minute
The running cost of the vehicle per kilometre, expressed in costPerKmCurrencyCode
The running cost of the vehicle per day, expressed in costPerDayCurrencyCode
Possible values: [eur
, aud
, gbp
, bgn
, cad
, czk
, dkk
, huf
, ils
, lvl
, ltl
, mxn
, nzd
, nok
, pln
, ron
, rub
, zar
, sek
, chf
, aed
, usd
, unknown
]
Currency definitions enum, matches currencies available in the BigChange Client Site with an unknown value to handle unrecognised currencies returned from the database
Possible values:
Possible values: [eur
, aud
, gbp
, bgn
, cad
, czk
, dkk
, huf
, ils
, lvl
, ltl
, mxn
, nzd
, nok
, pln
, ron
, rub
, zar
, sek
, chf
, aed
, usd
, unknown
]
Currency definitions enum, matches currencies available in the BigChange Client Site with an unknown value to handle unrecognised currencies returned from the database
Possible values:
Possible values: [miles
, kilometres
]
The unit of measure for distance presented by the vehicles odometer
Possible values:
An estimate of vehicle odometer reading, based on tracked distance
The latest reading from the vehicles odometer
The UTC timestamp of when the odometer reading was last recorded
The date of when the vehicle's road safety test expires (eg. UK MOT test)
The date of when the vehicle's road tax expires
The date of when the vehicle's next service is due
The date of when the vehicle's insurance is due for renewal
The vehicle co2 emission rate as (grams per km)
The vehicle co2 emission rate as (kilograms per litre)
customFields object[]
Custom fields associated with the vehicle
The unique identifier of the associated custom field definition
The current value set for the custom field
definition object
Represents the definition of a custom field
The caption of a custom field
Possible values: [boolean
, integer
, decimal
, text
, list
, statement
, date
, note
, time
, systemList
]
The type of the custom field. New field types may be added in the future, so integrations should be resilient to this
Possible values:
Shows the possible values for a list type custom field. Value will be null if type is not list
Indicates if the field is required in the UI. This is NOT enforced in the API
Indicates if the field is editable
The default value of a custom field. Formatted in accordance with the rules of the field type
systemListValueMetadata object
Represents details of custom field value of type system list
A descriptive label for the specific resource, vehicle or web user that this system list value relates to
Possible values: [resource
, vehicle
, webUser
]
The type of entity used for custom field value of type system list
Possible values:
The page number of the response where 1 is the first page
The number of items requested for the current page
The number of items returned in the current page
{
"items": [
{
"id": 5514123,
"createdAt": "2022-11-29T16:50:16.0000000+00:00",
"groupId": 1211,
"vehicleType": "motorcycle",
"fixedResourceId": 1211,
"groupName": "Vans",
"reference": "ABC5514123",
"registration": "BC24 BIG",
"make": "Ford",
"model": "Transit",
"registrationYear": 2012,
"isSchedulable": true,
"idlingFuelConsumptionRate": 0.1,
"costPerKm": 0.25,
"costPerDay": 0.25,
"costPerKmCurrencyCode": "eur",
"costPerDayCurrencyCode": "eur",
"odometerUnit": "miles",
"odometerEstimate": 510200,
"odometer": 51023,
"odometerReadAt": "2022-11-29T16:50:16.0000000+00:00",
"roadSafetyExpiresAt": "2022-11-29",
"roadTaxExpiresAt": "2022-11-29",
"serviceDueAt": "2022-11-29",
"insuranceDueAt": "2022-11-29",
"co2EmissionsGramsPerKm": 5,
"co2EmissionsKilogramsPerLitre": 5.5,
"customFields": [
{
"definitionId": 5514123,
"value": "Purple",
"definition": {
"caption": "Favourite colour",
"type": "boolean",
"listOptions": [
"Red",
"Blue",
"Green",
"Purple"
],
"isRequired": true,
"isEditable": true,
"default": "10"
},
"systemListValueMetadata": {
"label": "John Doe",
"entityType": "resource"
}
}
]
}
],
"pageNumber": 2,
"pageSize": 100,
"pageItemCount": 55
}
Bad Request
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Forbidden
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Server Error
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}