Create Inventory
POST/api/inventories/createinventory
Tier: Internal — subject to change without notice.
Creates a new stocktake (state Created).
Request
Responses
- 200
- 400
- 401
- 403
The new InventoryDtos.InventoryDetailDto (InventoryState:"Created"). The subtype is
taken from InventoryType when supplied, otherwise inferred from
SkuGroupId/SkuIds. Raises the InventoryCreated system event and a
Created transaction row.
Validation failure — e.g. a duplicate open standard/SkuGroup/Consolidated inventory already exists on the place (400 InvalidOperation; the descriptive text is carried in the Field property, not Message); supplying both SkuGroupId and SkuIds together (InvalidOperation); or InventoryType of SkuGroup without a SkuGroupId (MissingRequiredField, field "SkuGroupId").
Caller is not authenticated.
Caller does not have Create permission on the Inventory module.