Skip to main content

Receive a quantity against a line

POST 

/receipts/:receiptId/lines

Records quantity units of line lineNo as Good or Damaged and publishes ReceiptLineReceived (the handover event: inventory-storage books the Good ones). This is NOT naturally idempotent, so the Idempotency-Key is required: a retry with the same key never counts the units twice. Over-receipt is accepted and shows as an Over discrepancy on close. Receiving into a Closed receipt is 409 receipt-closed; a lineNo the ASN does not have is 422 line-not-on-asn.

Request​

Responses​

The quantity was recorded; the body is the receipt after the change.

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".