销售计划组更新
事件分组 | 事件标识 |
---|---|
sellingplan | sellingplan/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店铺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
请求体
- app_id string销售渠道IDExample:
c41ac9e6736785502d2333d1b1153aca795075c4
- description string描述Example:
This is a description
- id string销售计划组IDExample:
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、YEARExample: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销售计划IDExample: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 概述。
这篇文章对你有帮助吗?