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.All of them are of type string and are required (but can have an empty
value). In brackets the max. length of the string.
other_feedback: No extra attributesmissing_price
tariff (100): Name of the EMP + tariff, to which the price belongs tocpo (200): Name of the CPO where the price is displayedprice (100): Price per kWh/minute etc.poi_link (200): Link to chargeprice.app?poi_id=..&poi_source=...missing_station
location (200): Where the station is located. Either address or
coordinates.cpo (200): Operator name of the station.missing_vehicle
brand (100): Car brand (e.g. Tesla)model (100): Car model (e.g. Model 3)wrong_price
tariff (100): Name of the EMP + tariff, to which the price belongs tocpo (200): Name of the CPO where the price is displayeddisplayed_price (100): Price displayed in the app.actual_price (100): Either total price or price per kWh/minute. Whatever
the user has at hand.poi_link (200): Link to chargeprice.app?poi_id=..&poi_source=...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"
}
]
}