Add Order
POST/api/orders/createorder
Tier: Public — stable, supported for third-party integration.
Creates a new order in state Open and raises OrderCreated.
Line prices/costs are auto-captured from the current ItemAggregate.SkuMaster
values for any line that omits AddOrderSkuDto.UnitPriceSnapshot/AddOrderSkuDto.UnitCostSnapshot.
New Orders.AddOrderSkuDto lines must reference an operational SKU (not
Draft/Discontinued); place requirements (FromPlaceId/ToPlaceId)
and constraint-setting fallbacks depend on AddOrderDto.OrderType — see the
remarks on Orders.AddOrderDto.
Request
Responses
- 200
- 400
- 401
- 403
Returns the newly created Orders.OrderDetailDto.
Validation failed (error array) — e.g. missing/invalid OrderType, an unknown or non-operational SKU, an unknown place/customer/person reference, or an invalid Channel.
The caller is not authenticated.
The caller lacks Order Create permission.