API接口目录

电商能力输出业务

商品API
商品API
价格API
订单API
营销API
基础数据API
物流API
促销API
同城帮定制API
优惠券定制业务API
会员API
客服沟通咨询API
三方库存API
账单API
异常码自查工具
suning.online.freightdetail.query 详情页运费查询
¥免费

详情页运费查询

公共参数
请求参数
名称 类型 是否必须 示例值 描述
supplierCodeStringY0000000000自营品传0000000000,C店商品必填
serviceTypeStringY01业务模式
cmmdtyCodeStringY000000000761109195商品编码
provinceStringY江苏
cityStringY南京市
countyStringY玄武区
villageStringN玄武大道街道
memberNumStringY623561523会员编号
receivingTypeStringY01收货方式
chanIdStringY01下单渠道
响应参数
名称 类型 示例值 描述
resultCodeStringY结果编码
errorDescriptionString商品编码必填错误描述
cmmdtyCodeString000000000761109195商品编码
supplierCodeString0000000000供应商编码
freightFareString5.00运费金额
deliveryAttrString0配送属性
freshTypeString0生鲜类型
isContinuedFareString0是否计算续重
freefreightRuleString
lowerLimitString0金额下限
upperLimitString0金额上限
basicFareString0基础运费
weightPriceString0续重单价
weightLimitString0基础重量上限
freightRuleString
lowerLimitString0金额下限
upperLimitString0金额上限
basicFareString0基础运费
weightPriceString0续重单价
weightLimitString0基础重量上限
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                
<sn_request>
  <sn_body>
    <queryFreightdetail>
      <serviceType>01</serviceType>
      <province>江苏</province>
      <city>南京市</city>
      <receivingType>01</receivingType>
      <cmmdtyCode>000000000761109195</cmmdtyCode>
      <county>玄武区</county>
      <chanId>01</chanId>
      <supplierCode>0000000000</supplierCode>
      <memberNum>623561523</memberNum>
      <village>玄武大道</village>
    </queryFreightdetail>
  </sn_body>
</sn_request>

			
                                
                                
{
  "sn_request": {
    "sn_body": {
      "queryFreightdetail": {
        "serviceType": "01",
        "province": "江苏",
        "city": "南京市",
        "receivingType": "01",
        "cmmdtyCode": "000000000761109195",
        "county": "玄武区",
        "chanId": "01",
        "supplierCode": "0000000000",
        "memberNum": "623561523",
        "village": "玄武大道"
      }
    }
  }
}
			
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              
<sn_responseContent>
  <sn_body>
    <queryFreightdetail>
      <errorDescription>商品编码必填</errorDescription>
      <isContinuedFare>0</isContinuedFare>
      <freshType>0</freshType>
      <cmmdtyCode>000000000761109195</cmmdtyCode>
      <deliveryAttr>0</deliveryAttr>
      <resultCode>Y</resultCode>
      <freefreightRule>
        <upperLimit>0</upperLimit>
        <lowerLimit>0</lowerLimit>
        <weightPrice>0</weightPrice>
        <basicFare>0</basicFare>
        <weightLimit>0</weightLimit>
      </freefreightRule>
      <supplierCode>0000000000</supplierCode>
      <freightFare>5.00</freightFare>
      <freightRule>
        <upperLimit>0</upperLimit>
        <lowerLimit>0</lowerLimit>
        <weightPrice>0</weightPrice>
        <basicFare>0</basicFare>
        <weightLimit>0</weightLimit>
      </freightRule>
    </queryFreightdetail>
  </sn_body>
</sn_responseContent>

			
                              
                              
{
  "sn_responseContent": {
    "sn_body": {
      "queryFreightdetail": {
        "errorDescription": "商品编码必填",
        "isContinuedFare": "0",
        "freshType": "0",
        "cmmdtyCode": "000000000761109195",
        "deliveryAttr": "0",
        "resultCode": "Y",
        "freefreightRule": [
          {
            "upperLimit": "0",
            "lowerLimit": "0",
            "weightPrice": "0",
            "basicFare": "0",
            "weightLimit": "0"
          }
        ],
        "supplierCode": "0000000000",
        "freightFare": "5.00",
        "freightRule": [
          {
            "upperLimit": "0",
            "lowerLimit": "0",
            "weightPrice": "0",
            "basicFare": "0",
            "weightLimit": "0"
          }
        ]
      }
    }
  }
}
			
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.online.queryfreightdetail.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.online.queryfreightdetail.format-error:* 参数格式错误 请检查此参数的值,*号表示参数字段名
biz.online.queryfreightdetail.enumeration-error:* 参数的可选值错误 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.pangu 服务不可用 请联系苏宁技术人员
公共异常码
API工具
FAQ