客户编辑
事件分组 | 事件标识 |
---|---|
customers | customers/update |
客户更新
请求头
- X-Shopline-Topic string required事件操作标识Example:
orders/edited
- X-Shopline-Hmac-Sha256 string required签名Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-Shopline-Shop-Domain string required店铺域名Example:
shophub.myshopline.com
- X-Shopline-Shop-Id string required店铺idExample:
1610418123456
- X-Shopline-Merchant-Id string required商户IDExample:
2000001234
- X-Shopline-API-Version string required版本号Example:
v20210901
- X-Shopline-Webhook-Id string required消息IDExample:
b54557e48a5fbf7d70bcd043
请求体
- accepts_marketing boolean是否订阅邮件Example:
true
- accepts_marketing_updated_at string邮箱订阅时间Example:
2022-12-16T11:06:11+08:00
- accepts_mobile_marketing boolean是否接受电话营销Example:
true
- accepts_mobile_marketing_updated_at string电话订阅时间(格式见IOS8601)Example:
2022-12-16T11:06:11+08:00
addressesobject[]
地址信息列表address1 string地址1Example:7720 Cherokee Road
address2 string地址2Example:Apartment
city string城市Example:Hagerman
company string公司Example:Joyy
country string国家Example:United States
country_code string国家编码Example:US
customer_id string客户idExample:200093842
default boolean是否默认地址Example:true
first_name string名称Example:Bob
id string地址idExample:SL201UA5006511321220969539
last_name string姓Example:James
phone string手机号Example:008613978653472
province string省Example:Kentucky
province_code string省编码Example:KY
zip string邮政编码Example:40202
- asid stringFB登录idExample:
542132312312323
- birthday string客户生日 格式为:YYYYMMDDExample:
19900625
- created_at string创建时间Example:
2022-12-16T11:06:11+08:00
- currency string币种Example:
CNY
default_addressobject
默认地址address1 string地址1Example:7720 Cherokee Road
address2 string地址2Example:Apartment
city string城市Example:Hagerman
company string公司Example:Joyy
country string国家Example:United States
country_code string国家编码Example:US
customer_id string客户idExample:200838473
default boolean是否默认地址Example:true
first_name string名称Example:Bob
id string地址idExample:SL201UA5006511321220969539
last_name string姓Example:James
phone string手机号Example:008613965748321
province string省Example:Kentucky
province_code string省编码Example:KY
zip string邮政编码Example:40202
- email string邮箱Example:
gungcherny@gamil.com
email_marketing_consentobject
邮件营销订阅信息consent_collected_from string订阅信息来源Example:Subscription information source
consent_updated_at string订阅变更时间Example:2022-12-16T11:06:11+08:00
opt_in_level integer订阅方式(0;1;2)Example:2
state integer订阅状态(0:取消订阅;1:已订阅;2:未订阅;3:订阅确认中)Example:2
- email_subscribe_flag integer邮箱订阅状态 0:取消订阅,1:已订阅,2:未订阅Example:
2
- first_name string名字Example:
Bob
- gender string性别:male / female / others/secretExample:
male
- id string客户idExample:
231321312321
- language string客户所用语言Example:
en
- last_name string姓氏Example:
James
- last_order_id string最近一笔订单号Example:
200832869120938
- mobile_subscribe_flag integer手机订阅状态0:取消订阅,1:已订阅,2:未订阅Example:
2
- multipass_identifier stringmultipass标识Example:
multipass_identifier
- nick_name string用户昵称Example:
Bob James
- note string备注Example:
test
- orders_count long订单数量Example:
4223
- phone string手机号Example:
008613987864352
sms_marketing_consentobject
短信营销订阅信息consent_collected_from string订阅信息来源Example:Subscription information source
consent_updated_at string订阅变更时间Example:2022-12-16T11:06:11+08:00
opt_in_level integer订阅方式(0;1;2)Example:1
state integer订阅状态(0:取消订阅;1:已订阅;2:未订阅)Example:1
- social_customer string社媒用户idExample:
43245645353245
- state integer客户状态【0 : 已禁用账户,1:待启用账户,2:已邀请账户,3:有效账户】Example:
2
- tags string客户标签Example:
good
- total_spent string总花费金额Example:
324324
- updated_at string更新时间Example:
2022-12-16T11:06:11+08:00
- verified_email boolean是否验证邮件Example:
true
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?