get_refund_by_store
Analyze return and refund distribution by store within a date range. Get return counts, refund amounts, and most returned products per store to evaluate channel performance.
Instructions
依門市/通路分析退貨退款分佈。
【用途】取得指定時間區間內的退貨單,並依關聯訂單的門市/通路分群, 計算各門市的退貨筆數、退款金額、最常被退貨的商品,協助評估各通路退貨狀況。 【呼叫的 Shopline API】
GET /v1/return_orders(退貨單列表)
GET /v1/orders/{order_id}(取得關聯訂單的通路資訊) 【回傳結構】dict 含 period、total_return_orders、stores(各門市退貨統計)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_date | Yes | 起始日期 YYYY-MM-DD | |
| end_date | Yes | 結束日期 YYYY-MM-DD |