事件分组事件标识
cartscarts/update
当购物车有更新时候触发
请求头
  • X-Shopline-Topic string required
    事件操作标识
    Example: orders/edited
  • X-Shopline-Hmac-Sha256 string required
    签名
    Example: XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
  • X-Shopline-Shop-Domain string required
    店铺域名
    Example: shophub.myshopline.com
  • X-Shopline-Shop-Id string required
    店铺id
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    商户ID
    Example: 2000001234
  • X-Shopline-API-Version string required
    版本号
    Example: v20210901
  • X-Shopline-Webhook-Id string required
    消息ID
    Example: b54557e48a5fbf7d70bcd043
请求体
  • created_at string
    创建时间
  • discount_codesobject[]
    优惠码列表
  • amount double
    优惠码金额
  • code string
    优惠码
  • type integer
    优惠码类型
  • id string
    购物车ID
    Example: 1234
  • line_itemsobject[]
    购物车商品信息
  • giftCard boolean
    是否为礼品卡商品
  • grams string
    商品重量 单位 g
  • id string
    商品行ID
  • original_line_price double
    商品行价格 (优惠前)
  • original_price double
    单个商品价格 (优惠前)
  • price double
    单个商品价格 (优惠前)
  • product_id string
    商品spu
  • propertiesobject[]
    商品属性信息
  • name string
    属性名
  • show boolean
    是否要在前端展示
  • urls array
    url列表
    Example: ``
  • value string
    属性值
  • quantity integer
    商品行商品的数量
  • sku string
    商品码,barCode
  • taxable boolean
    是否收税
  • title string
    商品标题
  • variant_id string
    商品sku序列号
  • token string
    购物车token
  • total_amount double
    购物车小计(减去各种优惠后)
  • updated_at string
    更新时间
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?