API接口目录

平台业务

商品API
价格API
库存API
销售准备API
交易API
退货退款API(新)
财务API
店铺API
物流API
促销API
分销API
发票API
招商API
换货API
互动营销API
退货退款API
客服API
平台营销API
风控API
会员通API
账房API
财务记账API
异常码自查工具
suning.custom.freighttemplate.query 运费模板批量查询
¥免费

通过此接口可批量查询运费模版。

1、页码和每页条数必须同时填写方可生效,否则将默认返回第1页、10条内容;

2、返回结果分页展示,通过请求参数的页码可以定位到具体第几页,每页条数控制每页返回的条数;

3、运送方式默认为快递,新增运费模板时不填写;

4、城市代码可通过接口“suning.custom.city.query”获取对应城市名称。

公共参数
请求参数
名称 类型 是否必须 示例值 描述
pageNo String N 1 页码。取值范围:大于零的整数;默认值为1,即返回第一页数据。
pageSize String N 10 每页条数。取值范围:大于零的整数;最大值:50。默认值:10。
响应参数
名称 类型 示例值 描述
freighttemplatename String null 运费模板名称。
freighttemplateid String null 运费模板Id。
shippingtype String null 运费方式。0:表示买家承担服务费; 1:表示卖家承担服务费
valuationtype String null 计价方式。 0:表示按件数计算运费 ;1:表示按重量计算运费 ;2:表示按体积计算运费;
firstItem String null 首件数
firstitemFare String null 首件运费
continuedItem String null 续件数量
continueditemFare String null 续件运费
totetype String null 运送方式。默认为快递
sperencod String null 特定模板-地区代码。,多个以逗号隔开。
speprovencod String null 特定模板-省,多个以逗号隔开。
specityencod String null 特定模板-市,多个以逗号隔开。
firstweight String null 首重量
firstweightfare String null 首重量运费
continuedweight String null 续重量
continuedweightfare String null 续重量运费
firstbulk String null 首体积
firstbulkfare String null 首体积运费
continuedtbulk String null 续体积
continuedbulkfare String null 续体积运费
nationalcityflag String null 默认运费
specificarea String null 运费特定区域模板中文描述
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                <sn_request>
	<sn_body>
		<freightTemplate>
			<pageNo>1</pageNo>
			<pageSize>10</pageSize>
		</freightTemplate>
	</sn_body>
</sn_request>
                                
                                {
  "sn_request": {
    "sn_body": {
      "freightTemplate": {
        "pageNo": "1",
        "pageSize": "10"
      }
    }
  }
}
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              <sn_responseContent>
	<sn_head>
		<pageTotal>1</pageTotal>
		<pageNo>1</pageNo>
		<totalSize>2</totalSize>
		<returnMessage>biz.handler.data-get:success</returnMessage>
	</sn_head>
	<sn_body>
		<freightTemplate>
			<freighttemplatename>全国模板</freighttemplatename>
			<freighttemplateid>c88a56855a5145119c74d1316d956ff1</freighttemplateid>
			<totetype>快递</totetype>
			<shippingtype>0</shippingtype>
			<nationalcityflag>全国</nationalcityflag>
			<firstItem>1</firstItem>
			<firstitemFare>12.00</firstitemFare>
			<continuedItem>1</continuedItem>
			<continueditemFare>2.00</continueditemFare>
			<valuationtype>0</valuationtype>
			<firstweight>0.00</firstweight>
			<firstweightfare>0.00</firstweightfare>
			<continuedweight>0.00</continuedweight>
			<continuedweightfare>0.00</continuedweightfare>
			<firstbulk>0.00</firstbulk>
			<firstbulkfare>0.00</firstbulkfare>
			<continuedtbulk>0.00</continuedtbulk>
			<continuedbulkfare>0.00</continuedbulkfare>
			<freightList>
				<sperencod></sperencod>
				<speprovencod>050,040,070,090,250,290,260,280,300</speprovencod>
				<specityencod></specityencod>
				<firstItem>1</firstItem>
				<firstitemFare>15.00</firstitemFare>
				<continuedItem>1</continuedItem>
				<continueditemFare>5.00</continueditemFare>
				<firstweight>0.00</firstweight>
				<firstweightfare>0.00</firstweightfare>
				<continuedweight>0.00</continuedweight>
				<continuedweightfare>0.00</continuedweightfare>
				<firstbulk>0.00</firstbulk>
				<firstbulkfare>0.00</firstbulkfare>
				<continuedtbulk>0.00</continuedtbulk>
				<continuedbulkfare>0.00</continuedbulkfare>
				<specificarea>西藏,山西,内蒙古,辽宁,黑龙江,陕西,新疆,甘肃,青海</specificarea>
			</freightList>
			<freightList>
				<sperencod></sperencod>
				<speprovencod>050,040,070,090,250,290,260,280,300</speprovencod>
				<specityencod></specityencod>
				<firstItem>1</firstItem>
				<firstitemFare>15.00</firstitemFare>
				<continuedItem>1</continuedItem>
				<continueditemFare>5.00</continueditemFare>
				<firstweight>0.00</firstweight>
				<firstweightfare>0.00</firstweightfare>
				<continuedweight>0.00</continuedweight>
				<continuedweightfare>0.00</continuedweightfare>
				<firstbulk>0.00</firstbulk>
				<firstbulkfare>0.00</firstbulkfare>
				<continuedtbulk>0.00</continuedtbulk>
				<continuedbulkfare>0.00</continuedbulkfare>
				<specificarea>西藏,山西,内蒙古,辽宁,黑龙江,陕西,新疆,甘肃,青海</specificarea>
			</freightList>
		</freightTemplate>
		<freightTemplate>
			<freighttemplatename>全国模板</freighttemplatename>
			<freighttemplateid>c88a56855a5145119c74d1316d956ff1</freighttemplateid>
			<totetype>快递</totetype>
			<shippingtype>0</shippingtype>
			<nationalcityflag>全国</nationalcityflag>
			<firstItem>1</firstItem>
			<firstitemFare>12.00</firstitemFare>
			<continuedItem>1</continuedItem>
			<continueditemFare>2.00</continueditemFare>
			<valuationtype>0</valuationtype>
			<firstweight>0.00</firstweight>
			<firstweightfare>0.00</firstweightfare>
			<continuedweight>0.00</continuedweight>
			<continuedweightfare>0.00</continuedweightfare>
			<firstbulk>0.00</firstbulk>
			<firstbulkfare>0.00</firstbulkfare>
			<continuedtbulk>0.00</continuedtbulk>
			<continuedbulkfare>0.00</continuedbulkfare>
			<freightList>
				<sperencod></sperencod>
				<speprovencod>050,040,070,090,250,290,260,280,300</speprovencod>
				<specityencod></specityencod>
				<firstItem>1</firstItem>
				<firstitemFare>15.00</firstitemFare>
				<continuedItem>1</continuedItem>
				<continueditemFare>5.00</continueditemFare>
				<firstweight>0.00</firstweight>
				<firstweightfare>0.00</firstweightfare>
				<continuedweight>0.00</continuedweight>
				<continuedweightfare>0.00</continuedweightfare>
				<firstbulk>0.00</firstbulk>
				<firstbulkfare>0.00</firstbulkfare>
				<continuedtbulk>0.00</continuedtbulk>
				<continuedbulkfare>0.00</continuedbulkfare>
				<specificarea>西藏,山西,内蒙古,辽宁,黑龙江,陕西,新疆,甘肃,青海</specificarea>
			</freightList>
			<freightList>
				<sperencod></sperencod>
				<speprovencod>050,040,070,090,250,290,260,280,300</speprovencod>
				<specityencod></specityencod>
				<firstItem>1</firstItem>
				<firstitemFare>15.00</firstitemFare>
				<continuedItem>1</continuedItem>
				<continueditemFare>5.00</continueditemFare>
				<firstweight>0.00</firstweight>
				<firstweightfare>0.00</firstweightfare>
				<continuedweight>0.00</continuedweight>
				<continuedweightfare>0.00</continuedweightfare>
				<firstbulk>0.00</firstbulk>
				<firstbulkfare>0.00</firstbulkfare>
				<continuedtbulk>0.00</continuedtbulk>
				<continuedbulkfare>0.00</continuedbulkfare>
				<specificarea>西藏,山西,内蒙古,辽宁,黑龙江,陕西,新疆,甘肃,青海</specificarea>
			</freightList>
		</freightTemplate>
	</sn_body>
</sn_responseContent>
                              
                              {
  "sn_responseContent": {
    "sn_head": {
      "pageTotal": "1",
      "pageNo": "1",
	  "totalSize":"2",
      "returnMessage": "biz.handler.data-get:success"
    },
    "sn_body": {
      "freightTemplate": [
        {
            "freighttemplatename": "全国模板", 
            "freighttemplateid": "c88a56855a5145119c74d1316d956ff1", 
            "totetype": "快递", 
            "shippingtype": "0", 
            "nationalcityflag": "全国", 
            "firstItem": "1", 
            "firstitemFare": "12.00", 
            "continuedItem": "1", 
            "continueditemFare": "2.00", 
            "valuationtype": "0", 
            "firstweight": "0.00", 
            "firstweightfare": "0.00", 
            "continuedweight": "0.00", 
            "continuedweightfare": "0.00", 
            "firstbulk": "0.00", 
            "firstbulkfare": "0.00", 
            "continuedtbulk": "0.00", 
            "continuedbulkfare": "0.00", 
            "freightList": [
                {
                    "sperencod": "", 
                    "speprovencod": "050,040,070,090,250,290,260,280,300", 
                    "specityencod": "", 
                    "firstItem": "1", 
                    "firstitemFare": "15.00", 
                    "continuedItem": "1", 
                    "continueditemFare": "5.00", 
                    "firstweight": "0.00", 
                    "firstweightfare": "0.00", 
                    "continuedweight": "0.00", 
                    "continuedweightfare": "0.00", 
                    "firstbulk": "0.00", 
                    "firstbulkfare": "0.00", 
                    "continuedtbulk": "0.00", 
                    "continuedbulkfare": "0.00", 
                    "specificarea": "西藏,山西,内蒙古,辽宁,黑龙江,陕西,新疆,甘肃,青海"
                },
				{
                    "sperencod": "", 
                    "speprovencod": "050,040,070,090,250,290,260,280,300", 
                    "specityencod": "", 
                    "firstItem": "1", 
                    "firstitemFare": "15.00", 
                    "continuedItem": "1", 
                    "continueditemFare": "5.00", 
                    "firstweight": "0.00", 
                    "firstweightfare": "0.00", 
                    "continuedweight": "0.00", 
                    "continuedweightfare": "0.00", 
                    "firstbulk": "0.00", 
                    "firstbulkfare": "0.00", 
                    "continuedtbulk": "0.00", 
                    "continuedbulkfare": "0.00", 
                    "specificarea": "西藏,山西,内蒙古,辽宁,黑龙江,陕西,新疆,甘肃,青海"
                }
            ]
        },
		{
            "freighttemplatename": "全国模板", 
            "freighttemplateid": "c88a56855a5145119c74d1316d956ff1", 
            "totetype": "快递", 
            "shippingtype": "0", 
            "nationalcityflag": "全国", 
            "firstItem": "1", 
            "firstitemFare": "12.00", 
            "continuedItem": "1", 
            "continueditemFare": "2.00", 
            "valuationtype": "0", 
            "firstweight": "0.00", 
            "firstweightfare": "0.00", 
            "continuedweight": "0.00", 
            "continuedweightfare": "0.00", 
            "firstbulk": "0.00", 
            "firstbulkfare": "0.00", 
            "continuedtbulk": "0.00", 
            "continuedbulkfare": "0.00", 
            "freightList": [
                {
                    "sperencod": "", 
                    "speprovencod": "050,040,070,090,250,290,260,280,300", 
                    "specityencod": "", 
                    "firstItem": "1", 
                    "firstitemFare": "15.00", 
                    "continuedItem": "1", 
                    "continueditemFare": "5.00", 
                    "firstweight": "0.00", 
                    "firstweightfare": "0.00", 
                    "continuedweight": "0.00", 
                    "continuedweightfare": "0.00", 
                    "firstbulk": "0.00", 
                    "firstbulkfare": "0.00", 
                    "continuedtbulk": "0.00", 
                    "continuedbulkfare": "0.00", 
                    "specificarea": "西藏,山西,内蒙古,辽宁,黑龙江,陕西,新疆,甘肃,青海"
                },
				{
                    "sperencod": "", 
                    "speprovencod": "050,040,070,090,250,290,260,280,300", 
                    "specityencod": "", 
                    "firstItem": "1", 
                    "firstitemFare": "15.00", 
                    "continuedItem": "1", 
                    "continueditemFare": "5.00", 
                    "firstweight": "0.00", 
                    "firstweightfare": "0.00", 
                    "continuedweight": "0.00", 
                    "continuedweightfare": "0.00", 
                    "firstbulk": "0.00", 
                    "firstbulkfare": "0.00", 
                    "continuedtbulk": "0.00", 
                    "continuedbulkfare": "0.00", 
                    "specificarea": "西藏,山西,内蒙古,辽宁,黑龙江,陕西,新疆,甘肃,青海"
                }
            ]
        }
      ]
    }
  }
}
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
sys.check.page-param:error 每页条数参数错误 请输入正确的条数
biz.handler.data-get:no-result 页码无结果 请输入正确的页码
sys.check.pagesize-format:error 每页条数格式错误 取值范围:大于零的整数;最大值:50;默认值:10
公共异常码
API工具
FAQ

Q:什么是特殊地区运费?

A:在运费模板当中,设定某些地区为特殊地区,另行设定运费,特殊地区执行为之另行设定的运费。