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
    Image alt
    Example: This is a image alt
  • src string
    Image src
    Example: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • imagesobject[]
    Images
  • alt string
    Image alt
    Example: This is a image alt
  • src string
    Image 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
    Product id
    Example: 16058287356753569620272670
  • values array
    List of option value
    Example: ["Red", "Green", "White"]
  • values_images map
    The image of option value
    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
    Set the sales channel , when the value is " web " , it means online stores
    Example: web
  • spu string
    SPU code
    Example: S000001
  • status string
    Product status ; activated- on shelves , deactivated- off shelves , 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
    Product title
    Example: This is a title
  • updated_at string
    Update time
    Example: 2023-03-02T18:18:42.883+0800
  • variantsobject[]
    Variant list
  • barcode string
    Barcode
    Example: B000000001
  • compare_at_price string
    Original price
    Example: 10
  • id string
    Variant id
    Example: 18054026339558906501791422
  • imageobject
    Variant image
  • alt string
    Image alt
    Example: This is a image alt
  • src string
    Image src
    Example: https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
  • inventory_item_id string
    Inventory item id
    Example: 5482608456602009969
  • inventory_policy string
    Oversold strategy: deny - Oversold is not allowed, continue - Oversold is allowed
    Example: continue
  • inventory_quantity integer
    Inventory summary for all locations
    Example: 100
  • inventory_tracker boolean
    Track inventory or not
    Example: true
  • option1 string
    The variant corresponds to the value of the option1
    Example: Red
  • option2 string
    The variant corresponds to the value of the option2
    Example: L
  • option3 string
    The variant corresponds to the value of the option3
  • option4 string
    The variant corresponds to the value of the option4
  • option5 string
    The variant corresponds to the value of the option5
  • price string
    Selling price
    Example: 20
  • product_id string
    Product id
    Example: 16058287356753569620272670
  • required_shipping boolean
    Shipping or not
  • sku string
    SKU code
    Example: T000001
  • taxable boolean
    Tax collection or not required
  • title string
    Variant title
    Example: Red/L
  • weight string
    Weight
    Example: 10
  • weight_unit string
    Weight units : g , kg , lb , oz , zh_kg
    Example: g
  • vendor string
    Product vendor
    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?

Error loading component.

Error loading component.