查询新零售商品信息
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| booth_id | Number | 可选 | 12345 | 城市站id | |
| item_id | Number | 必须 | 12345 | 商品id |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| tmall_nrt_item_get | ResultDo | 返回结果 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TmallNrtItemGetRequest req = new TmallNrtItemGetRequest(); req.setBoothId(12345L); req.setItemId(12345L); TmallNrtItemGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<tmall_nrt_item_get_response>
<tmall_nrt_item_get>
<data>
<status>1</status>
<booth_id>123</booth_id>
<c_id>123</c_id>
<c_props>
<category_prop_dto>
<property_id>20000</property_id>
<property_name>品牌</property_name>
<value_id>1000</value_id>
<value_text>TATA</value_text>
</category_prop_dto>
</c_props>
<create_time>2000-01-01 00:00:00</create_time>
<dealer_code>dealer01</dealer_code>
<desc>这是一个好商品</desc>
<ext>
<brand_series_id>100</brand_series_id>
<brand_series_name>系列A</brand_series_name>
<charge_unit>BG</charge_unit>
<grade>1</grade>
<label_price_type>1</label_price_type>
<original_location>
<city>杭州</city>
<city_id>111</city_id>
<prov>浙江</prov>
<prov_id>111</prov_id>
<type>1</type>
</original_location>
<price_type>1</price_type>
<pricer>测试</pricer>
<secondary_steel>123</secondary_steel>
<specification>123</specification>
<specification_unit>kg</specification_unit>
<substrate>123</substrate>
<support_return_goods>true</support_return_goods>
<veneer>124</veneer>
</ext>
<features>{"aaaa":"bb"}</features>
<item_id>123</item_id>
<images>
<item_image_dto>
<position>1</position>
<url>xxxx.jpg</url>
</item_image_dto>
</images>
<item_type>1</item_type>
<main_item_id>111</main_item_id>
<mall_id>1111</mall_id>
<outer_id>123123</outer_id>
<price>99.99</price>
<quantity>99</quantity>
<skus>
<sku_dto>
<barcode>12312312</barcode>
<create_time>2000-01-01 00:00:00</create_time>
<outer_id>12312313</outer_id>
<price>99.99</price>
<properties>
<category_prop_dto>
<property_id>123131</property_id>
<property_name>颜色</property_name>
<value_id>213123</value_id>
<value_text>白色</value_text>
</category_prop_dto>
</properties>
<quantity>99</quantity>
<sku_id>12312312</sku_id>
<update_time>2000-01-01 00:00:00</update_time>
</sku_dto>
</skus>
<title>衣柜</title>
<update_time>2000-01-01 00:00:00</update_time>
</data>
<err_code>sys_err</err_code>
<err_msg>系统错误</err_msg>
<success>true</success>
</tmall_nrt_item_get>
</tmall_nrt_item_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| NO_PERMISSION | 无权限访问 | 正常拦截,无需处理 |
| -1 | 业务异常错误 | 无需处理 |