Add Inventory Snapshot And Complete
POST/api/inventories/addsnapshotandcomplete
Tier: Internal — subject to change without notice.
Convenience "scan and finish" action: uploads a scan batch (as
InventoryController.AddInventorySnapshot(...)) and then immediately resolves the stocktake by
trusting the scans (as InventoryController.ResolveInventoryWithoutInput(...)), in one call.
Request
Responses
- 200
- 400
- 401
- 403
When ReturnResultDto is true: InventoryDtos.InventoryOperationResultDto with the
resolved InventoryDtos.InventoryDetailDto — note Notifications is not
populated on this endpoint (dropped during the combined add-then-resolve processing).
When ReturnResultDto is false (default): a bare InventoryDtos.InventoryDetailDto
(legacy shape). On the async path, a fake placeholder detail
(InventoryState:"Processing") plus, when applicable, BackgroundTaskId.
As InventoryController.AddInventorySnapshot(...) for the add-snapshot half, or the resolve-half's
failure codes (as InventoryController.ResolveInventoryWithoutInput(...)) — the combined error array
from both halves' units of work.
Caller is not authenticated.
Caller does not have Update permission on the Inventory module.