文档中心 > API类目 > 质检品控API

taobao.ts.property.get (淘宝服务属性查询)

淘宝服务属性查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
service_item_code String 必须 ts-9394-1
  • 最大长度:64
  • 服务收费项code

    响应参数

    名称 类型 示例值 描述
    service_item_property ServiceItemProperty 服务收费项相关属性对象
    • item_property_values
    • ItemPropertyValues []
    • 属性列表
    • └ property_id
    • Number
    • 1000
    • 服务属性id
    • └ property_name
    • String
    • 品牌
    • 属性名称
    • └ property_values
    • String []
    • 红色
    • 属性值列表.
    • └ service_name
    • String
    • 服务名称
    • 服务名称
    • └ service_item_name
    • String
    • 服务收费项名称
    • 服务收费项名称
    • └ service_item_code
    • String
    • 服务收费项代码
    • 服务收费项代码
    • └ basic_price
    • String
    • 22.00
    • 基础价格
    • └ nick
    • String
    • tbtest1106
    • 服务商的nick
    • └ description
    • String
    • 质检服务简介
    • 质检服务简介

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TsPropertyGetRequest req = new TsPropertyGetRequest();
    req.setServiceItemCode("ts-9394-1");
    TsPropertyGetResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <ts_property_get_response>
        <service_item_property>
            <item_property_values>
                <item_property_values>
                    <property_id>1000</property_id>
                    <property_name>品牌</property_name>
                    <property_values>
                        <string>红色</string>
                    </property_values>
                </item_property_values>
            </item_property_values>
            <service_name>服务名称</service_name>
            <service_item_name>服务收费项名称</service_item_name>
            <service_item_code>服务收费项代码</service_item_code>
            <basic_price>22.00</basic_price>
            <nick>tbtest1106</nick>
            <description>质检服务简介</description>
        </service_item_property>
    </ts_property_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

    返回
    顶部