dsc.goods.freight.info.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

请求�数

�称 类型 是�必须 示例值 更多�制 �述
tid Number �选 (唯一性) 商��费模�ID
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.info.get&tid=1&format=xml"
$Http = new Http();
$Http->doGet($url);

�应示例

  • XML
  • JSON
<dsc>
<info>
<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>
</info>
</dsc>
{
"info": {
"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",
}
}

异常示例

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

错误�解释

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

0:�功获�数�

1:数�为空值

2:�件为空或�数�存在

返回
顶部