新增商品分类到销售渠道
| 事件分组 | 事件标识 |
|---|---|
| collection_listings | collection_listings/add |
销售渠道分类添加通知
请求头
- X-Shopline-Topic string required事件的唯一标识。例子:
orders/edited - X-Shopline-Hmac-Sha256 string required该请求的签名。收到请求后,你需要对该签名进行 验签 以验证数据的真实性和完整性。例子:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string required店铺的域名。例子:
example.myshopline.com - X-Shopline-Shop-Id string required店铺 ID。例子:
1610418123456 - X-Shopline-Merchant-Id string required商家 ID。例子:
2000001234 - X-Shopline-API-Version string requiredAPI 版本号。例子:
v20250601 - X-Shopline-Webhook-Id string required该 Webhook 事件的 ID。例子:
b54557e48a5fbf7d70bcd043
请求体
collection_listingobject
分类信息bannerobject
分类banneralt string图片alt例子:This is a image altsrc string图片src,长度不能超过240例子:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngbody_html string分类描述例子:This is a descriptioncollection_type string分类类型:custom - 手动,smart - 智能例子:customcreated_at string创建时间例子:2021-09-03T14:11:54+00:00disjunctive string智能分类框定商品的条件之间的关系,true:商品符合任意一个条件,即可被纳入该智能分类中;false:商品必须满足所有条件必须全符合,才可被纳入该智能分类中例子:truehandle string分类Handle例子:collection-handleid stringid例子:12253400918743462093302235imageobject
分类图片column string图片alt例子:This is a image altsrc string图片src例子:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngpublished_at string发布到在线商店的时间例子:2021-09-03T14:11:54+00:00published_scope string发布范围,值为「web」时表示在线商店例子:webrulesobject[]
智能添加条件column string条件变量,标题: title,售价: sale_price,原价: compared_at_price,标签: tag,库存: inventory,供应商: vendor,重量: variant_weight,规格名称: variant_title,创建时间: created_at,销量: sales,浏览量: view,加购量: add_to_cart,自定义类型:type,标准化产品类型:product_taxonomy_node_id,元字段:product_metafield_definition例子:product_metafield_definitioncondition string条件例子:truerelation string判断语句, 等于:equals,不等于:not_equals,开头为:starts_with,结尾为:ends_with,包含:contains,不包含:not_contains,大于:greater_than,小于:less_than例子:equalssort_order string排序方式,热销:best-selling,产品名称从A-Z:alpha-asc,产品名称从Z- A:alpha-desc,更新时间新→旧:updated-desc,更新时间旧→新:updated-as例子:updated-desctemplate_path string主题模板例子:templates/sortation/detail.jsontitle string分类标题例子:This is a titleupdated_at string更新时间例子:2021-09-03T14:11:54+00:00
状态码
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?