Check the current occupant out of a station
POST/stations/:stationId/check-outs
Clears a station's occupant — the Station aggregate's CheckOut invariant enforced through the application layer. Takes no request body. Like check-in, this publishes no domain event (see ADR-0014).
Request
Responses
- 200
- 400
- 404
- 409
- 500
Station checked out.
Response Headers
Present, with the value true, ONLY when this answer is the stored replay of an earlier request that used the same Idempotency-Key (the handler did not run again). The first execution never carries it.
The Idempotency-Key header is missing (idempotency-key-required) or not 1-128 printable ASCII characters (idempotency-key-invalid) on a POST, or the request body could not be read or contains a NUL character (malformed-request-body), or the request body is malformed JSON, a required field is missing or empty, or a field value is invalid (e.g. a task type outside the TaskType enum).
No station is registered with this stationId.
The station has no occupant checked in. The same Idempotency-Key reused with a different method, path or body is also a 409, problem type idempotency-key-reused.
An unexpected server-side failure (e.g. a repository or event-publisher error).