get_order_transactions
Retrieve all payment transactions for a given order, including amounts, status, and payment method, to support account reconciliation and financial auditing.
Instructions
【用途】取得指定訂單的所有付款交易紀錄,包含付款金額、交易狀態、付款方式等,適合對帳與財務核查。
【呼叫的 Shopline API】
GET /v1/orders/{order_id}/transactions
【回傳結構】 { "order_id": str, # 查詢的訂單 ID "total": int, # 交易筆數 "transactions": [ # 交易列表 { "id": str, # 交易 ID "kind": str, # 交易類型(sale, refund, void 等) "status": str, # 交易狀態 "amount": float, # 交易金額(TWD) "gateway": str, # 付款閘道 "created_at": str, # 交易時間 ... # 其他欄位依 API 回應而定 } ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | 訂單內部 ID(由 query_orders 回傳的 id 欄位,非 order_number) |