Event GroupEvent Identification
cartscarts/update
Triggered when the shopping cart is updated
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
    Example: 1234
  • line_itemsobject[]
    Shopping cart listings
  • giftCard boolean
    Wei or not for gift cards
  • grams string
    Product weight units g
  • id string
    Product row id
  • original_line_price double
    Product line price ( pre Discount )
  • original_price double
    Individual item prices ( before Discount )
  • price double
    Individual item prices ( before Discount )
  • product_id string
    Product spu
  • propertiesobject[]
    Product attributes information
  • name string
    Attribute name
  • show boolean
    To be displayed on the front end or not
  • urls array
    Url list
    Example: ``
  • value string
    Attribute value
  • quantity integer
    Product row Product quantity
  • sku string
    Product code, barCode
  • taxable boolean
    Tax or not?
  • title string
    Product title
  • variant_id string
    Product SKU serial number
  • token string
    Shopping cart token
  • total_amount double
    Shopping cart sub total ( minus various Discount )
  • 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?