get_archived_orders
Retrieve archived historical order lists from Shopline within a specified date range. Use it to access long-term archived orders that are no longer active.
Instructions
【用途】查詢已封存(archived)的歷史訂單列表,適合調閱長期歸檔的舊訂單資料。
【呼叫的 Shopline API】
GET /v1/orders/archived
【回傳結構】 { "total_found": int, # 符合條件的總筆數 "returned": int, # 實際回傳筆數 "orders": [ # 精簡訂單列表 { "id": str, "order_number": str, "status": str, "channel": str, # "POS" 或 "線上" "store_name": str, "total": float, "subtotal": float, "discount": float, "payment_type": str, "payment_status": str, "delivery_type": str, "delivery_status": str, "customer_name": str, "items_count": int, "created_at": str, } ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | 結束日期 YYYY-MM-DD。建議與 start_date 維持較短區間以加快查詢。 | |
| start_date | Yes | 起始日期 YYYY-MM-DD。⚠️ 本工具會逐頁掃描區間內所有訂單,區間越大越慢,請只查實際需要的最小區間(如單週或單月),避免一次查詢過長期間。 | |
| max_results | No | 最多回傳筆數 |