update_customer
Update customer basic information such as name, email, phone, gender, or birthday. Only provided fields are modified, leaving others unchanged.
Instructions
[WRITE] 更新客戶基本資料。
【用途】 修改客戶姓名、聯絡方式、生日等基本資料。僅傳入要修改的欄位,未傳入的欄位不會被覆蓋。
【呼叫的 Shopline API】
PUT /v1/customers/{customer_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
修改客戶資料,變更立即生效
不可復原(無版本歷史),但可再次呼叫此工具覆蓋
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | 客戶內部 ID | |
| name | No | 新姓名 | |
| No | 新 Email | ||
| phone | No | 新電話 | |
| gender | No | 性別 (male/female/other) | |
| birthday | No | 生日 YYYY-MM-DD |