创建入库单-旧—已停用
更新时间: 2019-09-16 11:02:25 访问次数:7679
接口说明
使用本接口可以直接下海外仓入库单至“已下单”状态。
使用场景
创建海外仓入库单,仅支持入库单。
备注
V1已经停止维护,请用户尽快使用V2接口[创建入库单V2]
请求说明
URL | https://openapi.winit.com.cn/openapi/service |
接口测试 | https://sandboxopenapi.winit.com.cn/openapi/service |
验证方法 | Token,md5 |
格式 | json |
字符编码 | UTF-8 |
http请求方式 | http |
请求数限制 | 默认每分钟1000,有需要可申请加大。 |
请求入参
名称 | 类型 | 必填 | 说明 | 示例 |
---|---|---|---|---|
orderType | String(50) | Y | 1.SD-标准海外仓入库 2.DW-直发海外验入库 2.1普通直发 2.2 winit头程 3.DI-直发国内验入库 3.1 Winit验货 3.2 自验-卖家直发 3.3自验-winit头程 4.SE-标准存储仓入库 5.SI-直发国内验存储仓入库 5.1 自验-卖家直发 5.2 自验-winit头程 | |
winitProductCode | String(50) | Y | Winit产品编码(如:OW01010334 海运散货) | 参照“002查询WINIT产品” |
destinationWarehouseCode | String(50) | Y | 目的仓编码 | 参照“004查询目的仓接口” |
sellerOrderNo | String(50) | N | 客户订单号 | |
inspectionWarehouseCode | String(50) | Y | 验货仓编码 | 参照“003查询验货仓接口” |
importDeclarationRuleCode | String(50) | N | 进口报关规则编码,可以为空,传值"" | |
importDeclarationType | String(50) | N | 进口报关类型: TIOR-第三方进口商 WIOR-万邑通进口商 MIOR-管理进口商 NIOR-无进口商 CIOR-自有进口商 |
|
importerCode | String(50) | N | 进口商编码 | |
exportDeclarationType | String(50) | N | 出口报关类型: TEOR-第三方出口商 FEOR-金融出口商 WEOR-万邑通出口商 CEOR-自有出口商 |
|
exporterCode | String(50) | N | 出口商编码 | |
logisticsPlanNo | String(50) | Y | 物流计划编码 | 参照“006查询物流计划接口” |
dispatchInfo | 提货/验货信息。 入库单类型为SD/DI时必填,以下为dispatchInfo的子节点 | |||
-|inspectionType | String(50) | N | 验货方式: VI-上门验货 WI-验货仓验货 | |
-|pickupType | String(50) | N | 提货方式: 上门提货:P, 自发物流:S | |
-|reservePickupDateFrom | String(50) | N | 提货开始时间,格式:yyyy-MM-dd HH:mm:ss,下列情况下必填:1,验货方式为上门提货;2,验货方式为验货仓验货并且提货方式为上门提货 | 2016-09-09 14:00:00 |
-|reservePickupDateTo | String(50) | N | 提货结束时间,格式:yyyy-MM-dd HH:mm:ss,下列情况下必填:1,验货方式为上门提货;2,验货方式为验货仓验货并且提货方式为上门提货 | 2016-09-09 16:00:00 |
-|pickupAddressCode | String(50) | Y | 提货/验货地址编码,下列情况下必填:1,验货方式为上门提货;2,验货方式为验货仓验货并且提货方式为上门提货 | |
-|expressVendorCode | String(50) | Y | 发货供应商编码,提货方式为自发物流时,发货供应商编码和发货供应商名称其中之一必填 | 参照“010查询发货供应商接口” |
-|expressVendorName | String(50) | Y | 发货供应商名称,提货方式为自发物流时,发货供应商编码和发货供应商名称其中之一必填 | |
-|expressNo | String(50) | N | 快递单号,提货方式为自发物流时必填 | |
packageList | 箱单信息,以下为packageList的子节点 | |||
-|sellerCaseNo | String(50) | Y | 卖家箱号 | |
-|thirdPartyCaseNo | String() | N | 第三方箱号 | 全局唯一性要求 |
-|sellerWeight | Numberic(10,4) | Y | 包裹重量(KG) | 卖家提供 |
-|sellerLength | Numeric(10,2) | Y | 包裹长(CM) | |
-|sellerWidth | Numeric(10,2) | Y | 包裹宽(CM) | |
-|sellerHeight | Numberic(10,2) | Y | 包裹高(CM) | |
-|merchandiseList | 包裹中的商品信息,以下为merchandiseList的子节点 | |||
-|-|merchandiseCode | String(255) | Y | 商品编码 | 参照“005查询可选商品接口” |
-|-|specification | String(255) | N | 商品规格 注意:若规格存在,则必填;若不存,则可不填 | |
-|-|quantity | Integer | Y | 数量 | |
directForecastInfo | 直发预报信息,以下为子节点 | |||
-|preparedOffPortDate | String | Y | 预计离港时间,格式yyyy-MM-dd | |
-|preparedArrivePortDate | String | Y | 预计到港时间,格式yyyy-MM-dd | |
sendPortInfo | 送港信息,以下为子节点 | |||
-|sendPortType | String(50) | Y | 送港类型,WINIT - winit送港;SELF - 自送港(自验情况适用) | |
-|sendPortDate | String | N | 送港时间,(自验情况适用)格式yyyy-MM-dd | |
-|pickupCartonAddressCode | String(50) | Y | 提柜地址编码(自验情况适用) | |
-|containerNo | String(50) | Y | 柜号(自验情况适用) | |
-|sealNo | String(50) | Y | 铅封号(自验情况适用) |
请求示例
6.1标准入库: { "data": { "destinationWarehouseCode": "US0001", "directForecastInfo": { "preparedArrivePortDate": "", "preparedOffPortDate": "" }, "dispatchInfo": { "expressNo": "111", "expressVendorCode": "LB", "expressVendorName": "龙邦", "inspectionType": "WI", "pickupAddressCode": "", "pickupType": "S", "reservePickupDateFrom": "2018-01-11 16:00:00", "reservePickupDateTo": "2018-01-11 18:00:00" }, "exportDeclarationType": "CEOR", "exporterCode": "ER0000000101", "importDeclarationRuleCode": "", "importDeclarationType": "CIOR", "importerCode": "IR0000000101", "inspectionWarehouseCode": "SZ0001", "logisticsPlanNo": "58652", "orderType": "SD", "packageList": [ { "merchandiseList": [ { "merchandiseCode": "D00100", "quantity": 1, "specification": "" } ], "packageNo": "", "thirdPartyCaseNo": "third_caseNo1_par", "sellerCaseNo": "103", "sellerHeight": 60, "sellerLength": 10, "sellerWeight": 200, "sellerWidth": 50 } ], "sellerOrderNo": "40755", "sendPortInfo": { "containerNo": "", "pickupCartonAddressCode": "", "sealNo": "", "sendPortDate": "", "sendPortType": "" }, "winitProductCode": "OW01010343" }, "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "timestamp": "", "version": "1.0", "sign": "00000000000000000000000000000000", "sign_method": "md5", "format": "json", "platform": "SELLERERP", "language": "zh_CN" } 6.2标准存储仓入库 { "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "data": { "orderType":"SE", "winitProductCode": "SSW111345", "destinationWarehouseCode": "UKLS", "sellerOrderNo": "Ajj", "inspectionWarehouseCode": "SZ0001", "importDeclarationRuleCode": "", "exporterCode": "ER002", "importerCode": "RIR005", "logisticsPlanNo": "44863", "dispatchInfo": { "pickupType": "S", "inspectionType": "WI", "pickupAddressCode": "zdw001", "reservePickupDateFrom": "2017-09-11 16:00:00", "reservePickupDateTo": "2017-09-11 18:00:00", "expressVendorCode": "LB", "expressVendorName": "龙邦", "expressNo": "564569", }, "packageList": [ { "merchandiseList": [ { "merchandiseCode": "FGBX001", "quantity":2, "specification": "" } ], "sellerCaseNo": '2', "thirdPartyCaseNo": "third_caseNo1_par1", "sellerHeight": 44, "sellerLength": 44, "sellerWidth": 44, "sellerWeight": 20, } ] }, "format": "json", "language": "zh_CN", "platform": "BJ_YGJT", "sign": "00000000000000000000000000000000", "sign_method": "md5", "timestamp": "2016-09-23 16:26:39", "version": "1.0" } 6.3直发国内验入库-winit验货 { "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "data": { "orderType": "DI", "winitProductCode": "OW01020387", "destinationWarehouseCode": "US0001", "sellerOrderNo": "tet09068", "inspectionWarehouseCode": "SZ0001", "importDeclarationRuleCode": "", "dispatchInfo": { "inspectionType": "WI", "pickupType": "S", "reservePickupDateFrom": "", "reservePickupDateTo": "", "pickupAddressCode": "", "expressVendorCode": "LB", "expressVendorName": "龙邦", "expressNo": "5756" }, "packageList": [ { "merchandiseList": [ { "merchandiseCode": "LCD-IP5c-02", "specification": "", "quantity": 1 } ], "sellerCaseNo": '1', "thirdPartyCaseNo": "third_caseNo1_par", "sellerLength": 19, "sellerWidth": 12, "sellerHeight": 1, "sellerWeight": 0.06 } ], "directForecastInfo": { "preparedOffPortDate": "2017-09-15", "preparedArrivePortDate": "2017-09-17" } }, "format": "json", "language": "zh_CN", "platform": "BJ_YGJT", "sign": "00000000000000000000000000000000", "sign_method": "md5", "timestamp": "2016-09-23 16:26:39", "version": "1.0" } 6.4直发国内验入库-自验-卖家直发 { "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "data": { "orderType": "DI", "winitProductCode": "OW01021333", "destinationWarehouseCode": "US0001", "sellerOrderNo": "567787", "inspectionWarehouseCode": "SZV001", "importDeclarationRuleCode": "", "packageList": [ { "merchandiseList": [ { "merchandiseCode": "LCD-IP5c-02", "specification": "", "quantity": 1 } ], "sellerCaseNo": '1', "thirdPartyCaseNo": "third_caseNo1_par", "sellerHeight": 2, "sellerLength": 1.00, "sellerWeight": 1, "sellerWidth": 1 } ], "directForecastInfo": { "preparedOffPortDate": "2017-09-15", "preparedArrivePortDate": "2017-09-17" } }, "format": "json", "language": "zh_CN", "platform": "BJ_YGJT", "sign": "00000000000000000000000000000000", "sign_method": "md5", "timestamp": "2016-09-23 16:26:39", "version": "1.0" } 6.5直发国内验入库--自验--winit头程 { "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "data": { "orderType": "DI", "winitProductCode": "OW01021405", #OW01021405 "destinationWarehouseCode": "US0001", #US0001 "sellerOrderNo": "autotest001", "inspectionWarehouseCode": "SZV001", "importDeclarationRuleCode": "", "packageList": [ { "merchandiseList": [ { "merchandiseCode": "LCD-IP5c-02", "specification": "", "quantity": 1 } ], "sellerCaseNo": 1, "thirdPartyCaseNo": "third_caseNo1_par", "sellerHeight": 10, "sellerLength": 10, "sellerWeight": 10, "sellerWidth": 1 } ], "importerCode": "IR0000000101", "exportDeclarationType":"", "exporterCode": "ER0000000597", "logisticsPlanNo": "44146", "sendPortInfo": { "sendPortType": "WINIT", "pickupCartonAddressCode": "zdw001", "sendPortDate": "2017-09-10", "containerNo": "1", "sealNo": "2" } }, "format": "json", "language": "zh_CN", "platform": "BJ_YGJT", "sign": "00000000000000000000000000000000", "sign_method": "md5", "timestamp": "2016-09-23 16:26:39", "version": "1.0" } 6.6直发海外验入库 --普通直发 { "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "data": { "orderType": "DW", "winitProductCode": "OW01030329", "destinationWarehouseCode": "US0001", "sellerOrderNo": "autotest001", "importDeclarationRuleCode": "", "packageList": [ { "merchandiseList": [ { "merchandiseCode": "4BAR002A", "quantity": 1, "specification": "" } ], "sellerCaseNo": "11", "thirdPartyCaseNo": "third_caseNo1_par", "sellerHeight": 1, "sellerLength": 1, "sellerWeight":1, "sellerWidth": 1 } ], "directForecastInfo": { "preparedOffPortDate": "2017-09-16", "preparedArrivePortDate": "2017-09-18" } }, "format": "json", "language": "zh_CN", "platform": "BJ_YGJT", "sign": "00000000000000000000000000000000", "sign_method": "md5", "timestamp": "2016-09-23 16:26:39", "version": "1.0" } 6.7直发海外验入库--winit头程 { "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "data": { "orderType": "DW", "winitProductCode": "OW01031342", "destinationWarehouseCode": "US0001", "sellerOrderNo": "autotest001", "inspectionWarehouseCode": "SZV001", "importDeclarationRuleCode": "", "packageList": [ { "merchandiseList": [ { "merchandiseCode": "216401", "quantity": 1, "specification": "" } ], "sellerCaseNo": '1', "thirdPartyCaseNo": "third_caseNo1_par", "sellerHeight": 1, "sellerLength": 2.34, "sellerWeight": 0.08879, "sellerWidth": 1 } ], "importerCode": "IR0000000101", "exportDeclarationType":"", "exporterCode": "ER0000000597", "logisticsPlanNo": "44148", "sendPortInfo": { "sendPortType": "WINIT", "pickupCartonAddressCode": "autoTs", "sendPortDate": "2017-09-15", "containerNo": "234", "sealNo": "7686" } }, "format": "json", "language": "zh_CN", "platform": "BJ_YGJT", "sign": "00000000000000000000000000000000", "sign_method": "md5", "timestamp": "2016-09-23 16:26:39", "version": "1.0" } 6.8直发国内验存储仓--自验-直发 { "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "data": { "orderType": "SI", "winitProductCode": "SSW121381", "destinationWarehouseCode": "UKLS", "sellerOrderNo": "test00", "inspectionWarehouseCode": "SZV001", "importDeclarationRuleCode": "", "packageList": [ { "merchandiseList": [ { "merchandiseCode": "FGBX001", "specification": "", "quantity": 2 } ], "sellerCaseNo": 23, "thirdPartyCaseNo": "third_caseNo1_par", "sellerLength": 1, "sellerWidth": 1, "sellerHeight": 1, "sellerWeight": 0.01 } ], "directForecastInfo":{ "preparedOffPortDate":"2017-09-15", "preparedArrivePortDate":"2017-09-22" } }, "format": "json", "language": "zh_CN", "platform": "BJ_YGJT", "sign": "00000000000000000000000000000000", "sign_method": "md5", "timestamp": "2016-09-23 16:26:39", "version": "1.0" } 6.9直发国内验存储仓--自验-winit头程 { "action": "winit.wh.inbound.order.create", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"38B87482C92FFEF0F10292B7AFA44087", "data": { "orderType": "SI", "winitProductCode": "SSW121384", "destinationWarehouseCode": "UKLS", "sellerOrderNo": "autotest001", "inspectionWarehouseCode": "SZV001", "importDeclarationRuleCode": "", "importerCode": "IR0000000101", "exportDeclarationType":"", "exporterCode": "ER0000000597", "logisticsPlanNo": "44863", "packageList": [ { "sellerCaseNo": '1', "thirdPartyCaseNo": "third_caseNo1_par", "sellerLength": 1, "sellerWidth": 1, "sellerHeight": 1, "sellerWeight": 1, "merchandiseList": [ { "merchandiseCode": "FGBX001", "specification": "", "quantity": 2 } ] } ], "sendPortInfo": { "sendPortType": "WINIT", "pickupCartonAddressCode": "autoTs", "sendPortDate": "2017-09-11", "containerNo": "123", "sealNo": "33" } }, "format": "json", "language": "zh_CN", "platform": "BJ_YGJT", "sign": "00000000000000000000000000000000", "sign_method": "md5", "timestamp": "2016-09-23 16:26:39", "version": "1.0" }
返回出参
名称 | 类型 | 必填 | 说明 | 示例 |
---|---|---|---|---|
orderNo | String(64) | Y | 入库单号 |
返回参数说明 正确的返回结果:订单号。 错误的返回结果:错误码,错误信息。