Event GroupEvent Identification
categoriescategories/update
Collection update
Request Headers
  • X-Shopline-Topic string required
    Event operation identification
    Example: orders/edited
  • X-Shopline-Hmac-Sha256 string required
    Signature
    Example: XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
  • X-Shopline-Shop-Domain string required
    Shop domain
    Example: shophub.myshopline.com
  • X-Shopline-Shop-Id string required
    Shop ID
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    Merchant ID
    Example: 2000001234
  • X-Shopline-API-Version string required
    Version
    Example: v20210901
  • X-Shopline-Webhook-Id string required
    Message ID
    Example: b54557e48a5fbf7d70bcd043
Request Body
  • collectionobject
    Category information
  • bannerobject
    Category banner
  • alt string
    Picture alt
    Example: This is a image alt
  • src string
    Images src
    Example: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • body_html string
    Description
    Example: This is a description
  • collection_type string
    Category type, custom, smart
    Example: smart
  • created_at string
    Creation time
    Example: 2021-09-03T14:11:54+00:00
  • disjunctive boolean
    The relationship between the conditions of the intelligent classification box and the Product is fixed . true : Product meets any conditions and can be incorporated into this intelligent classification ; false : Product must meet all conditions and must be fully compliant to be incorporated into this intelligent classification
    Example: true
  • handle string
    Category handle
    Example: collection-handle
  • id string
    Category id
    Example: 12248721639068681442230282
  • imageobject
    Classification images
  • alt string
    Picture alt
    Example: This is a image alt
  • src string
    Images src
    Example: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • published_at string
    Time to post to online stores
    Example: 2021-09-03T14:11:54+00:00
  • published_scope string
    Set the launch range , when the value is " web " , it means online stores
    Example: web
  • rulesobject[]
    Smartly add condition
  • column string
    Conditions variable , title : title , selling price : sale_price , original price : compared_at_price , tag : tag , inventory : inventory , supplier : vendor ,Weight : variant_weight , specification name : variant_title , created time : created_at , sales : sales , browsing : view , purchase : add_to_cart ,Custom type : type , standardized product type : product_taxonomy_node_id , field of origin : product_metafield_definition
    Example: product_metafield_definition
  • condition string
    The if-else statement is equal to : equals , not equal to : not_equals , the beginning is : starts_with , the end is : ends_with , including : contains , not included : not_contains ,Greater than : greater_than , less than : less_than
    Example: equals
  • relation string
    Conditions
    Example: true
  • sort_order string
    Product name , sort by , hot sale : best-selling , product name from a-z : alpha-asc , product name from z-a : alpha-desc , new update time → old : updated-desc ,Update time old → new : updated-asc , custom : manual
    Example: updated-desc
  • template_path string
    Theme template
    Example: templates/sortation/detail.json
  • title string
    Headline
    Example: This is a title
  • updated_at string
    Update time
    Example: 2021-09-03T14:11:54+00:00
Response
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OK
For more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?