An order history model records the order status changes an order goes through. An order can have many history models related to it, the latest history model represents the current status an order is in.
To get all history models for an order with twig you could do:
Current Order Status: {{order.orderStatus.name}} <br>
{% for history in order.histories %}
Status: '{{ history.newStatus.name ?? ""}}' (previously '{{ history.prevStatus.name ?? ""}}')
with message: '{{ history.message }}'<br>
{% endfor %}
The message saved when the order status was changed.
The order ID.
Returns an Order Status Model of the previous status this order was in.
Returns null
if there was no previous status, as is the case when a new order is created.
The the ID of the previous status this order was in.
Returns an Order Status Model of the new status this order is in.
The status this order history model recorded
The customer who made this order ID