Event GroupEvent Identification
cartscarts/create
Triggered when shopping cart is created
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
  • created_at string
    Creation time
  • discount_codesobject[]
    Promo code listing
  • amount double
    Promo code amount
  • code string
    Promo code
  • type integer
    Promo code type
  • id string
    Shopping cart id
  • line_itemsobject[]
    Product
  • giftCard boolean
    Wei or not for gift cards
  • grams string
    Product weight in logistics information
  • id string
    lineId
  • original_line_price double
    Product original price
  • original_price double
    Original price
  • price double
    Original price
  • product_id string
    Product spu
  • prppertiesobject[]
    Attributes
  • name string
    Attribute name
  • show boolean
    Show or not
  • urls array
    Attributes images
    Example: ``
  • value string
    Attribute value
  • quantity integer
    Quantity
  • sku string
    Product code , batCode
  • taxable boolean
    Tax or not?
  • title string
    Product name
  • variant_id string
    Product SKU serial number
  • token string
    Shopping cart id
  • total_amount double
    Shopping cart sub total
  • updated_at string
    Update time
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?