A received order could be set back to draft through the order API
Every endpoint in my ordering system wrote the order status its own way, and one would rewind a received order to draft. I put every legal move in one shared table, made every writer ask it, and added a history trail and a changed-only webhook for supplier writes. The race and the lost-message problems are still mine.
Read more