Skip to main content

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​

The carrier is suspended.

Response Headers
    Idempotency-Replayed

    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.

    ETag

    The weak entity tag of the appointment or carrier, W/"<version>".