Skip to main content

Run the SLAM weigh-check on a sealed package

POST 

/packages/:id/slam-runs

SLAM = Scan, Label, Apply, Manifest. Weighs a sealed package: if |actualWeight - expectedWeight| is within tolerance (0.05, same unit as the two weights — e.g. kilograms), a shipping label is applied (LabelApplied); otherwise the package is diverted (WeightDiscrepancyDetected + PackageDiverted) rather than shipped with a wrong manifest. Idempotent in effect once processed: a repeat call on an already-labeled-or-diverted package returns 409 rather than re-processing it.

Request​

Responses​

Weigh-check recorded (label applied or the package diverted — both are successful outcomes of this call). No response body; read GET /packages/{id} afterwards to see which outcome occurred (status LABELED or DIVERTED, see ADR-0033).

Response Headers
    Idempotency-Replayed

    Present, with the value true, ONLY when this answer is the stored replay of an earlier request that used the same Idempotency-Key (the handler did not run again). The first execution never carries it.