事件分组事件标识
customerscustomers/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
    店铺id
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    商户ID
    Example: 2000001234
  • X-Shopline-API-Version string required
    版本号
    Example: v20210901
  • X-Shopline-Webhook-Id string required
    消息ID
    Example: 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
    地址1
    Example: ""
  • address2 string
    地址2
    Example: ""
  • city string
    城市
    Example: 广州市
  • company string
    公司
    Example: 阿里巴巴
  • country string
    国家
    Example: 中国
  • country_code string
    国家编码
    Example: 23424
  • customer_id string
    客户id
    Example: 200043535
  • default boolean
    是否默认地址
    Example: true
  • first_name string
    名称
    Example:
  • id string
    地址id
    Example: SL201423432534534
  • last_name string
    Example:
  • phone string
    手机号
    Example: 008613987854391
  • province string
    Example: 广东省
  • province_code string
    省编码
    Example: 303924
  • zip string
    邮政编码
    Example: 241000
  • asid string
    FB登录id
    Example: ""
  • birthday string
    客户生日 格式为:YYYYMMDD
    Example: 19900823
  • created_at string
    创建时间
    Example: 2022-12-16T11:06:11+08:00
  • currency string
    币种
    Example: CNY
  • default_addressobject
    默认地址
  • address1 string
    地址1
    Example: ""
  • address2 string
    地址2
    Example: ""
  • city string
    城市
    Example: 广州市
  • company string
    公司
    Example: ""
  • country string
    国家
    Example: 中国
  • country_code string
    国家编码
    Example: ""
  • customer_id string
    客户id
    Example: 20034353
  • default boolean
    是否默认地址
    Example: true
  • first_name string
    名称
    Example:
  • id string
    地址id
    Example: 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/secret
    Example: male
  • id string
    客户id
    Example: 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 string
    multipass标识
    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
    社媒用户id
    Example: "'
  • 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 概述
这篇文章对你有帮助吗?