Cancel Layer Processing
POST/v1/api/quality/inspection/shipment/cancel-layer
Removes specific images (layers) from a unit — the multi-layer/pick-pack granular
counterpart to /cancel-unit's whole-unit removal, used when a unit's images each
represent a single product within an outer parcel and only some of them need
re-inspection rather than the entire unit. Deletes the matched images and their
storage objects, resolves any remaining unidentified_product mismatches for those
filenames, and — for any product_unit_ledger entries whose filenames match the
removed set — subtracts exactly those entries' own deltas from the live count (not the
unit's whole tracked total for that product; entries for images that weren't removed
are left untouched) and returns the corrected live counts.
Auth Required
Required Permissions:
quality.inspection.shipment:execute("Quality Inspection Shipment Execute")
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Layer(s) cancelled
Bad Request. The request was invalid or cannot be otherwise served.
Unauthorized. User is not authenticated or session is invalid.
Forbidden. User does not have the required permissions.
Resource not found
Internal Server Error