文档中心 > API类目 > 淘宝买菜次日达-快递送达

alibaba.tbmc.item.publish.schema.get (获取商品发布模板)

获取商品发布模板

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_schema_query_request ItemSchemaQueryRequest 可选 查询模版对象
  • └ category_id
  • Number
  • 可选
  • 123
  • 类目id

响应参数

名称 类型 示例值 描述
result TopBaseResult result
  • └ return_code
  • String
  • code
  • 错误码
  • └ return_msg
  • String
  • msg
  • 错误信息
  • └ success
  • Boolean
  • true
  • 响应是否成功
  • model
  • ItemFieldDTO []
  • model
  • └ input_value_list
  • String []
  • 可输入参数值 对应type -> input_list
  • └ can_update
  • Boolean
  • true
  • 是否可更新
  • enum_value
  • ItemPropertyDTO
  • 枚举属性值 对应type -> enum
  • └ property_value
  • String
  • 农夫山泉
  • 属性值
  • └ property_id
  • String
  • 123
  • 属性值ID
  • json_value
  • ItemFieldSecondDTO []
  • json类型输入属性值 对应type -> json
  • └ input_value_list
  • String []
  • 可输入参数值 对应type -> input_list
  • └ can_update
  • Boolean
  • true
  • 是否可更新
  • enum_value
  • ItemPropertyDTO
  • 枚举属性值 对应type -> enum
  • └ property_value
  • String
  • 农夫山泉
  • 属性值
  • └ property_id
  • String
  • 123
  • 属性值ID
  • value_list
  • ItemPropertyDTO []
  • 枚举值,type为enum时,返回所有可选的枚举值 属性值ID:属性值
  • └ property_value
  • String
  • 农夫山泉
  • 属性值
  • └ property_id
  • String
  • 123
  • 属性值ID
  • └ input_value
  • String
  • 30
  • 可输入参数值 对应type -> input_single
  • └ name
  • String
  • 保质期
  • 参数名称
  • └ type
  • String
  • input_single
  • 参数类型 enum 枚举值 input_single 输入值-单个 input_list 输入值-多个 json 固定格式
  • └ required
  • Boolean
  • true
  • 是否必须
  • └ field_id
  • String
  • period
  • 参数ID 商品字段为ID 类目属性字段为prop_属性ID
  • value_list
  • ItemPropertyDTO []
  • 枚举值,type为enum时,返回所有可选的枚举值 属性值ID:属性值
  • └ property_value
  • String
  • 农夫山泉
  • 属性值
  • └ property_id
  • String
  • 123
  • 属性值ID
  • └ input_value
  • String
  • 30
  • 可输入参数值 对应type -> input_single
  • └ name
  • String
  • 保质期
  • 参数名称
  • └ type
  • String
  • input_single
  • 参数类型 enum 枚举值 input_single 输入值-单个 input_list 输入值-多个 json 固定格式
  • └ required
  • Boolean
  • true
  • 是否必须
  • └ field_id
  • String
  • period
  • 参数ID 商品字段为ID 类目属性字段为prop_属性ID

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTbmcItemPublishSchemaGetRequest req = new AlibabaTbmcItemPublishSchemaGetRequest();
AlibabaTbmcItemPublishSchemaGetRequest.ItemSchemaQueryRequest obj1 = new AlibabaTbmcItemPublishSchemaGetRequest.ItemSchemaQueryRequest();
obj1.setCategoryId(123L);
req.setItemSchemaQueryRequest(obj1);
AlibabaTbmcItemPublishSchemaGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tbmc_item_publish_schema_get_response>
    <result>
        <return_code>code</return_code>
        <return_msg>msg</return_msg>
        <success>true</success>
        <model>
            <item_field_d_t_o>
                <can_update>true</can_update>
                <enum_value>
                    <property_value>农夫山泉</property_value>
                    <property_id>123</property_id>
                </enum_value>
                <json_value>
                    <item_field_second_d_t_o>
                        <can_update>true</can_update>
                        <enum_value>
                            <property_value>农夫山泉</property_value>
                            <property_id>123</property_id>
                        </enum_value>
                        <value_list>
                            <item_property_d_t_o>
                                <property_value>农夫山泉</property_value>
                                <property_id>123</property_id>
                            </item_property_d_t_o>
                        </value_list>
                        <input_value>30</input_value>
                        <name>保质期</name>
                        <type>input_single</type>
                        <required>true</required>
                        <field_id>period</field_id>
                    </item_field_second_d_t_o>
                </json_value>
                <value_list>
                    <item_property_d_t_o>
                        <property_value>农夫山泉</property_value>
                        <property_id>123</property_id>
                    </item_property_d_t_o>
                </value_list>
                <input_value>30</input_value>
                <name>保质期</name>
                <type>input_single</type>
                <required>true</required>
                <field_id>period</field_id>
            </item_field_d_t_o>
        </model>
    </result>
</alibaba_tbmc_item_publish_schema_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

返回
顶部