get_purchase_order_detail
Retrieve full details of a single POS purchase order, including items, quantities, costs, and total amount, by providing the purchase order ID.
Instructions
【用途】 取得單一 POS 採購單的完整明細,含採購品項、數量、金額等資訊。
【呼叫的 Shopline API】
GET /v1/pos/purchase_orders/{purchase_order_id}
【回傳結構】
id、status、created_at、total
items: 每筆含 product_title、sku、quantity、unit_cost
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"purchase_order_id": "<purchase_order_id>"
},
"name": "get_purchase_order_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purchase_order_id | Yes | 採購單 ID |