Send different kinds of user feedback to the Chargeprice Team.
This API follows the https://jsonapi.org specification.
API-Key: <your_api_key> (contact sales@chargeprice.net to get access)Content-Type: application/jsonWriteUserFeedback
The following types of feedback can be sent:
other_feedbackmissing_pricemissing_stationmissing_vehiclewrong_priceAll of these types have the following generic and required attributes. In brackets the max. length of the string.
notes (1000): Any text that the user can let us know.email (100): Email of the user, if he wants to get a response. Optional, but
at least an empty string needs to be provided.context (500): Any text that gives more context of the current state of the
app. e.g. Language, selected car model, selected battery stateā¦language (2): ISO-639-1 language code (e.g. en, de, nl, fr)priority: (enum). Allowed values: normal, high, critical. Default is normal.user_products: (array of enum). Allowed values: mobile_premium.Unless stated otherwise, attributes are of type string. Required attributes
must be present but can have an empty value. In brackets the max. length of the
string.
other_feedback: No extra attributesmissing_price
tariff (100, required): Name of the EMP + tariff, to which the price belongs tocpo (200, required): Name of the CPO where the price is displayedprice (100, required): Price per kWh/minute etc.price_segments (array of Price Segment, optional, max. 50 items):
Structured version of pricecharging_station_id (100, optional): ID of the Chargeprice charging stationtariff_id (100, optional): ID of the Chargeprice tariffis_direct_payment (boolean, optional): Whether the price is an ad-hoc / direct payment pricepoi_link (200, optional, deprecated): Use charging_station_id instead.
Link to chargeprice.app?poi_id=..&poi_source=.... The poi_id is used as
charging_station_id if poi_source is chargeprice (or missing). Ignored
if charging_station_id is given.missing_station
location (200, required): Where the station is located. Either address or
coordinates.cpo (200, required): Operator name of the station.cpo_id (100, optional): ID of the Chargeprice operatorcharge_points (array, optional, max. 50 items): Charge points of the station
plug (string, required): See supported valuespower (number, required): Power in kWcount (integer, required): Number of charge points with this plug and powermissing_vehicle
brand (100, required): Car brand (e.g. Tesla)model (100, required): Car model (e.g. Model 3)wrong_price
tariff (100, required): Name of the EMP + tariff, to which the price belongs tocpo (200, required): Name of the CPO where the price is displayeddisplayed_price (500, required): Price displayed in the app.actual_price (500, required): Either total price or price per kWh/minute. Whatever
the user has at hand.displayed_price_segments (array of Price Segment, optional, max. 50 items):
Structured version of displayed_priceactual_price_segments (array of Price Segment, optional, max. 50 items):
Structured version of actual_pricecharging_station_id (100, optional): ID of the Chargeprice charging stationtariff_id (100, optional): ID of the Chargeprice tariffpoi_link (200, optional, deprecated): Same as for missing_price.Describes one part of a price, similar to restricted_segments of the
Tariff Details API.
dimension (string, required): Either minute (while charging),
parking_minute (after charging), kwh or sessionprice (number, required): The price per dimension, e.g. 0.39range_gte (integer, optional): From which dimension value the price
applies, e.g. from 60 minutes on.range_lt (integer, optional): Until which dimension value the price
applies, e.g. until 120 minutes.currency (3, optional): ISO 4217 currency code, e.g. EURtime_of_day_start (integer, optional): Time of day when this segment starts
to match. In minutes since midnight, e.g. 720 for 12:00.time_of_day_end (integer, optional): Time of day when this segment stops to
match. In minutes since midnight.POST http://example-base-url.com/v1/user_feedback
Content-Type: application/json
Api-Key: my-secret-key
{
"data": {
"type": "other_feedback",
"attributes": {
"email": "test@test.at",
"context": "FR, Tesla Model 3, 20-80%",
"notes": "Hello Chargeprice!",
"language": "en"
}
}
}
Empty response.
Client provided invalid request body.
{
"errors": [
{
"status": "400",
"code": "BAD_REQUEST",
"title": "..."
}
]
}
{
"errors": [
{
"status": "403",
"code": "FORBIDDEN",
"title": "api_key missing"
}
]
}
An unexpected error happened.
{
"errors": [
{
"status": "500",
"code": "INTERNAL_SERVER_ERROR",
"title": "some error"
}
]
}