Postman collection
Orderlines Read

pixiGetOrderlineHistory

Returns the status change history of a single order line, sorted chronologically.

Reads all entries from the orderhistory table that belong to the order line given in OrderlineKey (column OrderLineRef).

For each status change the call returns:

  • the date of the change,
  • the status that was set,
  • the user who made the change,
  • whether the customer was notified,
  • the key of the history entry.

Rows are sorted by StatusChangeDate ascending, so the oldest change comes first. If the order line has no history entries or does not exist, an empty result set is returned.

Notes

  • The table is read with NOLOCK, so uncommitted changes may be visible.
  • No error is raised for an unknown order line key; the result is simply empty.
  • The column UpdateEmp is returned as UpdateUser and OrderHistKey as OrderlineHistKey.

Tables used

orderhistory · Read
SQL object:
dbo.pipiGetOrderlineHistory
Updated at 2026-10-30