事件分组事件标识
merchantsmerchants/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
    店铺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
请求体
  • biz_store_status string
    店铺业务状态, 待启用 1, 营业中 2, 已打烊 3, 已冻结 4, 已停用 5
    Example: 1
  • created_at string
    商店创建时间(格式见IOS 8601)
    Example: 2021-09-16T13:03:48+08:00
  • currency string
    商店与顾客结算的货币(枚举值参考:IOS 4217)
    Example: USD
  • customer_email string
    商家与顾客联系的邮箱
    Example: bar@shoplineapp.com
  • domain string
    商店的主域名
    Example: handle.myshopline.com
  • email string
    shopline与商家联系的邮箱
    Example: foo@shoplineapp.com
  • iana_timezone string
    商店配置的时区
    Example: Asia/Shanghai
  • id string
    商店的唯一ID
    Example: 1631700219512
  • language string
    客户进入到您的网店时,默认看到的语言,您可在店铺的设置-语言内完成语言的修改
    Example: en
  • location_country_code string
    店铺所在地区
    Example: CN
  • merchant_id string
    店铺所属的商家id
    Example: 4216472541
  • name string
    商店名称
    Example: Shopline
  • sales_channelsobject[]
    店铺已安装的销售渠道列表
  • channel_handle string
    销售渠道handle标识
    Example: web
  • standard_logo string
    店铺标准logo
    Example: https://d2w9suv6wak03e.cloudfront.net/image/store/3100111249/1624603774370/32c8ea2e39ad480fa7a94d36ce013f25.png?w=102&h=113
  • updated_at string
    商店的基础配置更新时间 (修改名称、域名、结算货币、邮箱、时区,均会更新此时间)(格式见IOS 8601)
    Example: 2021-09-16T13:03:48+08:00
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?