Event GroupEvent Identification
collectcollect/create
Create categories-Product relationship
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
  • collection_id string
    Category id
    Example: 12248721639068681442230282
  • created_at string
    Creation time
    Example: 2022-12-06T15:13:50+08:00
  • product_id string
    Product ID
    Example: 16057039432335097907370282
  • product_priority long
    Product priority(non-consecutive, lower values represent higher priority)
    Example: 10000000000000
  • sort_value string
    Commodity sorting value, same as the product priority value but zero fill to 20 digits in front
    Example: 00000010000000000000
  • updated_at string
    Update time
    Example: 2022-12-06T15:13:50+08: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?