Lingxing
切换旧版

上传备货单装箱信息

POST/erp/sc/routing/owms/inbound/packing

创建“待发货/待收货/已完成”状态备货单时,支持上传备货单装箱信息。

接口信息

API Path请求协议请求方式令牌桶容量
/erp/sc/routing/owms/inbound/packingHTTPSPOST1

请求参数

overseas_order_nostring必填
备货单号
packaging_typeinteger必填
装箱类型:1 每箱多个sku,2 每箱一个sku
box_countinteger必填
总箱数
box_listarray<object>必填
装箱数据
隐藏子属性
box_nointeger必填
箱号
box_countinteger
箱数,默认1
box_nosarray<any>
自定义箱号数组,箱数大于1时必传
heightnumber必填
箱规-高(cm)
lengthnumber必填
箱规-长(cm)
widthnumber必填
箱规-宽(cm)
weightnumber必填
箱子毛重(KG)
itemsarray<object>必填
商品详情
隐藏子属性
product_idinteger必填
商品id
twp_idinteger
三方商品id,查询系统产品与第三方海外仓产品映射列表接口对应字段【twp_id】,
注:收货仓库是第三方仓时必填
quantity_shippedinteger必填
装箱数:计算公式=备货数量/箱数
oversea_product_codeinteger
三方商品编码(收货仓库为三方海外仓,可不传product_id)
match_numinteger必填
配对数量【默认1】:传 1 为单个配对,其他值均为整箱配对
fnskustring
fnsku
barcodestring
万邑通SN码
is_a_plusinteger
万邑通是否A+包裹:0-否,1-是
sidinteger必填
店铺id,库存中心过渡版本后有fnsku必填 ,对应查询亚马逊店铺列表接口对应字段【sid】

请求示例

{
  "overseas_order_no": "FBA123456789",
  "packaging_type": 1,
  "box_count": 2,
  "box_list": [
    {
      "box_no": 1,
      "height": 30.5,
      "length": 40.0,
      "width": 35.2,
      "weight": 12.8,
      "items": [
        {
          "product_id": 1001,
          "twp_id": 2001,
          "quantity_shipped": 10,
          "match_num": 1,
          "fnsku": "X000001ABC",
          "sid": 3001
        },
        {
          "product_id": 1002,
          "quantity_shipped": 5,
          "match_num": 2,
          "sid": 3002
        }
      ]
    },
    {
      "box_no": 2,
      "height": 25.0,
      "length": 35.0,
      "width": 30.0,
      "weight": 8.5,
      "items": [
        {
          "product_id": 1003,
          "quantity_shipped": 8,
          "match_num": 1,
          "fnsku": "X000002DEF",
          "sid": 3001
        }
      ]
    }
  ]
}

返回结果

Json Object

codeinteger必填
状态码,0 成功
messagestring必填
消息
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
response_timestring必填
响应时间
dataobject必填
响应数据

返回成功示例

{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "C70FD2A7-4E7D-6B32-7D72-FC42587CE97E",
    "response_time": "2022-07-29 14:33:42",
    "data": [],
    "total": 0
}