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

# Send a complaint with correction

`POST /complaint`

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

## Other responses

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

---

[API](https://skmtc.net/tankerkoenig/apis/tankerko-nig-api.md) · [All operations](https://skmtc.net/tankerkoenig/apis/tankerko-nig-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tankerkoenig/tankerko-nig-api/versions/2a9f49884dab/schema)
