List order lines (purchase / supplier order line items)
Returns a paginated list of order lines — the line items of purchase/supplier orders (e.g. pre-season buys), recording what was ordered from suppliers. Filter by product, brand, and date range. Use this to review ordered quantities and purchasing history. (For received stock movements use GET /movement-lines; for sales use GET /sales-lines.)
Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Query Parameters
Page number, 1-indexed (default: 1)
1 <= x <= 9007199254740991Number of items per page, max 100 (default: 20)
1 <= x <= 100Filter by product UUID
Filter by brand UUID
Return lines where createdAt >= this value (inclusive). ISO 8601 date 'YYYY-MM-DD' (e.g. '2026-01-01') or datetime 'YYYY-MM-DDTHH:mm:ssZ' — both accepted. Filters on the createdAt column.
Return lines where createdAt <= this value (inclusive). ISO 8601 date 'YYYY-MM-DD' (e.g. '2026-12-31') or datetime 'YYYY-MM-DDTHH:mm:ssZ' — both accepted. Filters on the createdAt column.
Column to sort by. Allowed: 'createdAt', 'purchasePrice'. Defaults to 'createdAt'.
Sort direction: 'asc' or 'desc'. Default order is createdAt descending (most recent first).
asc, desc 
