事件分组事件标识
collection_listingscollection_listings/update
销售渠道分类变更事件
请求头
  • 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 required
    API 版本号。
    例子: v20250601
  • X-Shopline-Webhook-Id string required
    该 Webhook 事件的 ID。
    例子: b54557e48a5fbf7d70bcd043
请求体
  • collection_listingobject
    分类信息
  • bannerobject
    分类banner
  • alt string
    图片alt
    例子: This is a image alt
  • src string
    图片src
    例子: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • body_html string
    分类描述
    例子: This is a description
  • collection_type string
    分类类型:custom - 手动,smart - 智能
    例子: smart
  • created_at string
    创建时间
    例子: 2021-09-03T14:11:54+00:00
  • disjunctive string
    智能分类框定商品的条件之间的关系,true:商品符合任意一个条件,即可被纳入该智能分类中;false:商品必须满足所有条件必须全符合,才可被纳入该智能分类中
    例子: true
  • handle string
    分类Handle
    例子: collection-handle
  • id string
    id
    例子: 12253400918743462093302235
  • imageobject
    分类图片
  • column string
    图片alt
    例子: This is a image alt
  • src string
    图片src
    例子: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • published_at string
    发布到「在线商店」时间
    例子: 2021-09-03T14:11:54+00:00
  • published_scope string
    发布范围,值为「web」时表示在线商店
    例子: 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_definition
    例子: product_metafield_definition
  • condition string
    条件值
    例子: true
  • relation string
    判断语句, 等于:equals,不等于:not_equals,开头为:starts_with,结尾为:ends_with,包含:contains,不包含:not_contains,大于:greater_than,小于:less_than
    例子: equals
  • sort_order string
    排序方式,热销:best-selling,产品名称从A-Z:alpha-asc,产品名称从Z- A:alpha-desc,更新时间新→旧:updated-desc,更新时间旧→新:updated-asc,自定义:manual
    例子: updated-desc
  • template_path string
    主题模板
    例子: templates/sortation/detail.json
  • title string
    分类标题
    例子: This is a title
  • updated_at string
    更新时间
    例子: 2021-09-03T14:11:54+00:00
状态码
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?