API
ISP06.查询ISP预估费用
更新时间: 2017-11-22 18:42:15 访问次数:544
接口说明

卖家或第三方通过该接口可查询ISP预估费用信息。

使用场景

卖家或第三方通过该接口可查询ISP预估费用信息。

备注

请求说明
URL http://api.winit.com.cn/ADInterface/api
接口测试 http://erp.sandbox.winit.com.cn/ADInterface/api
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参
名称 类型 必填 说明 示例
shipperAddrCode String(60) N 寄件人地址code
warehouseCode String(60) Y 验货仓
buyerCountryCode String(30) Y 收件人国家
buyerPostcode String(30) Y 收件人邮编
length Numeric(10,2) Y 长(cm)
width Numeric(10,2) Y 宽(cm)
height Numeric(10,2) Y 高(cm)
weight Numeric(10,2) Y 重量(kg)
winitProductCode String(60) Y winit产品code
declareValueTotal Numeric(10,2) Y 总申报价值(USD)
请求示例
{
    "action": "isp.feeCalc.estimate", 
    "app_key": "rebecca", 
    "data": {
            "shipperAddrCode": "test008",
            "warehouseCode":"YW10000008",
            "buyerCountryCode":"UK",
            "buyerPostcode":"29169-6036",
            "length":"11",
            "width":"6",
            "height":"11",
            "weight":"1.5",
            "winitProductCode":"ISP1005",
            "declareValueTotal":"2.19"
    }, 
    "format": "json", 
    "language": "zh_CN", 
    "platform": "", 
    "sign": "00000000000000000000000000000000", 
    "sign_method": "md5", 
    "timestamp": "2016-11-24 10:35:23", 
    "version": "1.0"
}

                            
返回出参
名称 类型 必填 说明 示例
currency String(20) Y 币种
totalFeeCNY Numeric(10,2) Y 总额
productQuotation String(200) Y 产品报价单
feeDetailList Array 费用明细列表,以下字段为feeDetailList子节点
--|resultFee Numeric(10,2) Y 费用金额
--|currency String(20) Y 币种
--|salesChangeItemName String(60) Y 费用名称

返回参数说明 正确的返回结果:isp预估费用信息。 错误的返回结果:错误代码和提示信息。

返回示例
{
   "code": "0",
   "msg": "操作成功",
   "data":    {
      "currency": "CNY",
      "totalFeeCNY": 105.84,
      "feeDetailList":       [
                  {
            "resultFee": 69.42,
            "currency": "CNY",
            "salesChangeItemName": "ISP专线费"
         },
                  {
            "resultFee": 5.8,
            "currency": "USD",
            "salesChangeItemName": "ISPGST&VAT"
         }
      ],
      "productQuotation": "http://www.winit.com.cn/college/seller/isp/operation-guide/item/311-3-2"
   }
}