List purchase orders
Retrieve a list of purchase orders with pagination and filtering options. Results are filtered to purchase orders the authenticated user has access to.
Query Parameters
limitintegerMaximum number of items to return per page
10Minimum: 1Maximum: 100pageintegerPage number for pagination
1Minimum: 1searchstringSearch term to filter purchase orders by name, supplier name, tracking number, reference number, or product details
cursorstringCursor for pagination (alternative to page-based pagination)
sortBystringField to sort by (e.g., createdAt, updatedAt, name, status, expectedDate, supplier.name, warehouse.name)
sortOrderstringOrder to sort by
"desc"Value in: "asc" | "desc"statusstringFilter purchase orders by status
"draft" | "open" | "confirmed" | "partially-received" | "received" | "cancelled"supplierIdstringFilter purchase orders by supplier ID
"uuid"warehouseIdstringFilter purchase orders by warehouse ID
"uuid"childOrdersbooleanWhether to include purchase orders from child organizations
falseincludeArchivedbooleanWhether to include archived purchase orders
falsefromstringStart date for filtering purchase orders by creation date
"date"tostringEnd date for filtering purchase orders by creation date
"date"Successful operation