客户禁用
事件分组 | 事件标识 |
---|---|
customers | customers/disable |
客户禁用
请求头
- 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是否订阅邮件
- accepts_marketing_updated_at string邮箱订阅时间
- accepts_mobile_marketing boolean是否接受电话营销
- accepts_mobile_marketing_updated_at string电话订阅时间(格式见IOS8601)
addressesobject[]
地址信息列表address1 string地址1address2 string地址2city string城市company string公司country string国家country_code string国家编码customer_id string客户iddefault boolean是否默认地址first_name string名称id string地址idlast_name string姓phone string手机号province string省province_code string省编码zip string邮政编码- asid stringFB登录id
- birthday string客户生日 格式为:YYYYMMDD
- created_at string创建时间
- currency string币种
default_addressobject
默认地址address1 string地址1address2 string地址2city string城市company string公司country string国家country_code string国家编码customer_id string客户iddefault boolean是否默认地址first_name string名称id string地址idlast_name string姓phone string手机号province string省province_code string省编码zip string邮政编码- email string邮箱
- email_subscribe_flag integer邮箱订阅状态 0:取消订阅,1:已订阅,2:未订阅
- first_name string名字
- gender string性别:male / female / others/secret
- id string客户id
- language string客户所用语言
- last_name string姓氏
- last_order_id string最近一笔订单号
- mobile_subscribe_flag integer手机订阅状态0:取消订阅,1:已订阅,2:未订阅
- nick_name string用户昵称
- note string备注
- orders_count long订单数量
- phone string手机号
- social_customer string社媒用户id
- state string客户状态【0 : 已禁用账户,1:待启用账户,2:已邀请账户,3:有效账户】
- tags string客户标签
- total_spent string总花费金额
- updated_at string更新时间
- verified_email boolean是否验证邮件
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?
Error loading component.