API
预估入库费用
更新时间: 2019-10-16 20:25:03 访问次数:2444
接口说明

费用预估接口,按下单数据预估费用。

接口英文名称

winit.wh.inbound.estimateOrderFee

使用场景

费用预估,仅可预估海外仓入库单的费用,入库单状态为草稿状态即可使用。

备注

请求说明
URL http://openapi.winit.com.cn/openapi/service
接口测试 http://openapi.sandbox.winit.com.cn/openapi/service
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参
名称 类型 必填 说明 示例
orderNo String(50) Y 入库单订单号 WI9900001557
请求示例
{
      "action": "winit.wh.inbound.estimateOrderFee",
      "app_key": "rebecca",
      "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
      "client_sign":"2C56876DCFF926FD446B40A2E5DA8F45",
      "data": {
          "orderNo": "WI9900001557"
      },
      "format": "json",
      "language": "zh_CN",
      "platform": "OWNERERP",
      "sign": "A8AABF2DB88A6E81E3087F365FE30B9E",
      "sign_method": "md5",
      "timestamp": "2016-09-09 10:34:25",
      "version": "1.0"
}{
      "action": "winit.wh.inbound.estimateOrderFee",
      "app_key": "rebecca",
      "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
      "client_sign":"2C56876DCFF926FD446B40A2E5DA8F45",
      "data": {
          "orderNo": "WI9900001557"
      },
      "format": "json",
      "language": "zh_CN",
      "platform": "OWNERERP",
      "sign": "A8AABF2DB88A6E81E3087F365FE30B9E",
      "sign_method": "md5",
      "timestamp": "2016-09-09 10:34:25",
      "version": "1.0"
}

                            
返回出参
名称 类型 必填 说明 示例
totalFee Numeric(10,2) Y 总费用金额
totalFeeCurrency String(15) Y 总费用币种 USD
feeList 费用明细列表,以下内容在feeList节点下
-|fee Numeric(10,2) Y 费用项金额
-|FeeCurrency String(50) Y 费用项币种单位
-|feeName String(50) Y 费用项名称
-|feeNode String(50) Y 计费节点

返回参数说明 正确的返回结果:出口商编码,出口商名称。 错误的返回结果:错误码,错误信息。

返回示例
{
   "code": "0",
   "msg": "操作成功",
   "data":    {
      "totalFee": 45.86,
      "totalFeeCurrency": "USD",
      "feeList":       [
                  {
            "feeNode": "IS",
            "fee": 0,
            "feeName": "C类包裹附加操作费",
            "feeCurrency": "USD"
         },
                  {
            "feeNode": "OWS",
            "fee": 0.18,
            "feeName": "入库处理费",
            "feeCurrency": "USD"
         },
                  {
            "feeNode": "OPT",
            "fee": 42,
            "feeName": "头程运费-空运",
            "feeCurrency": "USD"
         },
                  {
            "feeNode": "ICC",
            "fee": 0.38,
            "feeName": "杂费MPF",
            "feeCurrency": "USD"
         },
                  {
            "feeNode": "ICC",
            "fee": 3.3,
            "feeName": "海外进口关税",
            "feeCurrency": "USD"
         }
      ]
   }
}

                            
关键词