luceed_recent_sales_orders
Fetches newest sales orders from Luceed using status and date filters, deduplicates and sorts them newest-first, then returns only the requested limit.
Instructions
PREFERRED for 'last N sales orders / nalozi prodaje'. Fetches NaloziProdaje by status + date window, dedupes, sorts newest-first (datum then broj), and returns only limit rows. Do NOT use raw luceed_nalozi_prodaje statusi for this — Luceed returns unsorted batches and a single status can miss other recent orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days ending today (default 14) | |
| limit | No | How many newest orders to return (default 40) | |
| to_date | No | Override window end (default today) | |
| statuses | No | Comma-separated Luceed status codes (default 10,99,05). Status 10 = typical open webshop/B2B; 99 often canceled; 05 often complete-ish. | |
| from_date | No | Override window start (YYYY-MM-DD or D.M.YYYY) |