分类更新
事件分组 | 事件标识 |
---|---|
categories | categories/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
请求体
collectionobject
分类信息bannerobject
分类banneralt string图片altExample:This is a image alt
src string图片srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
body_html string描述Example:This is a description
collection_type string分类类型,custom,smartExample:smart
created_at string创建时间Example:2021-09-03T14:11:54+00:00
disjunctive boolean智能分类框定商品的条件之间的关系,true:商品符合任意一个条件,即可被纳入该智能分类中;false:商品必须满足所有条件必须全符合,才可被纳入该智能分类中Example:true
handle string分类handleExample:collection-handle
id string分类IDExample:12248721639068681442230282
imageobject
分类图片alt string图片altExample:This is a image alt
src string图片srcExample:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
published_at string发布到在线商店的时间Example:2021-09-03T14:11:54+00:00
published_scope string设置发布范围,值为「web」时表示在线商店Example:web
rulesobject[]
智能添加条件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_definitionExample:product_metafield_definition
condition string判断语句, 等于:equals,不等于:not_equals,开头为:starts_with,结尾为:ends_with,包含:contains,不包含:not_contains,大于:greater_than,小于:less_thanExample:equals
relation string条件值Example:true
sort_order string排序方式,热销:best-selling,产品名称从A-Z:alpha-asc,产品名称从Z- A:alpha-desc,更新时间新→旧:updated-desc,更新时间旧→新:updated-asc,自定义:manualExample:updated-desc
template_path string主题模板Example:templates/sortation/detail.json
title string标题Example:This is a title
updated_at string更新时间Example:2021-09-03T14:11:54+00:00
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?
Error loading component.