结账创建
事件分组 | 事件标识 |
---|---|
checkouts | checkouts/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店铺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 integer优惠类型 1=表示价格优惠- 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 stringexpress_tax运费税, product_tax 商品税taxable boolean是否收税title string标题user_id string用户idvariant_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地址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邮编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 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 概述。
这篇文章对你有帮助吗?