Send different kinds of partner 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/json
WriteUserFeedback
The following types of feedback can be sent:
tariff_update
All of these types have the following generic and required attributes.
content
: Free text about the change of the tarifflanguage
: ISO-639-1 language code (e.g. en, de, nl, fr)All of them are of type string
and are required (but can have an empty
value).
tariff_update
:
tariff
: Name of the user facing tariff, to which the update applies tocpo
: Names of the CPOs (comma separated) to which this tariff applies to. If update applies to all CPOs or the CPOs are unknown, it can be left empty.emp
: Name of the EMP which ownes the tariff.POST http://example-base-url.com/v1/partner_feedback
Content-Type: application/json
Api-Key: my-secret-key
{
"data": {
"type": "tariff_update",
"attributes": {
"content": "AC 0.3€/kWh",
"tariff": "KiWhi Pass CONFORT",
"cpo": "IONITY,EnBW",
"emp": "KiWhi Pass",
"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"
}
]
}