订单包裹更新
事件分组 | 事件标识 |
---|---|
fulfillments | fulfillments/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
请求体
- created_at string创建时间(格式见IOS8601)Example:
2021-08-18T23:59:59+08:00
- id string包裹编号Example:
1644828244663
line_itemsobject[]
商品列表fulfillable_quantity integer可发货数量Example:3
fulfillment_service string物流商名称,如果一种商品有多个不同的发货服务商,则以逗号分隔Example:顺丰国际
fulfillment_status string商品的发货状态, 发货状态, fulfilled-已发货; partial-部分发货; null-未发货;Example:fulfilled
gift_card boolean是否为礼品卡商品Example:true
grams double重量(克)Example:100
id string商品快照表的id, 系统生成,与订单号唯一确认一个商品Example:413
name stringsku标题Example:test-002
price string商品售价 double类型的字符串Example:8.00
price_setobject
商品售价,多币种信息presentment_moneyobject
买家侧金额信息amount string金额Example:8.00
currency_code string币种Example:USD
shop_moneyobject
卖家侧金额信息amount string金额Example:8.00
currency_code string币种Example:USD
product_id stringspu序列号Example:16056761559984840457934011
quantity integer商品数量Example:3
requires_shipping boolean是否需要发货Example:true
sku string商品码Example:18056761559987524812644011
tax_linesobject[]
税费信息price string价格Example:8.00
price_setobject
税费多币种信息presentment_moneyobject
买家侧金额信息amount string金额,double形式的字符串Example:8.00
currency_code string币种Example:USD
shop_moneyobject
卖家侧金额信息amount string金额,double形式的字符串Example:8.00
currency_code string币种Example:USD
rate double税率Example:1
title string税费名称Example:税费
taxable boolean是否收税Example:true
title string商品标题Example:漂亮的裙子
variant_id string商品sku序列号Example:18056761559987524812644011
variant_title string商品属性值, 多个以" / "分割Example:如: “155 / 红色 / 大"
vendor string供应商Example:供应商
- name string发货单短号Example:
1032-F2
- order_id string订单号Example:
2021-08-18T23:59:59+08:00
- shipment_status string包裹状态Example:
fulfilled
- status string物流配送状态, success-已发货; cancelled-已取消;Example:
success
- tracking_company string物流公司名称Example:
顺丰国际
- tracking_number string第三方物流单号Example:
yun001
- tracking_url string物流公司urlExample:
https://www.sf-international.com/
- updated_at string更新时间(格式见IOS8601)Example:
2022-11-04T10:18:46+00:00
响应
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK
关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?