帮助中心 >
买家
Object: buyer
Primary Locator:
- buyerId
1. Schema
buyerBasicInfo
| Field | 中文属性 | Type | 中文说明 | English Description |
|---|---|---|---|---|
| buyerId | 买家ID | string | 买家唯一业务ID | Unique business ID of the buyer |
| contacts | 联系方式 | buyerContact[] | 买家的联系方式列表 | Contact methods of the buyer |
| orderCount | 订单数 | number | 买家历史订单数量 | Total order count of the buyer |
| totalSpent | 订单总额 | number | 买家历史订单总金额 | Total amount spent by the buyer |
| lastPurchaseTime | 最近购买时间 | datetime | 买家最近一次购买时间 | Last purchase time of the buyer |
| purchasedShops | 购买过的店铺 | string[] | 买家历史购买过的店铺列表 | Shops purchased from by the buyer |
| firstPurchaseTime | 首次购买时间 | datetime | 买家第一次购买时间 | First purchase time of the buyer |
| country | 国家 | string | 买家所属国家 | Country of the buyer |
| note | 备注 | string | 用户自定义备注信息 | User-defined note for the buyer |
| updateTime | 更新时间 | datetime | 买家数据最近更新时间 | Last updated time of the buyer data |
buyerContact
| Field | 中文属性 | Type | 中文说明 | English Description |
|---|---|---|---|---|
| type | 联系方式类型 | string | 联系方式类型,如:Phone、Email、Line、Whatsapp、Zalo、Viber、Facebook | Contact method type |
| value | 联系方式 | string | 联系方式内容 | Contact value |
2. Action Specs
Returns: buyer[]
huayangtk-cli buyer
huayangtk-cli buyer --country <string>
huayangtk-cli buyer --shop-code <string>
huayangtk-cli buyer --start-time <datetime> --end-time <datetime>
huayangtk-cli buyer --country <string> --shop-code <string>
huayangtk-cli buyer list
huayangtk-cli buyer list --country <string>
huayangtk-cli buyer list --shop-code <string>
huayangtk-cli buyer list --start-time <datetime> --end-time <datetime>
huayangtk-cli buyer list --country <string> --shop-code <string>
Returns: buyer
huayangtk-cli buyer get --buyer-id <string>
Returns: order[]
huayangtk-cli buyer orders --buyer-id <string> --start-time <datetime> --end-time <datetime>
Returns: buyer
huayangtk-cli buyer note --buyer-id <string> --note <string>