get_customer_profile
Retrieve a single customer's complete profile including basic information, store credit history, member points, membership tier changes, and promotions for customer service or individual member analysis.
Instructions
取得單一客戶的完整輪廓(基本資料 + 儲值金紀錄 + 會員點數 + 會員等級變動 + 優惠券)。
【用途】 回答「這位客戶是誰、消費狀況、會員狀態」等完整客戶概況問題。適合客服 場景或個別會員分析。若要批次分析客戶行為請改用 get_rfm_analysis。
【呼叫的 Shopline API】
GET /v1/customers/{customer_id}
GET /v1/customers/{customer_id}/store-credit-history
GET /v1/customers/{customer_id}/member-points
GET /v1/customers/{customer_id}/membership-tier-history
GET /v1/customers/{customer_id}/promotions
【回傳結構】 dict 包含 profile / store_credits / member_points / tier_history / promotions 五大區塊。 金額皆為 float (TWD)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | 客戶內部 ID(由 list_customers 回傳的 id 欄位) |