Undo Short-Close
DELETE/api/purchase-order-line-short-close-events/:short_close_event
Reverse a prior short-close event, restoring the PO line's original ordered quantity.
Authentication: Requires Bearer token.
The event is marked as undone (with undone_at / undone_by) rather than deleted, preserving the audit trail. The associated PurchaseOrderLine's quantity is restored to its original_quantity from the event.
Validation errors (422):
- The event must currently be active. Re-reversing an already-undone event is rejected.
Returns the updated PurchaseOrderLineShortCloseEvent (now with is_active: false, eager-loaded with closedBy, undoneBy, and followUpPurchaseOrder).
Request
Responses
- 200
Successful response