文档中心 > API类目 > 电子面单API

cainiao.cloudprint.isvtemplates.get (获取商家使用的标准模板)

获取商家使用的标准模板

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result CloudPrintBaseResult result
  • datas
  • CustomTemplateResult []
  • data
  • └ isv_template_id
  • Number
  • 1011
  • isv模板的id
  • └ isv_template_name
  • String
  • 自定义模板1
  • isv模板的名称
  • └ isv_template_url
  • String
  • http://cloudprint.cainiao.com/xxx
  • isv模板的url
  • keys
  • KeyResult []
  • 模板的keys
  • └ key_name
  • String
  • 宝贝信息
  • key名称
  • └ version
  • String
  • 1.0
  • 版本号
  • └ error_code
  • String
  • 601
  • 错误码
  • └ error_message
  • String
  • 获取模板失败
  • 错误消息
  • └ success
  • Boolean
  • false
  • 是否成功

请求示例

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

响应示例

  • XML示例
  • JSON示例
<cainiao_cloudprint_isvtemplates_get_response>
    <result>
        <datas>
            <custom_template_result>
                <isv_template_id>1011</isv_template_id>
                <isv_template_name>自定义模板1</isv_template_name>
                <isv_template_url>http://cloudprint.cainiao.com/xxx</isv_template_url>
                <keys>
                    <key_result>
                        <key_name>宝贝信息</key_name>
                    </key_result>
                </keys>
                <version>1.0</version>
            </custom_template_result>
        </datas>
        <error_code>601</error_code>
        <error_message>获取模板失败</error_message>
        <success>false</success>
    </result>
</cainiao_cloudprint_isvtemplates_get_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

返回
顶部