complaint

Send a complaint with correction

There are several complaint types allowed, see complaint model. Correction depends on complaint type -- wrongPrice - the correct price as float. wrongPetrolLocation - correct location as LAT,LON (2 floats). Omitted for wrongStatus. For all others - corrected value

post/complaint

Request

  • Base URL
    https://creativecommons.tankerkoenig.de/api/v4
  • Auth
    none declared

Request body

apikeystring required

API key of the submitter

idstring required

UUID of station for which a complaint is sent

type'wrongPetrolStationName' | 'wrongStatusOpen' | 'wrongStatusClosed' | 'wrongPriceE5' | 'wrongPriceE10' | 'wrongPriceDiesel' | 'wrongPetrolStationBrand' | 'wrongPetrolStationStreet' | 'wrongPetrolStationHouseNumber' | 'wrongPetrolStationPostcode' | 'wrongPetrolStationPlace' | 'wrongPetrolStationLocation' required

Type of complaint

correctionstring

wrongPrice - the correct price as float. wrongPetrolLocation - correct location as LAT,LON (2 floats). Omitted for wrongStatus. For all others - corrected value

Example request

{
  "apikey": "cffa4fb8-7a16-cd85-7946-263722530f15",
  "id": "cb1f0588-d517-40f0-8ce3-3edadebea40d",
  "type": "wrongStatusOpen"
}

Response

OK

apiVersionstring required
timestampstring date-time required
licensestring required

Example response

{
  "apiVersion": "4.0.6",
  "timestamp": "2020-01-04T22:14:06+01:00",
  "license": "CC BY NC http://www.tankerkoenig.de",
  "Diesel": {
    "count": 12345,
    "mean": 1.11,
    "median": 1.12
  },
  "E5": {
    "count": 12345,
    "mean": 1.11,
    "median": 1.12
  },
  "E10": {
    "count": 12345,
    "mean": 1.11,
    "median": 1.12
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.