get_customer_tier_history
Retrieve a specific customer's membership tier change history, including tier transitions, reasons, and timestamps, to track upgrades and downgrades.
Instructions
取得指定客戶的會員等級變動歷程。
【用途】 追蹤客戶會員等級升降紀錄,了解是升等還是降級、原因為何。 搭配 list_membership_tiers 對照等級名稱。
【呼叫的 Shopline API】
GET /v1/customers/{customer_id}/membership-tier-history
【回傳結構】 dict 含 customer_id, total_changes, history[]。 每筆含 from_tier, to_tier, reason, created_at。
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": {
"customer_id": "<customer_id>"
},
"name": "get_customer_tier_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | 客戶內部 ID |