---
title: "Send a complaint with correction"
method: POST
path: "/complaint"
tags: ["complaint"]
---

# Send a complaint with correction

`POST /complaint`

## Request

- Base URL: `https://creativecommons.tankerkoenig.de/api/v4`
- URL: `https://creativecommons.tankerkoenig.de/api/v4/complaint`
- Auth: none declared

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

## Request body

- Complaint: Complaint entry, used to give feedback for incorrect data.
  - `apikey` string, required: API key of the submitter
  - `id` string, 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
  - `correction` string: wrongPrice - the correct price as float. wrongPetrolLocation - correct location as LAT,LON (2 floats). Omitted for wrongStatus. For all others - corrected value

## Response `200`

OK

- ResponseStats200
  - `apiVersion` string, required
  - `timestamp` string, date-time, required
  - `license` string, required
  - `Diesel` Fuelstat
    - `count` number
    - `mean` number, float
    - `median` number, float
  - `E5` Fuelstat
    - `count` number
    - `mean` number, float
    - `median` number, float
  - `E10` Fuelstat
    - `count` number
    - `mean` number, float
    - `median` number, float

## Other responses

- `400`: Bad Request
- `401`: Unauthorized - invalid API key
- `500`: Internal Server Error

---

[API](https://skmtc.dev/tankerkoenig/apis/tankerko-nig-api.md) - [All operations](https://skmtc.dev/tankerkoenig/apis/tankerko-nig-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tankerkoenig/apis/tankerko-nig-api/revisions/2a9f49884dab?raw)
