淘宝闪购联盟单品推广详情(餐饮)
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| query_request | SingleItemPromotionRequest | 必须 | 查询rquest | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| data | ItemPromotionDto | 数据 | |
|
|||
| result_code | Number | 0 | 返回码 |
| message | String | success | 返回消息 |
| error_message | String | xxx不正确 | 错误消息 |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUnionElemePromotionItempromotionGetRequest req = new AlibabaAlscUnionElemePromotionItempromotionGetRequest();
AlibabaAlscUnionElemePromotionItempromotionGetRequest.SingleItemPromotionRequest obj1 = new AlibabaAlscUnionElemePromotionItempromotionGetRequest.SingleItemPromotionRequest();
obj1.setBizType("hot_item");
obj1.setPid("alsc_123_131_1313");
obj1.setItemId("0DE2606D93414EE8ECD84D49995A66D8");
obj1.setSid("1313");
obj1.setIncludeWxImg(true);
req.setQueryRequest(obj1);
AlibabaAlscUnionElemePromotionItempromotionGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_alsc_union_eleme_promotion_itempromotion_get_response>
<data>
<item_id>0DE2606D93414EE8ECD84D49995A66D8</item_id>
<item_name>37店通用|鲜蔬乌冬面套餐|5折限量抢购</item_name>
<picture>https://img.alicdn.com/i4/2200801151512/O1CN01xvUYrB1N2XYk7esnL_!!2200801151512-0-koubei.jpg</picture>
<biz_type>hoard_coupon</biz_type>
<original_price_cent>10000</original_price_cent>
<sell_price_cent>8000</sell_price_cent>
<discount>0.5</discount>
<start_ime>1690375813</start_ime>
<end_time>1693054213</end_time>
<commission_rate>0.1</commission_rate>
<commission>1000</commission>
<stock>122</stock>
<apply_city_count>12</apply_city_count>
<apply_shop_count>212</apply_shop_count>
<link>
<wx_appid>wxxxxxxxx</wx_appid>
<wx_path>xxxxx</wx_path>
<wx_mini_qrcode>xxxxx</wx_mini_qrcode>
<wx_picture>https://xxxxx.jpg</wx_picture>
<alipay_scheme_url>xxxxx</alipay_scheme_url>
<h5_promotion>
<h5_url>http://xxx</h5_url>
<short_link>http://xxx</short_link>
<h5_qr_code>http://xxx</h5_qr_code>
<h5_img_url>http://xxx</h5_img_url>
</h5_promotion>
<taobao_promotion>
<h5_url>http://xxx</h5_url>
<h5_short_url>http://xxx</h5_short_url>
<tb_qr_code>http://xxx</tb_qr_code>
<img_url>http://xxx</img_url>
<scheme_url>tbopen://m.taobao.com/tb</scheme_url>
<tb_watchword>xxx</tb_watchword>
<tb_watchword_suggest>xxx</tb_watchword_suggest>
</taobao_promotion>
<wx_promotion>
<wx_app_id>123</wx_app_id>
<wx_path>bdlm/pages/guide/index?</wx_path>
<wx_qr_code>http://xxx</wx_qr_code>
<img_url>http://xxx</img_url>
</wx_promotion>
<alipay_promotion>
<alipay_scheme_url>alipays://platformapi/star</alipay_scheme_url>
<alipay_watchword>123</alipay_watchword>
<alipay_watchword_suggest>123</alipay_watchword_suggest>
<img_url>http://xxx</img_url>
<alipay_qr_code>http://xxx</alipay_qr_code>
</alipay_promotion>
<app_promotion>
<deep_link>eleme://</deep_link>
<eleme_word>1234</eleme_word>
<word_valid_date>1792222</word_valid_date>
</app_promotion>
</link>
<item_type>1</item_type>
<ticket>
<price>5000</price>
<quantity>2</quantity>
<threshold>8000</threshold>
</ticket>
<total_sales>800+</total_sales>
</data>
<result_code>0</result_code>
<message>success</message>
<error_message>xxx不正确</error_message>
</alibaba_alsc_union_eleme_promotion_itempromotion_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>
| 错误码 | 错误描述 | 解决方案 |
|---|