Charging cost calculation Estimate the cost of a charge
BeMap name: Charging cost calculation
/chargingcost/1.0What a charge will cost and how long it will take, for a vehicle, a connector and a price list.
The whole description
In BeMap's words
Computes an estimated charging cost and time, based on vehicle, connector power, charge need and prices list.
Computes an estimated charging cost and time, based on vehicle, connector power, charge need and prices list.
400 with Access Denied.Request body
JSON, Content-Type: application/json. Schema ChargingCostRequest.
vehiclestringrequiredModel of vehicle (key).
temperatureinteger (int32)requiredTemperature in Celsius.
chargesChargingCostCharge[]requiredList of charging features.
ChargingCostCharge fields
curBatLvlnumber (double)requiredCurrent level of battery (in percent), Range between 0% to 100% for a full battery charge.
powernumber (double)requiredNominal power of connector (in kW). For a charging station can deliver 50 kW, set the value to 50.
cnnTypeIdinteger (int32)requiredConnector type ID.
currencystringrequiredDefined the currency used for costs calculation. Currency ISO 4217 Code.
tariffsChargingTariffItemFront[]requiredList of tariff.
ChargingTariffItemFront fields
pricesChargingPrice[]requiredList of price.
ChargingPrice fields
typeenumrequiredType of price dimension.
4 accepted values
FLATflat fee, no unit. PARKING_TIMEtime not charging, defined in hours. ENERGYdefined in kWh. TIMEtime charging, defined in hours. pricenumber (float)requiredPrice per unit (excluding VAT) for this tariff dimension.
unitenumUnit of price.
3 accepted values
NAPER_HOURPER_KWHvatnumber (float)Applicable VAT percentage for this tariff dimension. If omitted, no VAT is applicable.
minAmountnumber (float)Minimum amount to be billed.
restrictionChargingPriceRestrictionRestriction information of prices.
ChargingPriceRestriction fields
startTimestringStart time of day (hh:mm).
endTimestringEnd time of day (hh:mm).
startDatestringStart date (AAAA-MM-DD).
endDatestringEnd date (AAAA-MM-DD).
minKwhnumber (float)Minimum used energy in kWh for this tariff to be valid.
maxKwhnumber (float)Maximum used energy in kWh for this tariff to be valid.
minPowernumber (double)Minimum power in kW for this tariff to be valid.
maxPowernumber (double)Maximum power in kW for this tariff to be valid.
minDurationinteger (int32)Minimum duration in seconds for this tariff to be valid.
maxDurationinteger (int32)Maximum duration in seconds for this tariff to be valid.
dayOfWeekenum[]List of day of the week for this tariff to be valid. Values can be MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
7 accepted values
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAY
minPriceChargingPriceTaxFrontMinimum price for a charging session with this tariff.
ChargingPriceTaxFront fields
excludeTaxnumber (float)requiredRepresents the price of a charge without a tax.
includeTaxnumber (float)requiredRepresents the price of a charge with tax. The amount of money of this tax that is due.
namestringThe name of the tax. The intention is that Parties use short names where possible, e.g. VAT.
maxPriceChargingPriceTaxFrontMaximum price for a charging session with this tariff.
ChargingPriceTaxFront fields
excludeTaxnumber (float)requiredRepresents the price of a charge without a tax.
includeTaxnumber (float)requiredRepresents the price of a charge with tax. The amount of money of this tax that is due.
namestringThe name of the tax. The intention is that Parties use short names where possible, e.g. VAT.
toBatLvlnumber (double)Desired level of battery after charging (in percent), 100% for a full battery charge. For a full charge, set the value to 100. For a charge to 80% of battery capacity set the value to 80.
durationinteger (int64)Maximum desired time spent to the charge (in seconds).
currentTypeenumCurrent type (AC/DC).
5 accepted values
NANot available (NA). ACAlternating current (AC), but the number of phases is not available. AC_SINGLE_PHASEAlternating current (AC), single phase. AC_THREE_PHASESAlternating current (AC), three phases. DCDirect current (DC). startDateTimestringThe time when this tariff becomes active, in UTC, the time_zone field of the Location can be used to convert to local time. Typically used for a new tariff already given with the location, before it becomes active.
endDateTimestringThe time after which this tariff is no longer valid, in UTC, time_zone field if the Location can be used to convert to local time. Typically used when this tariff is going to be replaced with a different tariff soon.
timeZonestringTime zone. The value must come from the Pool
timeZonefield. One of IANA tzdata's TZ-values representing the time zone of the location. Examples: "Europe/Oslo", "Europe/Zurich". (http://www.iana.org/time-zones)
geoserverstringGeoserver name.
swidxinteger (int32)deprecatedSwitch index.
timeinteger (int64)Time stamp (in milliseconds). Defines the date and time will be used to apply the price restrictions.
curstringDefined the currency used for costs calculation. Currency ISO 4217 Code.
Response
200, schema ChargingCostResponse.
Response fields
estimationsChargingCostEstimation[]List of estimated cost and time.
ChargingCostEstimation fields
chargingTimeinteger (int64)Charging time in seconds.
energyUsednumber (double)Energy used in kW to make the charge.
batChargeLvlnumber (double)The charge level (in %) of the vehicle at the given charge point.
chargingCostChargingCostCharging cost.
ChargingCost fields
currencystringCurrency ISO 4217 Code.
withoutVatnumber (float)Price without VAT.
includeVatnumber (float)Price include VAT.
Errors
- 400 Bad Request,
ErrorResponse - 302 No credentials were sent. Do not follow the redirect.
- 401 The account or the API key is wrong.
How to read each one: Errors.