Introduction
This endpoint provides the annual vehicle tax rate based on registration date, vehicle type, fuel type, CO2 value and list price.
Header
When making calls to our API, include the following header:
x-api-key:your-api-key-here
Example Request
https://api.oneautoapi.com/oneauto/vehicletaxcalculator?registration_date=2020-01-01&vehicle_type=car&engine_capacity_cc=1499&fuel_type_desc=petrol&co2_gkm=123&list_price_inc_options_delivery_vat=23456&emission_class=euro4&dvla_revenue_weight_kg=1234
Example Sandbox Request
https://sandbox.oneautoapi.com/oneauto/vehicletaxcalculator?registration_date=2020-01-01&vehicle_type=car&engine_capacity_cc=1499&fuel_type_desc=petrol&co2_gkm=123&list_price_inc_options_delivery_vat=23456&emission_class=euro4&dvla_revenue_weight_kg=1234
Request Parameters
registration_date
mandatory, string, e.g. 2020-01-01
Date the vehicle was first registered in the UK.
vehicle_type
mandatory, string, e.g. car
Class of vehicle (Car, Van, Motorcycle, Tricycle, Private Light Goods & Private Heavy Goods).
engine_capacity_cc
optional, string, e.g. 1499
Cubic capacity of the engine. Mandatory for all Motorcycles, Tricycles & Private Light Goods vehicles. Mandatory for Cars registered before March 2001.
fuel_type_desc
optional, string, e.g. petrol
The vehicle's fuel type description. Mandatory for cars registered from April 2017 to March 2024
co2_gkm
optional, string, e.g. 123
CO2 in g/km. Mandatory for cars registered from March 2001 onwards.
list_price_inc_options_delivery_vat
optional, string, e.g. 23456
List price + options + delivery price including VAT.
emission_class
optional, string, e.g. euro4
European emission standard. Value indicates the emission levels in line with the age of the vehicle.
dvla_revenue_weight_kg
optional, string, e.g. 1234
The weight of the vehicle for DVLA purposes. Mandatory for Vans, Motorcycles, Tricycles, Private Light Goods & Private Heavy Goods vehicles.
Sample Response
{
"success": true,
"result": {
"12_month_rfl_y1": 220,
"12_month_rfl_y2_to_y6": 190,
"12_month_rfl_y2_to_y6_premium": 600,
"is_premium": true
},
"error": "If there is an error the message would go here"
}Response Parameters
success
e.g. true
Whether the api call was successful
12_month_rfl_y1
e.g. 220
Year One 12 month Road Fund Licence.
12_month_rfl_y2_to_y6
e.g. 190
Year Two to Year Six 12 month Road Fund Licence
12_month_rfl_y2_to_y6_premium
e.g. 600
Year Two to Year Six 12 month Road Fund Licence for vehicles over £40k.
is_premium
e.g. true
Is the vehicle over £40k and classed as premium for annual vehicle tax purposes.
error
e.g. If there is an error the message would go here
Details of what went wrong with the api call
Status Codes
200
success, chargeable
Request has been successfully received and a response has been sent.
202
accepted, non-chargeable
Request has been received and accepted for processing, but the action has not yet been completed.
204
no content, non-chargeable
Request has been successfully received but there is no content to return e.g. if an invalid VRM has been sent.
206
partial content, non-chargeable
Request has been successfully received but limited content is returned e.g. if an invalid VRM has been sent.
400
bad request, non-chargeable
Request was not received e.g. if any required parameters are missing.
403
forbidden, non-chargeable
Request was rejected e.g. if the API key is invalid or the service is not enabled.
429
too many requests, non-chargeable
API key rate limit/quota has been exceeded.
500
internal server error, non-chargeable
We are unable to process the request e.g. if the API is under extremely heavy load.
503
service unavailable, non-chargeable
Service is temporarily unavailable. Contact help@oneautoapi.com