Postman collection
Orders Read

pixiGetOrderComments

Returns the comments of orders created after a given date, optionally filtered by Pixi order number or shop order number.

Returns the comments stored for orders, together with the order numbers they belong to.

Parameter handling

  • OrderNr = 0 is treated as not set (NULL).
  • An empty OrderNrShop is treated as not set (NULL).
  • RowCount is limited to the range 1 to 1000. A value that is NULL, smaller than 1 or greater than 1000 is replaced by 1000.
  • Since defaults to 2000-01-01 if it is NULL.

Filter

  • Only comments whose CreateDate is strictly later than Since are returned.
  • If neither OrderNr nor OrderNrShop is set, comments of all orders are returned.
  • If OrderNr is set, comments of the order with this Pixi order number are returned.
  • If OrderNrShop is set, comments of orders whose external (shop) order number OrderNrExternal matches are returned.
  • If both are set, they are combined with OR: comments of either order are returned.

Sorting and limit

The rows are sorted by CreateDate ascending, and at most RowCount rows are returned. This allows incremental retrieval: pass the CreateDate of the last row received as Since in the next call.

Notes

  • Both tables are read with NOLOCK, so uncommitted data may be returned or rows may be missed during concurrent changes.
  • The sort order has no tie-breaker beyond CreateDate. When paging with Since = last CreateDate, comments with exactly the same CreateDate as the last returned row are skipped because the filter is strictly greater (>). If a page ends in the middle of rows sharing one timestamp, those remaining rows are lost.
  • The maximum page size is 1000 rows; larger values for RowCount do not raise an error but are silently reset to 1000.
  • Only comments whose order exists in OrderHeader are returned (inner join).
  • A Since value of 1900-01-01 (the value of an empty datetime) is also replaced by 2000-01-01.

Tables used

OrderHeader · Read OrderComments · Read
SQL object:
dbo.pipiGetOrderComments
Updated at 2026-10-30