Skip to main content

Open a receipt

POST 

/receipts

Starts receiving an ASN: opens a receipt against a snapshot of its lines, moves a Registered ASN to Receiving and publishes ReceiptOpened. The ASN must be Registered or Receiving (409 asn-not-receivable) and may have only one open receipt (409 receipt-already-open). With appointmentId the appointment (looked up in the local copy of dock-scheduling's) must exist (422 unknown-appointment), cover the ASN (422 asn-not-on-appointment) and not be cancelled (409 appointment-cancelled); a check-in is not required (the arrival is a yard-management fact). The receipt takes its door code from it. Without one it is a walk-in delivery with no door. A missing ASN or appointment is 422 unknown-asn / unknown-appointment.

Request​

Responses​

The receipt was opened.

Response Headers
    Idempotency-Replayed

    Present, with the value true, only when this response is the replay of a stored answer for the same Idempotency-Key.

    ETag

    Strong entity tag of the resource: the quoted version, for example "3".

    Location

    URL of the new receipt.