Grade a receipt line and decide its disposition
POST/receipts/:receiptId/lines/:lineNo/inspections
Records the inspection grade of one receipt line and runs
DecideDisposition in the same transaction. quantity is required
and must be in [1, received quantity] (400 invalid-quantity when
absent or below 1, 409 inspected-exceeds-received above the received
quantity); an inspection of fewer units than were received still
closes the line, because a line is inspected exactly once (409
line-already-inspected). 404 receipt-not-found answers an unknown
receipt and a receipt with no such line; it also answers the call
when no disposition policy was ever declared. Publishes
ReturnLineInspected and DispositionDecided; a RESTOCK outcome
additionally publishes ReturnLineStaged. Requires an
Idempotency-Key.
Request
Responses
- 200
- 400
- 404
- 409
- 500
The line is inspected; the disposition was decided in the same transaction.
Response Headers
Present, with the value true, only when the answer is a replay of the stored answer of an earlier request with the same Idempotency-Key.
Malformed JSON body, an unknown field, a NUL byte in the body, or an invalid path, query or header parameter.
No RMA, receipt or disposition has this identity.
The command is refused by the domain rules, another request changed the resource first, or the Idempotency-Key was reused.
Unexpected server error.