API
查询物流计划
更新时间: 2019-10-16 20:21:42 访问次数:2479
接口说明

物流计划查询,根据WINIT产品、验货仓及目的仓筛选可选物流计划。

接口英文名称

winit.tms.getLogisticsPlan

使用场景

物流计划查询, 仅支持入库单,根据WINIT产品、验货仓及目的仓筛选可选物流计划。

备注

1.标准海外仓和直发国内验WINIT承运查询物流计划,验货仓(inspectionWarehouseCode)为国内验货仓;

2.直发海外验WINIT承运查询物流计划,验货仓(inspectionWarehouseCode)为国内出运地,WINIT的当地验货仓

请求说明
URL http://openapi.winit.com.cn/openapi/service
接口测试 http://openapi.sandbox.winit.com.cn/openapi/service
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参
名称 类型 必填 说明 示例
winitProductCode String(50) Y WINIT产品编码
inspectionWarehouseCode String(50) Y 验货仓编码
通过接口winit.pms.getWarehouseList返回出参warehouseCode
destinationWarehouseCode String(50) Y 目的仓编码
通过接口winit.pms.getWarehouseList返回出参warehouseCode
请求示例
1.标准海外仓查询物流计划
{
      "action": " winit.tms.getLogisticsPlan",
      "app_key": "rebecca",
      "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
      "client_sign":"26B28A13AD3CB2BD928EB0F48392E47D",
      "data": {
          "winitProductCode": "OW01010382",
          "inspectionWarehouseCode": "SZ0001",
          "destinationWarehouseCode": "US0001"
      },
      "format": "json",
      "language": "zh_CN",
      "platform": "OWNERERP",
      "sign": "43A4ACFBC36578B984CF531D77D9874B",
      "sign_method": "md5",
      "timestamp": "2016-09-09 10:46:01",
      "version": "1.0"
}
2.直发海外验Winit承运的查询物流计划(出运地在深圳)
{
      "action": " winit.tms.getLogisticsPlan",
      "app_key": "rebecca",
      "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
      "client_sign":"26B28A13AD3CB2BD928EB0F48392E47D",
      "data": {
          "winitProductCode": "OW01010382",
          "inspectionWarehouseCode": "SZ0001",
          "destinationWarehouseCode": "US0001"
      },
      "format": "json",
      "language": "zh_CN",
      "platform": "OWNERERP",
      "sign": "43A4ACFBC36578B984CF531D77D9874B",
      "sign_method": "md5",
      "timestamp": "2016-09-09 10:46:01",
      "version": "1.0"
}

                        
返回出参
名称 类型 必填 说明 示例
planList 物流计划列表
-|planCode String(50) Y 物流计划编码
-|planName String(100) Y 物流计划名称
-|planType String(20) Y 物流计划类型:sea-海运,air-空运
-|createOrderDeadline String(20) Y 截止下单时间 YYYY-MM-DD hh:mm:ss
-|pickupPackageDeadline String(20) Y 截止收货时间 YYYY-MM-DD hh:mm:ss
-|planOutboudDate String(20) Y 预计发货时间 YYYY-MM-DD hh:mm:ss
-|planShelfDate String(20) Y 预计上架时间 YYYY-MM-DD hh:mm:ss

返回参数说明 正确的返回结果:物流计划编码,物流计划名称,物流计划类型,截仓时间。 错误的返回结果:错误码,错误信息。

返回示例
{
   "code": "0",
   "msg": "操作成功",
   "data": {"planList":    [
            {
         "planOutboudDate": "2019-06-15 05:50:07",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-15 00:50:07",
         "planName": "CNYTN-US-14-Jun",
         "createOrderDeadline": "2019-06-14 23:50:07",
         "planShelfDate": "2019-06-24 05:50:07",
         "planCode": "198280"
      },
            {
         "planOutboudDate": "2019-06-15 05:50:20",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-15 00:50:20",
         "planName": "CNYTN-US-14-Jun",
         "createOrderDeadline": "2019-06-14 23:50:20",
         "planShelfDate": "2019-06-24 05:50:20",
         "planCode": "198072"
      },
            {
         "planOutboudDate": "2019-06-15 05:50:23",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-15 00:50:23",
         "planName": "CNYTN-US-14-Jun",
         "createOrderDeadline": "2019-06-14 23:50:23",
         "planShelfDate": "2019-06-24 05:50:23",
         "planCode": "198170"
      },
            {
         "planOutboudDate": "2019-06-16 05:50:07",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-16 00:50:07",
         "planName": "CNYTN-US-15-Jun",
         "createOrderDeadline": "2019-06-15 23:50:07",
         "planShelfDate": "2019-06-25 05:50:07",
         "planCode": "198282"
      },
            {
         "planOutboudDate": "2019-06-16 05:50:23",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-16 00:50:23",
         "planName": "CNYTN-US-15-Jun",
         "createOrderDeadline": "2019-06-15 23:50:23",
         "planShelfDate": "2019-06-25 05:50:23",
         "planCode": "198172"
      },
            {
         "planOutboudDate": "2019-06-17 05:50:07",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-17 00:50:07",
         "planName": "CNYTN-US-16-Jun",
         "createOrderDeadline": "2019-06-16 23:50:07",
         "planShelfDate": "2019-06-26 05:50:07",
         "planCode": "198284"
      },
            {
         "planOutboudDate": "2019-06-17 05:50:23",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-17 00:50:23",
         "planName": "CNYTN-US-16-Jun",
         "createOrderDeadline": "2019-06-16 23:50:23",
         "planShelfDate": "2019-06-26 05:50:23",
         "planCode": "198174"
      },
            {
         "planOutboudDate": "2019-06-18 05:50:07",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-18 00:50:07",
         "planName": "CNYTN-US-17-Jun",
         "createOrderDeadline": "2019-06-17 23:50:07",
         "planShelfDate": "2019-06-27 05:50:07",
         "planCode": "198286"
      },
            {
         "planOutboudDate": "2019-06-18 05:50:23",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-18 00:50:23",
         "planName": "CNYTN-US-17-Jun",
         "createOrderDeadline": "2019-06-17 23:50:23",
         "planShelfDate": "2019-06-27 05:50:23",
         "planCode": "198176"
      },
            {
         "planOutboudDate": "2019-06-19 05:50:07",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-19 00:50:07",
         "planName": "CNYTN-US-18-Jun",
         "createOrderDeadline": "2019-06-18 23:50:07",
         "planShelfDate": "2019-06-28 05:50:07",
         "planCode": "198288"
      },
            {
         "planOutboudDate": "2019-06-19 05:50:23",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-19 00:50:23",
         "planName": "CNYTN-US-18-Jun",
         "createOrderDeadline": "2019-06-18 23:50:23",
         "planShelfDate": "2019-06-28 05:50:23",
         "planCode": "198178"
      },
            {
         "planOutboudDate": "2019-06-20 05:50:07",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-20 00:50:07",
         "planName": "CNYTN-US-19-Jun",
         "createOrderDeadline": "2019-06-19 23:50:07",
         "planShelfDate": "2019-06-29 05:50:07",
         "planCode": "198290"
      },
            {
         "planOutboudDate": "2019-06-20 05:50:23",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-20 00:50:23",
         "planName": "CNYTN-US-19-Jun",
         "createOrderDeadline": "2019-06-19 23:50:23",
         "planShelfDate": "2019-06-29 05:50:23",
         "planCode": "198180"
      },
            {
         "planOutboudDate": "2019-06-21 05:50:07",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-21 00:50:07",
         "planName": "CNYTN-US-20-Jun",
         "createOrderDeadline": "2019-06-20 23:50:07",
         "planShelfDate": "2019-06-30 05:50:07",
         "planCode": "198292"
      },
            {
         "planOutboudDate": "2019-06-21 05:50:23",
         "planType": "sea",
         "pickupPackageDeadline": "2019-06-21 00:50:23",
         "planName": "CNYTN-US-20-Jun",
         "createOrderDeadline": "2019-06-20 23:50:23",
         "planShelfDate": "2019-06-30 05:50:23",
         "planCode": "198182"
      }
   ]}
}