事件分组事件标识
categoriescategories/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
    店铺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
请求体
  • collectionobject
    分类信息
  • bannerobject
    分类banner
  • alt string
    图片alt
    Example: This is a image alt
  • src string
    图片src
    Example: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • body_html string
    描述
    Example: This is a description
  • collection_type string
    分类类型,custom,smart
    Example: smart
  • created_at string
    创建时间
    Example: 2021-09-03T14:11:54+00:00
  • disjunctive boolean
    智能分类框定商品的条件之间的关系,true:商品符合任意一个条件,即可被纳入该智能分类中;false:商品必须满足所有条件必须全符合,才可被纳入该智能分类中
    Example: true
  • handle string
    分类handle
    Example: collection-handle
  • id string
    分类ID
    Example: 12248721639068681442230282
  • imageobject
    分类图片
  • alt string
    图片alt
    Example: This is a image alt
  • src string
    图片src
    Example: 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_definition
    Example: product_metafield_definition
  • condition string
    判断语句, 等于:equals,不等于:not_equals,开头为:starts_with,结尾为:ends_with,包含:contains,不包含:not_contains,大于:greater_than,小于:less_than
    Example: equals
  • relation string
    条件值
    Example: true
  • sort_order string
    排序方式,热销:best-selling,产品名称从A-Z:alpha-asc,产品名称从Z- A:alpha-desc,更新时间新→旧:updated-desc,更新时间旧→新:updated-asc,自定义:manual
    Example: 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.

Error loading component.