Scan To Capture
POST/v1/api/quality/inspection/shipment/scan-to-capture
Triggers a capture from every non-evidence camera assigned to a station, keyed by a scanned identifier (sku, order number, or pallet identifier) rather than a live inspection stream or shipment unit/session.
Returns early with captured: false if scan-to-capture is not enabled on the station's
inspection configuration.
If shipment_key is provided, it must reference an existing shipment (inbound or
outbound) that is already in_progress on the resolved area/station — this endpoint never
creates or starts shipments (call the start endpoint first). If no in-progress shipment
with that key exists on the area, 404 is returned. If
shipment_key is omitted, no shipment is resolved, and shipment_id/unit_id/
unit_session_id are all omitted from both the response and the published MQTT event.
On a fully_automated station, shipment_key is never resolved or validated (the quality
service owns the automated lifecycle whether or not the shipment was started): no unit or
session is created, and shipment_id/unit_id/unit_session_id are omitted.
When there is a shipment, the images are attached to a shipment unit + unit session: for
a pick-pack or multi-layer station, the shipment's most recent active unit/session is
reused (each scan is another layer/image in the same session); for every other station
configuration, a new unit and session are created for each scan. If the resolved shipment
has an MHE camera attached, that camera is also captured as optional side back.
Auth Required
Required Permissions:
quality.inspection.shipment:execute("Quality Inspection Shipment Execute")
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Images captured (or scan-to-capture disabled for this station)
Missing/invalid fields, or area or quality station not found.
Unauthorized. User is not authenticated or session is invalid.
Forbidden. User does not have the required permissions.
No cameras configured for the station, or no in-progress shipment with shipment_key on this area.
Internal Server Error