Skip to main content

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​

The appointment is booked.

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.

    Location

    The URL of the created resource.

    ETag

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