事件分组事件标识
fulfillmentsfulfillments/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
    店铺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
请求体
  • 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 string
    sku标题
    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 string
    spu序列号
    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
    物流公司url
    Example: 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 概述
这篇文章对你有帮助吗?