Suspend a carrier
POST/carriers/:scac/suspensions
Suspends an ACTIVE carrier with a mandatory reason (1..200 characters). From now on a booking or reschedule naming its SCAC is
refused with 409 carrier-suspended. Appointments the carrier already holds are NOT cancelled: a person decides about them (the
CarrierSuspended event lets other contexts react). 409 carrier-already-suspended when it is already suspended. Requires an
Idempotency-Key; If-Match with the ETag is honoured (412 on mismatch). Publishes CarrierSuspended.
Request
Responses
- 200
- 400
- 404
- 409
- 412
- 422
- 500
The carrier is suspended.
Response Headers
true when this response is the stored answer of an earlier request with the same Idempotency-Key and the same method, path and body (the handler did not run again). Absent on the first execution.
The weak entity tag of the appointment or carrier, W/"<version>".
Malformed JSON body, an unknown field, an invalid path, query or header parameter, or a NUL byte in a body.
No appointment, door, closure or carrier has this id, or the path holds a NUL byte.
The appointment or carrier is in the wrong state for the command, the door is booked in an overlapping window, a closure collides, another request changed the aggregate first, or the Idempotency-Key was already used with a different request (idempotency-key-reused).
The If-Match version is not the current version of the appointment or carrier.
The request is well formed JSON but a value-object or reference rule refuses it (invalid door code, carrier or window, invalid SCAC, USDOT, MC, carrier name or suspension reason, window in the past, unknown door, door flow mismatch, unknown ASN, missing outbound reference, invalid operating hours or settings).
Unexpected server error.