delete_purchase_orders
Batch delete one or multiple purchase orders to remove test data or cancel erroneous records. This operation permanently deletes the specified purchase orders and is irreversible.
Instructions
[WRITE] 批次刪除採購單。
【用途】 一次刪除一或多筆 POS 採購單記錄,適合清除測試資料或作廢錯誤採購單。
【呼叫的 Shopline API】
DELETE /v1/pos/purchase_orders
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
永久刪除指定的採購單記錄,不可復原
若採購單已執行入庫操作,刪除可能受限(取決於 Shopline 實作)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purchase_order_ids | Yes | 要刪除的採購單 ID 列表(可批次刪除多筆) |