Query vehicle details

Get the vehicle specifications stored in the Chargetrip vehicle database by using the vehicle query.

Query vehicle details

Render all the ins and outs about a vehicle.

Query vehicle details

Query

A vehicle id is required to get vehicle details. Pull the id from the vehicleList query. Use the country argument to apply localization to the data. For example, set country to US to receive the names and plug types as they are known in the United States.

Arguments

id ID

Required

Vehicles unique ID.

country CountryCodeAlpha2

ISO-3166 alpha-2 country code to apply localization on vehicle data if available.

Show CountryCodeAlpha2 enum values

Frequently used fields

id ID

Vehicles unique ID.

naming VehicleNaming

Naming of the vehicle.

connectors VehicleConnector

Available connectors for the vehicle. Please note that for HEVs this will always be an empty array.

availability VehicleAvailability

Availability of the vehicle.

Other fields

drivetrain VehicleDrivetrain

Drivetrain of the vehicle.

adapters VehicleConnector

Adapters for the connectors of the vehicle. Please note that for HEVs this will always be an empty array.

battery VehicleBattery

Battery of the vehicle.

body VehicleBody

Body of the vehicle.

performance VehiclePerformance

Performance of the vehicle.

range VehicleRange

Range of the vehicle.

media VehicleMedia

Media of the vehicle.

routing VehicleRouting

Routing of the vehicle.

connect Connect

Information about vehicle connectivity.

region VehicleRegion

Regions in which the vehicle is available. Based on the continent code (CC) standard.

Show VehicleRegion enum values

purpose VehiclePurpose

Vehicle intended use. Can be passenger, cargo, or utility.

Show VehiclePurpose enum values

type VehicleType

Type of vehicle.

Show VehicleType enum values

heat_pump VehicleHeatPump

Details about Heat Pump.

Response

A response can either contain a data or an errors object. The response header will always return 200 as a status code.

Data object

When successful, a data object will be returned with the requested fields. If there are no fields present the data object will return the operation name with the appropriate return type. If the operation was a query, this output will be an object of the schema’s query root type; if the operation was a mutation, this output will be an object of the schema’s mutation root type.

Error object

If unsuccessful, an errors object will be returned with more details in the extensions object. The error object can contain any of the following objects.