Event GroupEvent Identification
productsproducts/create
product creation
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
  • body_html string
    Description
    Example: This is a description
  • created_at string
    Creation time
    Example: 2023-03-02T18:18:42.883+0800
  • handle string
    Product handle
    Example: product-handle
  • id string
    Product ID
    Example: 16058287356753569620272670
  • imageobject
    Product main image
  • alt string
    Picture alt
    Example: This is a image alt
  • src string
    Images src
    Example: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • imagesobject[]
    Images
  • alt string
    Picture alt
    Example: This is a image alt
  • src string
    Images src
    Example: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • optionsobject[]
    Option list
  • id string
    Option id
    Example: 16158288104774469113452670
  • name string
    Option name
    Example: Color
  • product_id string
    Duiying id corresponding
    Example: 16058287356753569620272670
  • values array
    List of options value
    Example: ["Red", "Green", "White"]
  • values_images map
    Option value chart
    Example: [object Object]
  • product_behavior string
    Product behavior
    Example: RISK,HIDDEN
  • product_category string
    Product polymer type
    Example: Electronic
  • product_type string
    Product type
    Example: Electronic
  • published_at string
    Time to post to online stores
    Example: 2023-03-02T18:18:42.883+0800
  • published_scope string
    Launch range , " web " means online stores
    Example: web
  • spu string
    Size s pu
    Example: S000001
  • status string
    Product status : active- on shelf , draft- off shelf , archived- filing
    Example: active
  • subtitle string
    Summary
    Example: This is a subtitle
  • tags string
    Tag
    Example: tag1,tag2
  • template_path string
    Theme template
    Example: templates/products/detail.json
  • title string
    Headline
    Example: This is a title
  • updated_at string
    Update time
    Example: 2023-03-02T18:18:42.883+0800
  • variantsobject[]
    Style list
  • barcode string
    Bar code
    Example: B000000001
  • compare_at_price string
    Original price
    Example: 10
  • id string
    Style id
    Example: 18054026339558906501791422
  • imageobject
    Images
  • alt string
    Picture alt
    Example: This is a image alt
  • src string
    Images src
    Example: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • inventory_item_id string
    Stock object id
    Example: 5482608456602009969
  • inventory_policy string
    Allows oversold , continue or not : allowed , deny : not allowed
    Example: continue
  • inventory_quantity integer
    Suoyou summary of all locations
    Example: 100
  • inventory_tracker boolean
    Track inventory or not
    Example: true
  • option1 string
    Value for the first option that this style corresponds to
    Example: Red
  • option2 string
    Value for the second option that this style corresponds to
    Example: L
  • option3 string
    Value for the third option that this style corresponds to
  • option4 string
    Value of the fourth option that this style corresponds to
  • option5 string
    Value for the fifth option that this style corresponds to
  • price string
    Selling price
    Example: 20
  • product_id string
    Duiying id corresponding
    Example: 16058287356753569620272670
  • required_shipping boolean
    Shipping or not
  • sku string
    Sku
    Example: T000001
  • taxable boolean
    Tax collection or not required
  • title string
    Style title
    Example: Red/L
  • weight string
    Weight
    Example: 10
  • weight_unit string
    Unit of weight, g: grams kg: kilograms lb: pounds oz: ounces zh_kg: kilograms
    Example: g
  • vendor string
    Product manufacturer
    Example: Shopline
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?