API
WI10.费用预估
更新时间: 2017-11-22 16:48:30 访问次数:893
接口说明

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

使用场景

费用预估,仅支持入库单,入库单已提交状态可以使用。

备注

请求说明
URL http://api.winit.com.cn/ADInterface/api
接口测试 http://erp.sandbox.winit.com.cn/ADInterface/api
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参
名称 类型 必填 说明 示例
orderNo String(50) Y 入库单订单号 WI16000000043642CN
请求示例
{
      "action": "winit.wh.inbound.estimateOrderFee",
      "app_key": "rebecca",
      "data": {
          "orderNo": "WI16000000043642CN"
      },
      "format": "json",
      "language": "zh_CN",
      "platform": "sw",
      "sign": "00000000000000000000000000000000",
      "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 费用项币种Code
-|feeName String(50) Y 费用项名称
-|feeNode String(50) Y 计费节点

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

返回示例
{
      "code": "0",
      "data": {
          "feeList": [
              {
                "fee": 10,
                "currencyCode":   "USD",
                "feeName":   "66011406销售费用-市场推广费-渠道拓展费",
                "feeNode":   "IS"
              },
              {
                "fee": 660,
                "currencyCode":   "USD",
                  "feeName":   "Non-Pallet Unloading Charge",
                "feeNode":   "OWS"
              },
              {
                "fee": 5430,
                "currencyCode":   "USD",
                "feeName": "头程运费-海运",
                "feeNode":   "OPT"
            },
              {
                "fee": 10,
                "currencyCode":   "USD",
                "feeName": "提货费",
                "feeNode":   "OWS"
              },
              {
                "fee": 50,
                "currencyCode":   "USD",
                "feeName": "提货费",
                "feeNode":   "OWS"
              },
              {
                "fee": 0.04,
                "currencyCode":   "USD",
                "feeName": "杂费HMF",
                "feeNode":   "ICC"
              },
              {
                "fee": 0.1,
                "currencyCode":   "USD",
                "feeName": "杂费MPF",
                "feeNode":   "ICC"
              },
              {
                "fee": 1.37,
                "currencyCode":   "USD",
                  "feeName":   "海外仓入库订单处理费",
                "feeNode":   "OWS"
              },
              {
                "fee": 0.75,
                "currencyCode":   "USD",
                "feeName": "海外进口关税",
                "feeNode":   "ICC"
              }
          ],
          "totalFee": 6162.26,
          "totalCurrencyCode": "USD"
      },
      "msg": "操作成功"
}

                            
关键词