事件分组事件标识
checkoutscheckouts/create
结算页创建时候触发
请求头
  • 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
请求体
  • abandoned_checkout_url string
    弃单链接
  • applied_discountsobject[]
    整单级别的应用的折扣
  • amount string
    折扣的金额
  • application_type string
    折扣类型:折扣码、自动折扣、手动折扣;
  • target_selection string
    all
  • target_type string
    line_item、shipping_line
  • title string
    活动标题
  • value string
    折扣值
  • value_type string
    固定金额、百分比
  • billing_addressobject
    账单地址信息
  • address1 string
    地址1
  • address2 string
    地址2
  • city string
    城市
  • country string
    国家
  • country_code string
    国家编码
  • first_name string
  • last_name string
  • name string
    全称
  • phone string
    手机号码
  • province string
  • province_code string
    省份编码
  • zip string
    邮编
  • buyer_accepts_marketing boolean
    是否订阅
  • cart_token string
    购物车token
  • closed_at string
    关闭时间
  • completed_at string
    完成时间
  • created_at string
    创建时间
  • currency string
    币种
  • customerobject
    买家信息
  • addressesobject
    地址信息
  • address1 string
    地址1
  • address2 string
    地址2
  • city string
    城市
  • country string
    国家
  • country_code string
    国家编码
  • first_name string
  • last_name string
  • name string
    全称
  • phone string
    手机号码
  • province string
  • province_code string
    省份编码
  • zip string
    邮编
  • currency string
    全称
  • email string
    邮箱
  • first_name string
  • id string
    买家id
  • last_name string
  • phone string
    手机号码
  • discount_codesobject[]
    优惠信息
  • amount double
    优惠金额
  • title string
    优惠名称
  • type integer
    优惠类型 1=表示价格优惠
  • email string
    邮箱
  • id string
    checkout token
  • line_itemsobject[]
    商品信息
  • applied_discountsobject[]
    商品行级别的应用的折扣;
  • amount string
    折扣的金额
  • application_type string
    折扣类型:折扣码、自动折扣、手动折扣
  • target_selection string
    explicit、ENTITLED
  • target_type string
    line_item
  • title string
    活动标题
  • value string
    折扣值
  • value_type string
    固定金额、百分比
  • gift_card boolean
    是否为礼品卡商品
  • grams double
    重量
  • line_price double
    行价格
  • presentment_title string
    当前商品标题
  • price double
    售价
  • product_id string
    商品序号
  • propertiesobject[]
    商品属性
  • name string
    属性名称
  • show boolean
    是否展示
  • urls array
    属性url
    Example: ``
  • value string
    属性值
  • quantity integer
    商品数量
  • requires_shipping boolean
    是否要求发货
  • sku string
    商品编码 barCode
  • tax_linesobject[]
    税费信息
  • price double
    税费价格
  • tax_no string
    税费号
  • title string
    税费名称
  • type string
    express_tax运费税, product_tax 商品税
  • taxable boolean
    是否收税
  • title string
    标题
  • user_id string
    用户id
  • variant_id string
    商品sku序列号
  • variant_price double
    商品原价
  • name string
    名称
  • note string
    备注
  • note_attributesobject[]
    附加信息
  • name string
    名称
  • value string
  • phone string
    手机号码
  • phone_area_code string
    手机号区号
    Example: 86
  • presentment_currency string
    当前币种
  • shipping_addressobject
    收货地址
  • address1 string
    地址1
  • address2 string
    地址2
  • city string
    城市
  • country string
    国家
  • country_code string
    国家编码
  • first_name string
  • last_name string
  • name string
    全称
  • phone string
    手机号码
  • province string
  • province_code string
    省份编码
  • zip string
    邮编
  • shipping_linesobject[]
    送货信息
  • code string
    送货方式名称
  • delivery_name string
    送货方式名称
  • delivery_seq string
    送货方式
  • logistics_amount double
    运费金额
  • phone string
    电话
  • sub_total_price double
    小计
  • taxes_included boolean
    是否含税
  • token string
    checkout token
  • total_discount double
    总折扣金额
  • total_duties string
    总关税
  • total_price double
    总价
  • total_tax double
    总税费金额
  • total_weight double
    总计重量
  • update_at string
    更新时间
  • user_id string
    用户id
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述
这篇文章对你有帮助吗?