履约单更新
| 事件分组 | 事件标识 |
|---|---|
| fulfillment_order | fulfillment_order/update |
履约单更新事件
请求头
- X-Shopline-Topic string required事件的唯一标识。例子:
orders/edited - X-Shopline-Hmac-Sha256 string required该请求的签名。收到请求后,你需要对该签名进行 验签 以验证数据的真实性和完整性。例子:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string required店铺的域名。例子:
example.myshopline.com - X-Shopline-Shop-Id string required店铺 ID。例子:
1610418123456 - X-Shopline-Merchant-Id string required商家 ID。例子:
2000001234 - X-Shopline-API-Version string requiredAPI 版本号。例子:
v20250601 - X-Shopline-Webhook-Id string required该 Webhook 事件的 ID。例子:
b54557e48a5fbf7d70bcd043
请求体
fulfillment_orderobject
履约详情assigned_locationobject
被分配的地点详情address1 string地址1例子:"Chestnut Street 92"address2 string地址2例子:"Chestnut Street 92"city string城市例子:"Louisville"country string国家例子:"United States"country_code string国家码例子:"US"location_id string地址id例子:"5327026538935748524"name string名称例子:"Apple Api Shipwire"phone string手机例子:"+1(502)-459-3417"province string省份例子:"Kentucky"zip string邮编例子:"40202"assigned_location_id string被分配的地点id例子:"5327026538935748524"delivery_methodobject
履约单配送方式信息max_delivery_date_time string最晚发货时间例子:"2021-05-26T10:00:00-04:00"method_type string配送方式:local、none、pick_up、retail、shipping例子:"none"min_delivery_date_time string可发货时间例子:"2021-05-26T10:00:00-04:00"service_code string承运商运费方案编号。shipping_rate_name string运费方案名称,当发货方式为SHIPPING或LOCAL_DELIVERY,才有运费方案名称。shipping_strategy_name string物流分组名称,当发货方式为SHIPPING或LOCAL_DELIVERY,才有对应的值。destinationobject
收货人信息address1 string地址1例子:"Chestnut Street 92"address2 string地址2例子:"Chestnut Street 92"city string城市例子:"Louisville"company string公司例子:"Apple inc"country string国家例子:"US"country_code string国家码例子:"US"delivery_store_code string本地配送门店id,仅本地配送时提供例子:"A121"delivery_store_name string本地配送门店名称,仅本地配送时提供例子:"Napo Shop"email string邮箱例子:"bob.norman@mail.example.com"first_name string名称例子:"Bob"last_name string姓氏例子:"Norman"name string姓名例子:"Bob Norman"phone string手机例子:"+1(502)-459-3417"province string省份例子:"Kentucky"province_code string州或是省编码,IOS 3166-2编码例子:"KY"zip string邮编例子:"40202"fulfillment_holdsobject[]
暂停信息reason string暂停原因例子:"out of stock"reason_note string暂停备注例子:"customer require"id string履约单id例子:"4005740193290131085320"line_itemsobject[]
商品行信息country_code_of_origin string原产地/发货地的国家代码例子:"US"fulfillable_quantity string可履约商品数量例子:1fulfillment_order_id string履约单id例子:"4005740193290131085320"harmonized_system_code string海关编码例子:"1231"id string履约单商品行id例子:"1039283"line_item_id string商品行id例子:"518995019"quantity long订单商品行商品数量例子:1shop_id string店铺id例子:"1644828244663"variant_id string商品sku例子:"18055128824718541486811487"merchant_requestsobject[]
请求发货信息列表kind string请求类型: ① fulfillment_request ② cancellation_request例子:"fulfillment_request"message string履约发货应用的备注例子:"accept"request_optionsobject
请求参数notify_customer boolean是否通知客户send_at string请求时间例子:"2021-05-26T10:00:00-04:00"order_id string订单id例子:"21057401932826316666967110"request_status string履约单请求状态,包括:accepted,cancellation_accepted,cancellation_rejected,cancellation_requested,closed,rejected,submitted,unsubmitted例子:"submitted"shop_id string店铺id例子:"1644828244663"status string履约单状态,包括:open,in_progress,closed,cancelled,incomplete,on_hold,scheduled例子:"open"supported_actions array履约单支持的操作,包括:create_fulfillment -- 创建发货,move -- 移动到新地点,hold -- 暂停发货,release_hold -- (暂停之后)开始发货例子:["\"release_hold\""]
状态码
收到 SHOPLINE 发送的 Webhook 通知后,你需要按照如下 SHOPLINE 要求的格式进行响应。
HTTP/1.1 200 OK关于如何订阅 Webhooks 及更多 Webhook 响应规则说明,请参考 Webhook 概述。
这篇文章对你有帮助吗?