GX-Bug #70396
Von Moritz Bunjes vor fast 2 Jahren aktualisiert
The PUT `api.php/v2/special_offers/{id}` endpoint returns a 200 OK http status code with a complete special offer object in the response, even if there is no special offer at all. A 400 bad request http status response would be correct.
PUT `api.php/v2/special_offers/999999`
Request body:
```
{
"expiresAt": "2025-12-31 00:00:00",
"price": 10,
"productId": 1,
"quantity": 99999,
"status": true
}
```
Expected:
400 Bad Request http response code
Actual:
200 OK http response code