事件分组事件标识
companycompany/action
更新目录中变体定价规则的消息
请求头
  • 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
请求体
  • catalog_variant_price_ruleobject
    目录变体价格规则
  • catalog_id string
    目录id
    Example: 6505476185111667646
  • percent integer
    percent_type进行调整的数值,格式为百分比
    • 调低价格时,值限制为0~100
    • 调高价格时,值限制为0~10000
    Example: 10
  • percent_type integer
    按百分比进行调整的类型,值为1表示调低价格,值为2表示调高价格
    Example: 1
  • price string
    固定价格,仅当price_adjustment_method=2时有值
    Example: 100
  • price_adjustment_method integer
    价格调整的类型,值为1表示按百分比调整,值为2表示固定价格(默认)。
    Example: 1
  • product_id string
    目录中产品的id
    Example: 16064679140646857045521690
  • quantity_price_breaksobject[]
    梯度价格列表
  • minimum_qty integer
    梯度最小购买数量
    Example: 2
  • percent integer
    percent_type进行调整的数值,格式为百分比
    • 调低价格时,值限制为0~100
    • 调高价格时,值限制为0~10000
    Example: 10
  • percent_type integer
    按百分比进行调整的类型,值为1表示调低价格,值为2表示调高价格
    Example: 1
  • price string
    固定价格,仅当price_adjustment_method=2时有值
    Example: 100
  • quantity_rulesobject
    购买数量的规则
  • increment integer
    购买数量增量,每次增加的数量必须是增量的倍数
    Example: 2
  • maximum integer
    最大值
    Example: 100
  • minimum integer
    最小值
    Example: 2
  • variant_id string
    目录中变体的id
    Example: 18064419722745311498141690
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?