客户启用
事件分组 | 事件标识 |
---|---|
customers | customers/enable |
客户启用
请求头
- 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:""
address2 string地址2Example:""
city string城市Example:广州市
company string公司Example:阿里巴巴
country string国家Example:中国
country_code string国家编码Example:23424
customer_id string客户idExample:200043535
default boolean是否默认地址Example:true
first_name string名称Example:三
id string地址idExample:SL201423432534534
last_name string姓Example:张
phone string手机号Example:008613987854391
province string省Example:广东省
province_code string省编码Example:303924
zip string邮政编码Example:241000
- asid stringFB登录idExample:
""
- birthday string客户生日 格式为:YYYYMMDDExample:
19900823
- created_at string创建时间Example:
2022-12-16T11:06:11+08:00
- currency string币种Example:
CNY
default_addressobject
默认地址address1 string地址1Example:""
address2 string地址2Example:""
city string城市Example:广州市
company string公司Example:""
country string国家Example:中国
country_code string国家编码Example:""
customer_id string客户idExample:20034353
default boolean是否默认地址Example:true
first_name string名称Example:三
id string地址idExample:SL20123432325435
last_name string姓Example:张
phone string手机号Example:008613989456732
province string省Example:广东省
province_code string省编码Example:""
zip string邮政编码Example:241000
- email string邮箱Example:
234682346@163.com
email_marketing_consentobject
邮件营销订阅信息consent_collected_from string订阅信息来源Example:""
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:未订阅;3:订阅确认中)Example:1
- email_subscribe_flag integer邮箱订阅状态 0:取消订阅,1:已订阅,2:未订阅Example:
2
- first_name string名字Example:
三
- gender string性别:male / female / others/secretExample:
male
- id string客户idExample:
20098324
- language string客户所用语言Example:
EN
- last_name string姓氏Example:
张
- last_order_id string最近一笔订单号Example:
342523532535
- mobile_subscribe_flag integer手机订阅状态0:取消订阅,1:已订阅,2:未订阅Example:
1
- multipass_identifier stringmultipass标识Example:
测试
- nick_name string用户昵称Example:
张三
- note string备注Example:
你好
- orders_count long订单数量Example:
243
- phone string手机号Example:
008613987857435
sms_marketing_consentobject
短信营销订阅信息consent_collected_from string订阅信息来源Example:""
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:
"'
- state string客户状态【0 : 已禁用账户,1:待启用账户,2:已邀请账户,3:有效账户】Example:
2
- tags string客户标签Example:
测试
- total_spent string总花费金额Example:
4353535
- 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 概述。
这篇文章对你有帮助吗?