dsc.goods.freight.list.get (获�商��费模�列表API)

获�商��费模�列表API,获�商��费模�相关信�。

公共�数

请求地�:
环境 HTTP请求地� HTTPS请求地�
正�环境 http://www.xxx.com/api.php https://www.xxx.com/api.php
公共请求�数:
�称 类型 是�必须 �述
method String 是 API接��称
app_key String 是 API接�AppKey

请求�数

�称 类型 是�必须 示例值 更多�制 �述
seller_id Number �选 商�ID
(必须�[seller_type=1]�数一起使用)
seller_type Number 必须 1 商家字段识别
page Number �选 1 默认 列表分页当�页
page_size Number �选 15 默认 列表分页�页显示�数
format type 必须 json json或xml 接�类型

�应�数

�称 类型 示例值 �述
tid Number �费模�ID
ru_id Number 商家ID
type String 0 计算方�(0:按统一�费;1:按�加�费;)
title Number 标题
update_time String æ›´æ–°æ—¶é—´
shipping_id String 2,9,14 ��方�ID(字符串拼接方�)
shipping_fee String 2.60 ��方�金�
area_id String 220,221,222,223,224,225,226,227,228 地区市级ID(字符串拼接方�)
top_area_id String 16,25,31 地区�份ID(字符串拼接方�)
sprice String 5.60 地区金�

请求示例

  • PHP
$url="http(s)://www.xxx.com/api.php?app_key=A788F457-1A7D-4CC7-ABA0-BFE212BCCD9A&method=dsc.goods.freight.list.get&format=xml"
$Http = new Http();
$Http->doGet($url);

�应示例

  • XML
  • JSON
<dsc>
<info>
<list>
<item id="0">
<tid>1</tid>
<ru_id>0</ru_id>
<type>1</type>
<title>江浙沪地区</title>
<shipping_id>9,16</shipping_id>
<shipping_fee>1.30</shipping_fee>
<area_id>220,221,222,223,224,225,226,227,228,229,230,231,232,321,383,384,385,386,387,388,389,390,391,392,393</area_id>
<top_area_id>16,25,31</top_area_id>
<sprice>6.00</sprice>
</item>
<item id="1">
<tid>3</tid>
<ru_id>0</ru_id>
<type>0</type>
<title>上海地区(统一)</title>
<shipping_id></shipping_id>
<shipping_fee>0.00</shipping_fee>
<area_id>321</area_id>
<top_area_id>25</top_area_id>
<sprice>3.50</sprice>
</item>
</list>
</info>
<filter>
<page>1</page>
<page_size>15</page_size>
<record_count>18</record_count>
<page_count>2</page_count>
</filter>
<page_count>2</page_count>
<record_count>18</record_count>
</dsc>
{
"info": {
"list": [{
"tid": "1",
"ru_id": "0",
"type": "1",
"title": "江浙沪地区",
"shipping_id": "9,16",
"shipping_fee": "1.30",
"area_id": "220,221,222,223,224,225,226,227,228,229,230,231,232,321,383,384,385,386,387,388,389,390,391,392,393",
"top_area_id": "16,25,31",
"sprice": "6.00",
},
{
"tid": "3",
"ru_id": "0",
"type": "0",
"title": "上海地区(统一)",
"shipping_id": "",
"shipping_fee": "0.00",
"area_id": "321",
"top_area_id": "25",
"sprice": "3.50",
}],
"filter": {
"page": 1,
"page_size": 15,
"record_count": 18,
"page_count": 2
},
"page_count": 2,
"record_count": 18
}
}

异常示例

  • XML
  • JSON
<dsc>
<result>success</result>
<error>0</error>
<msg>�功获�数�</msg>
</dsc>
{
"result": "success",
"error": 0,
"msg": "�功获�数�",
}

错误�解释

错误� 错误�述 解决方案
error 返回值

0:�功获�数�

1:数�为空值

返回
顶部