事件分组事件标识
sellingplansellingplan/create
创建销售计划组
请求头
  • 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
请求体
  • app_id string
    销售渠道ID
    Example: c41ac9e6736785502d2333d1b1153aca795075c4
  • description string
    描述
    Example: This is a description
  • id string
    销售计划组ID
    Example: 14056200245844372441100009
  • merchant_code string
    展示给卖家看的名称
    Example: Subscription plan group default name
  • name string
    销售计划组名称
    Example: Subscription plan group default name
  • options array
    销售计划组选项列表
    Example: ["delivery every 1 months", "delivery every 2 months", "delivery every 3 months"]
  • position integer
    展示位置
    Example: 1
  • products array
    绑定的商品ID列表
    Example: ["16057039432335097907370282"]
  • selling_plansobject[]
    销售计划列表
  • billing_policyobject
    计费策略
  • policy_type string
    策略类型,RECURRING: 周期性计费策略
    Example: RECURRING
  • recurringobject
    周期性计费策略内容
  • interval string
    计费频率单位, DAY、MONTH、WEEK、YEAR
    Example: DAY
  • interval_count integer
    计费间隔
    Example: 10
  • max_cycles integer
    最大计费周期
    Example: 1
  • min_cycles integer
    最小计费周期
    Example: 1
  • description string
    销售计划描述
    Example: This is a description
  • id string
    销售计划ID
    Example: 14156213099368001129110062
  • name string
    销售计划名称
    Example: delivery every 1 weeks
  • options array
    销售计划选项列表
    Example: ["Delivery every 10 days"]
  • position integer
    展示位置,越小越靠前
    Example: 1
  • pricing_policiesobject[]
    价格策略
  • fixedobject
    固定价格策略内容
  • adjustment_type string
    优惠类型, FIXED_AMOUNT: 减额,PERCENTAGE: 折扣
    Example: FIXED_AMOUNT
  • adjustment_valueobject
    优惠值
  • fixed_value string
    扣减固定金额
    Example: 10
  • percentage string
    扣减百分比
    Example: 10
  • policy_type string
    策略类型,FIXED: 固定价格策略
    Example: FIXED
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?