Lingxing
切换旧版

更新备货单

POST/erp/sc/routing/owms/inbound/updateInbound

接口信息

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

请求参数

overseas_order_nostring必填
海外仓备货单号
logistics_idinteger
物流方式id【按计费重分摊时,需传对应物流方式,以获取材积参数用于计算】
product_listarray<object>
产品信息
隐藏子属性
product_idinteger
本地商品id
fnskustring
fnsku
tariffsnumber
报关费用
tariffs_currency_unitstring
报关费用币种
cg_product_gross_weightnumber
单品净重(G)
cg_package_lengthnumber
包装规格-长(CM)
cg_package_widthnumber
包装规格-宽(CM)
cg_package_heightnumber
包装规格-高(CM)
stock_numinteger
备货数量,整箱配对需要乘以配对数量
sidstring
店铺id,有fnsku填
product_codestring
三方产品编码
fba_costnumber
单位头程费用
fba_cost_currency_unitstring
单位头程费用币种单位
remarkstring
商品备注
estimated_timestring
预计到货时间
arrival_timestring
实际到货时间
share_idinteger
头程费分配方式:
0 按计费重【默认值】
1 按实重
2 按体积重
3 按SKU数量
4自定义
remarkstring
备注
file_idstring
附件id
overseas_typeinteger
下单至第三方【当收货仓为API海外仓时可填,不填默认为是】:1 否,2 是【默认】
real_delivery_timestring
实际发货时间,格式:Y-m-d H:i:s
logistics_list_typeinteger必填
物流信息版本:0或者不传:默认旧版物流信息
1:新版物流信息
head_logistics_listobject必填
新版头程物流信息(当logistics_list_type 为1时才有意义)
隐藏子属性
tax_fee_typeinteger必填
税费分摊方式:
0:产品-计费重
1:产品-实重
2:产品-体积重
3:产品-数量
4:自定义
5:箱子-体积)
tracking_listarray<object>必填
轨迹信息
隐藏子属性
tracking_nostring必填
查询单号
transport_typeinteger必填
运输类型:
1:快递
2:海运
3:空运
4:其他
order_type_codeinteger必填
单号类型:【注意:与运输类型联动关系】
1:订舱号
2:提单号
3:箱号
4:其他
5:跟踪单号
6:航班号
当transport_type=1时只能传5
当transport_type=2时只能传1、2、3、4
当transport_type=3时只能传2、6
shippersstring必填
承运商【运输类型为海运时才有意义】
remarkstring必填
备注
estimate_expenses_listobject必填
费用明细-预估费用
隐藏子属性
chargeable_weightstring
计费重(单位KG),已废弃,同页面功能计费重不支持编辑
pricestring必填
单价
price_currencystring必填
单价币种
logistics_feestring必填
物流费用
logistics_fee_currencystring必填
物流费用币种
remarkstring
备注
other_fee_arrarray<object>必填
预估费用-其他费:
获取发货单头程物流-其他费类型接口获取
隐藏子属性
fee_type_idstring必填
其他费id(20位)
other_amountstring必填
其他费金额
other_currencystring必填
其他费币种
actual_expenses_listobject必填
费用明细-实际费用
隐藏子属性
tax_feestring必填
税费
tax_fee_currencystring必填
税费币种
chargeable_weightstring必填
计费重,已废弃,同页面功能计费重不支持编辑
pricestring必填
单价
price_currencystring必填
单价币种
logistics_feestring必填
物流费用
logistics_fee_currencystring必填
物流费用币种
remarkstring
备注
other_fee_arrarray<object>必填
实际费用-其他费:
获取发货单头程物流-其他费类型接口获取
隐藏子属性
fee_type_idstring必填
其他费id(20位)
other_amountstring必填
其他费金额
other_currencystring必填
其他费币种
logistics_listarray<object>
旧版物流信息,即将下线
隐藏子属性
logistics_order_nostring
物流单号
logistics_moneystring
预估物流费用
logistics_money_unitstring
预估物流费用币种
other_moneystring
预估其他费用
other_money_unitstring
预估其他费用币种
track_order_nostring
追踪号
other_money_remarkstring
预估费用备注
real_logistics_moneynumber
实际物流费用
real_logistics_money_unitstring
实际物流费用币种
real_other_moneynumber
实际其他费用
real_other_money_unitstring
实际其他费用币种
real_other_money_remarkstring
实际其他费用备注
wool_idinteger
物流记录id
operation_typeinteger
物流费用操作类型:=新增2=修改3=删除

请求示例

{
    "overseas_order_no": "OWS220624005",
    "logistics_id": 35,
    "share_id": 1,
    "overseas_type": 1,
    "arrival_time": "2022-06-24 12:10:25",
    "estimated_time": "2022-06-25 12:10:25",
    "real_delivery_time": "2022-6-24 12:00:25",
    "remark": "999",
    "file_id": "",
    "logistics_list": [
        {
            "wool_id": 2949,
            "operation_type": 2,
            "logistics_money": "77.00",
            "logistics_money_unit": "CNY",
            "other_money": "5",
            "other_money_unit": "CNY",
            "other_money_remark": "",
            "real_logistics_money": "300.00",
            "real_logistics_money_unit": "CNY",
            "real_other_money": "10.00",
            "real_other_money_unit": "CNY",
            "real_other_money_remark": "",
            "logistics_order_no": "99",
            "track_order_no": "2333"
        }
    ],
    "product_list": [
        {
            "product_id": 2117299,
            "product_code": "TESTSKU1",
            "cg_package_height": "50.00",
            "cg_package_length": "20.00",
            "cg_package_width": "10.02",
            "cg_product_gross_weight": "20.00",
            "fba_cost": "9",
            "fba_cost_currency_unit": "CNY",
            "tariffs": "8",
            "tariffs_currency_unit": "CNY",
            "fnsku": "",
            "sid": 0,
            "stock_num": 7,
            "remark": "商品备注999999999999999"
        }
    ],
    "logistics_list_type": 0,
    "head_logistics_list": {
        "tax_fee_type": 1,
        "tracking_list": [{
            "tracking_no": "cxdhxxxxxx123",
            "transport_type": "1",
            "order_type_code": "5",
            "shippers": "coscoxxx",
            "remark": "备注"
        }],
        "estimate_expenses_list": {
            "chargeable_weight": "111.00",
            "price": "1.00",
            "price_currency": "CNY",
            "logistics_fee": "1.00",
            "logistics_fee_currency": "CNY",
            "remark": "预估费用备注",
            "other_fee_arr": [{
                "fee_type_id": "241192037543649792",
                "other_amount": "1.00",
                "other_currency": "CNY"
            }]
        },
        "actual_expenses_list": {
            "tax_fee":"1",
            "tax_fee_currency":"CNY",
            "chargeable_weight": "111.00",
            "price": "111.00",
            "price_currency": "CNY",
            "logistics_fee": "111.00",
            "logistics_fee_currency": "CNY",
            "remark": "实际费用备注",
            "other_fee_arr": [{
                "fee_type_id": "241192037543649792",
                "other_amount": "111.00",
                "other_currency": "CNY"
            }]
        }
    }
}

返回结果

Json Object

codeinteger必填
状态码,0 成功
示例 0
messagestring必填
信息提示
示例 success
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
示例 D17B0688-C52D-1BA9-1BCC-50AA00058A3F
response_timestring必填
响应时间
示例 2022-08-23 16:56:31
dataarray<any>必填
响应数据
示例 &nbsp;