文档中心 > API类目 > 全球速卖通-企业ERP

aliexpress.freight.redefining.getfreightsettingbytemplatequery (通过模板ID获取单个运费模板内容)

通过模板ID获取单个运费模板内容

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
template_id Number 必须 1000 Template id

响应参数

名称 类型 示例值 描述
template_id Number 1000 运费模板Id
error_desc String System error errorDesc
is_default Boolean true isDefault
is_success Boolean true isSuccess
freight_setting_list AeopFreightSetting [] 1 freightSettingList
  • selfdefine_list
  • AeopFreightSelfdefine []
  • 运费模板自定义按件或按重内容
  • └ custom_freight_type
  • String
  • order_num
  • 自定义的方式(按件/按重)
  • └ start_order_num
  • Number
  • 1
  • 起始采购量
  • self_define_weight_list
  • AeopFreightSelfdefineWeight []
  • 自定义按重内容
  • └ interval_unit_weight
  • Number
  • 1.5
  • 区间内,单位重量
  • └ end_weight
  • Number
  • 5.0
  • 重量区间结束
  • └ start_weight
  • Number
  • 0.0
  • 重量区间起始
  • └ interval_unit_freight
  • Number
  • 1.5
  • 区间内,单元重量运费
  • └ shipping_country
  • String
  • RU
  • 自定义运送国家
  • └ min_freight
  • Number
  • 1.5
  • 最低报价
  • └ end_order_num
  • Number
  • 5
  • 截至采购量
  • └ add_freight
  • Number
  • 1.0
  • 续增运费
  • └ per_add_num
  • Number
  • 1
  • 每增加定额产品采购量
  • template
  • AeopFreightTemplate
  • 运费模板基础信息内容
  • └ standard_shipping_discount
  • Number
  • 10.0
  • 标准运费折扣
  • └ all_standard_discount
  • Number
  • 10.0
  • 完全标准运费折扣
  • └ free_shipping_country
  • String
  • RU
  • 免运费国家
  • └ standard_shipping_country
  • String
  • CN
  • 标准运费国家
  • └ logistics_company
  • String
  • CPAM
  • 物流公司
  • └ all_standard_shipping
  • String
  • N
  • 完全标准运费折扣
  • └ all_free_shipping
  • String
  • N
  • 是否全免费
  • selfstandard_list
  • AeopFreightSelfdefineStandard []
  • selfstandard
  • └ self_standard_discount
  • Number
  • 10.0
  • 自定义标准折扣
  • └ self_standard_country
  • String
  • RU,US
  • 自定义运费国家
template_name String template name templateName

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressFreightRedefiningGetfreightsettingbytemplatequeryRequest req = new AliexpressFreightRedefiningGetfreightsettingbytemplatequeryRequest();
req.setTemplateId(1000L);
AliexpressFreightRedefiningGetfreightsettingbytemplatequeryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_freight_redefining_getfreightsettingbytemplatequery_response>
    <template_id>1000</template_id>
    <error_desc>System error</error_desc>
    <is_default>true</is_default>
    <is_success>true</is_success>
    <freight_setting_list>
        <aeop_freight_setting>
            <selfdefine_list>
                <aeop_freight_selfdefine>
                    <custom_freight_type>order_num</custom_freight_type>
                    <start_order_num>1</start_order_num>
                    <self_define_weight_list>
                        <aeop_freight_selfdefine_weight>
                            <interval_unit_weight>1.5</interval_unit_weight>
                            <end_weight>5.0</end_weight>
                            <start_weight>0.0</start_weight>
                            <interval_unit_freight>1.5</interval_unit_freight>
                        </aeop_freight_selfdefine_weight>
                    </self_define_weight_list>
                    <shipping_country>RU</shipping_country>
                    <min_freight>1.5</min_freight>
                    <end_order_num>5</end_order_num>
                    <add_freight>1.0</add_freight>
                    <per_add_num>1</per_add_num>
                </aeop_freight_selfdefine>
            </selfdefine_list>
            <template>
                <standard_shipping_discount>10.0</standard_shipping_discount>
                <all_standard_discount>10.0</all_standard_discount>
                <free_shipping_country>RU</free_shipping_country>
                <standard_shipping_country>CN</standard_shipping_country>
                <logistics_company>CPAM</logistics_company>
                <all_standard_shipping>N</all_standard_shipping>
                <all_free_shipping>N</all_free_shipping>
            </template>
            <selfstandard_list>
                <aeop_freight_selfdefine_standard>
                    <self_standard_discount>10.0</self_standard_discount>
                    <self_standard_country>RU,US</self_standard_country>
                </aeop_freight_selfdefine_standard>
            </selfstandard_list>
        </aeop_freight_setting>
    </freight_setting_list>
    <template_name>template name</template_name>
</aliexpress_freight_redefining_getfreightsettingbytemplatequery_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部