结账更新
事件分组 | 事件标识 |
---|---|
checkouts | checkouts/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店铺idExample:
1610418123456
- X-Shopline-Merchant-Id string required商户IDExample:
2000001234
- X-Shopline-API-Version string required版本号Example:
v20210901
- X-Shopline-Webhook-Id string required消息IDExample:
b54557e48a5fbf7d70bcd043
请求体
- abandoned_checkout_url string弃单链接
applied_discountsobject[]
整单级别的应用的折扣;amount string折扣的金额application_type string折扣类型:折扣码、自动折扣、手动折扣;target_selection stringalltarget_type stringline_item、shipping_linetitle string活动标题value string折扣值value_type string固定金额、百分比billing_addressobject
账号地址address1 string地址1address2 string地址2city 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地址1address2 string地址2city 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买家idlast_name string名phone string手机号码discount_codesobject[]
优惠信息amount double优惠金额title string优惠名称type integer1:表示价格优惠- email string邮箱
- id stringCheckout Token
line_itemsobject[]
商品信息applied_discountsobject[]
商品行级别的应用的折扣;amount string折扣的金额application_type string折扣类型:折扣码、自动折扣、手动折扣;target_selection stringexplicit、ENTITLEDtarget_type stringline_itemtitle 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属性urlExample: ``value string属性值quantity integer商品数量requires_shipping boolean是否需要发货sku string商品编码 barCodetax_linesobject[]
税费信息price double价格tax_no string税费号title string税费名称type string税费类型 product_tax 商品税,express_tax 运费税taxable boolean是否收税title string标题user_id string用户idvariant_id string商品skuIDvariant_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地址2address2 string地址2city 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 stringcheckout token
- total_discount string总折扣金额
- total_duties string总关税
- total_price double总价
- total_tax string总税费金额
- total_weight double总重量
- update_at string更新时间
- user_id string用户id
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?