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
- 201
- 400
- 409
- 422
- 500
The receipt was opened.
Response Headers
Present, with the value true, only when this response is the replay of a stored answer for the same Idempotency-Key.
Strong entity tag of the resource: the quoted version, for example "3".
URL of the new receipt.
Malformed JSON or an unknown field (malformed-request), a bad query
parameter (invalid-query, invalid-limit, invalid-cursor,
unknown-query-parameter), a missing or malformed Idempotency-Key
(idempotency-key-required, idempotency-key-invalid), or a value that breaks a domain rule
(the invalid-*, *-requires-*, duplicate-* and
invalid-condition, invalid-carton*, invalid-scan*, invalid-counted-contents, invalid-cases,
invalid-gtin, invalid-sscc and invalid-owner-ref slugs), a reason code outside the list
(invalid-override-reason) or a tolerance band that breaks 0 <= tolerance < hardStop <= 1
(invalid-tolerance-band).
The request conflicts with current state: asn-already-exists,
asn-in-progress, asn-terminal, asn-not-receivable,
appointment-cancelled, receipt-already-open, receipt-closed, sscc-prefix-not-configured and
sscc-serial-exhausted (receiver-assigned SSCCs, ADR 0024), tolerance-override-required
(a line sits between the declared band and its hard stop and no valid override reason was given) and
tolerance-blocked (a line is at or beyond the hard stop: no override passes, the receipt stays
open; ADR 0026), a write that lost a race
(concurrent-modification), or an Idempotency-Key already used with
a different request (idempotency-key-reused).
The request is well-formed but refers to something that does not hold:
unknown-sku, unknown-dock-door,
unknown-asn, unknown-appointment,
asn-not-on-appointment, line-not-on-asn, invalid-sscc,
duplicate-sscc, homogeneous-carton-mixed, carton-contents-mismatch,
scan-kind-mismatch, unsupported-pack-level,
counted-contents-not-mixed, counted-sku-unknown or unknown-gtin.
Unexpected server error.