create_customer
Add a new customer to your Shopline store. Provide required name and optional details like email, phone, gender, birthday, and tags to create a customer record.
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 | 客戶姓名 | |
| No | |||
| phone | No | 電話 | |
| gender | No | 性別 (male/female/other) | |
| birthday | No | 生日 YYYY-MM-DD | |
| tags | No | 標籤列表 |