list_purchase_orders
Search and filter purchase orders by status, vendor, location, or date range to track incoming stock and review purchasing history. Find specific orders fast using order number or smart search.
Instructions
Search and list purchase orders with optional filtering
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Number of records to skip | |
| sort | No | Property to sort by (e.g., orderDate, orderNumber) | |
| count | No | Number of records to return (max 100) | |
| smart | No | Smart search across order fields | |
| status | No | Filter by order status (single value or array) | |
| include | No | Related data to include (e.g., vendor, lines, lines.product) | |
| sortDesc | No | Sort in descending order | |
| vendorId | No | Filter by vendor ID | |
| locationId | No | Filter by destination location ID | |
| orderDateTo | No | Filter by order date (to) - ISO format | |
| orderNumber | No | Filter by order number | |
| includeCount | No | Include total record count in response | |
| orderDateFrom | No | Filter by order date (from) - ISO format | |
| expectedDateTo | No | Filter by expected date (to) | |
| expectedDateFrom | No | Filter by expected date (from) |