Revert To Receiving
POST/api/orders/revertordertoreceiving/:id
Tier: Public — stable, supported for third-party integration.
Reverts an order from Received back to Receiving, and raises OrderStateChanged on success.
Only valid from Received. Records an
Enums.OrderTransactionType of
RevertToReceiving on success. Uses the same CannotCompleteOrder error code
as OrderController.RevertToAllocating(...) for a wrong-state rejection, which can be misleading
since this action isn't a completion.
Request
Responses
- 200
- 400
- 401
- 403
Returns the reverted Orders.OrderDetailDto (state Receiving).
The order is not in Received state (CannotCompleteOrder); or the order id was not found (NotFound).
The caller is not authenticated.
The caller lacks Order Update permission.