Skip to main content

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​

The line is inspected; the disposition was decided in the same transaction.

Response Headers
    Idempotency-Replayed

    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.