Create a vehicle
Create a new vehicle (required scope vehicles:write)
Header Parameters
The customer identifier
Request Body required
- 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
- 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
- miles
- kilometres
- Array [
- ]
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 internal reference of the vehicle - should usually be unique
Possible values: non-empty
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
]
Currency definitions enum, matches currencies available in the BigChange Client Site
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
]
Currency definitions enum, matches currencies available in the BigChange Client Site
Possible values:
Possible values: [miles
, kilometres
]
The unit of measure for distance presented by the vehicles odometer
Possible values:
The latest reading from the vehicles odometer
The date of when the vehicles road safety test expires (eg. UK MOT test)
The date of when the vehicles road tax expires
The date of when the vehicles next service is due
The date of when the vehicles insurance is due for renewal
The vehicle co2 emission rate as (grams per km). Mutually exclusive with Co2EmissionsKilogramsPerLitre
The vehicle co2 emission rate as (kilograms per litre). Mutually exclusive with Co2EmissionsGramsPerKm
customFields object[] nullable
Custom fields associated with the vehicle
The unique identifier of the associated custom field definition
The value of this custom field. If set to null, any existing value will be unset
- 201
- 400
- 403
- 422
- 500
Created
Schema
Identifier of the newly created record
{
"id": 0
}
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"
}
Client Error
Schema
- Array [
- ]
errors object
property name* string[]
string
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
{
"errors": {},
"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"
}