客户编辑
| 事件分组 | 事件标识 |
|---|---|
| customers | customers/update |
客户更新
请求头
- X-Shopline-Topic string required事件的唯一标识。例子:
orders/edited - X-Shopline-Hmac-Sha256 string required该请求的签名。收到请求后,你需要对该签名进行 验签 以验证数据的真实性和完整性。例子:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string required店铺的域名。例子:
example.myshopline.com - X-Shopline-Shop-Id string required店铺 ID。例子:
1610418123456 - X-Shopline-Merchant-Id string required商家 ID。例子:
2000001234 - X-Shopline-API-Version string requiredAPI 版本号。例子:
v20250601 - X-Shopline-Webhook-Id string required该 Webhook 事件的 ID。例子:
b54557e48a5fbf7d70bcd043
请求体
- accepts_marketing boolean是否订阅邮件例子:
true - accepts_marketing_updated_at string邮箱订阅时间例子:
2022-12-16T11:06:11+08:00 - accepts_mobile_marketing boolean是否接受电话营销例子:
true - accepts_mobile_marketing_updated_at string电话订阅时间(格式见IOS8601)例子:
2022-12-16T11:06:11+08:00 addressesobject[]
地址信息列表address1 string地址1例子:7720 Cherokee Roadaddress2 string地址2例子:Apartmentcity string城市例子:Hagermancompany string公司例子:Joyycountry string国家例子:United Statescountry_code string国家编码例子:UScustomer_id string客户id例子:200093842default boolean是否默认地址例子:truefirst_name string名称例子:Bobid string地址id例子:SL201UA5006511321220969539last_name string姓例子:Jamesphone string手机号例子:008613978653472province string省例子:Kentuckyprovince_code string省编码例子:KYzip string邮政编码例子:40202- asid stringFB登录id例子:
542132312312323 - birthday string客户生日 格式为:YYYYMMDD例子:
19900625 - created_at string创建时间例子:
2022-12-16T11:06:11+08:00 - currency string币种例子:
CNY default_addressobject
默认地址address1 string地址1例子:7720 Cherokee Roadaddress2 string地址2例子:Apartmentcity string城市例子:Hagermancompany string公司例子:Joyycountry string国家例子:United Statescountry_code string国家编码例子:UScustomer_id string