Book an appointment
POST/appointments
Books a window on a door. The door must be a known Dock slot of a site whose dockFlow allows the direction; the
window must not start in the past, last at most the site's maximum (4 h) and start and end on the site's slot granularity, lie inside the door's operating hours and
outside its closures, and not overlap another BOOKED or CHECKED_IN appointment of the door. INBOUND covers at
least one known, not cancelled ASN that sits on no other active appointment (409 asn-already-scheduled); OUTBOUND names a known cptId or at least one shipment reference. Requires an
Idempotency-Key. Publishes DockAppointmentBooked. The answer carries the Location of the new appointment and
its ETag.
Request
Responses
- 201
- 400
- 409
- 422
- 500
The appointment is booked.
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 URL of the created resource.
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.
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 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.