create_customer
Create a customer record in Shopline with name and optional email, phone, tags, gender, or birthday. Designed for manual entry or batch import; duplicates may fail.
Instructions
[WRITE] 建立新客戶。
【用途】 在 Shopline 商店中建立新的客戶記錄。適合客服手動建檔或批次匯入場景。
【呼叫的 Shopline API】
POST /v1/customers
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, customer: dict。
【副作用】
在商店客戶列表中新增一筆客戶
如果 email 或 phone 已存在,可能會失敗(Shopline 可能不允許重複)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 客戶姓名 | |
| tags | No | 標籤列表 | |
| No | |||
| phone | No | 電話 | |
| gender | No | 性別 (male/female/other) | |
| birthday | No | 生日 YYYY-MM-DD |