优品AI查询优惠接口
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| ump_promotion_query | UmpPromotionQuery | 可选 | 入参 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| suc | Boolean | true | 是否成功 |
| module | ItemPromotionWrapperDTO | 优惠DTO | |
|
|||
| error_message | String | “” | 错误信息 |
| error | String | “” | 错误码 |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallTmypAiQueryallpromotionbyitemRequest req = new TmallTmypAiQueryallpromotionbyitemRequest();
TmallTmypAiQueryallpromotionbyitemRequest.UmpPromotionQuery obj1 = new TmallTmypAiQueryallpromotionbyitemRequest.UmpPromotionQuery();
obj1.setTimeStamp(StringUtils.parseDateTime("2025-11-28 11:11:11"));
obj1.setItemId(11L);
obj1.setChannel("xx");
obj1.setIncludeFinalPrice(true);
obj1.setStoreId(11L);
obj1.setOpenid("xxxx");
obj1.setValidTemplateCodes("{1:111}");
obj1.setUuid(111L);
obj1.setSkuId(11L);
req.setUmpPromotionQuery(obj1);
TmallTmypAiQueryallpromotionbyitemResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<tmall_tmyp_ai_queryallpromotionbyitem_response>
<suc>true</suc>
<module>
<item_id>1111</item_id>
<item_discount_price_list>
<item_discount_price_d_t_o>
<item_id>111</item_id>
<sku_id>111</sku_id>
<original_price>11</original_price>
<discount_price>111</discount_price>
<item_promotion_user_limit>111</item_promotion_user_limit>
<item_promotion_user_limit_left_count>1</item_promotion_user_limit_left_count>
<item_promotion_item_limit>1</item_promotion_item_limit>
<item_promotion_item_limit_left_count>1</item_promotion_item_limit_left_count>
<start_time>xxx</start_time>
<end_time>xxx</end_time>
<title>xxx</title>
<tool_code>xx</tool_code>
<description>xx</description>
<discount>11</discount>
<s_time>2025-11-28 11:11:11</s_time>
<e_time>2025-11-28 11:11:11</e_time>
</item_discount_price_d_t_o>
</item_discount_price_list>
<shop_promotion_detail_list>
<promotion_detail_d_t_o>
<start_time>xx</start_time>
<end_time>xx</end_time>
<warm_up_start_time>xx</warm_up_start_time>
<warm_up_end_time>xx</warm_up_end_time>
<infinite>false</infinite>
<title>xx</title>
<tool_code>xx</tool_code>
<description>xx</description>
<discount>11</discount>
<s_time>2025-11-28 11:11:11</s_time>
<e_time>2025-11-28 11:11:11</e_time>
</promotion_detail_d_t_o>
</shop_promotion_detail_list>
<coupon_promotion_detail_list>
<promotion_detail_d_t_o>
<start_time>xx</start_time>
<end_time>xx</end_time>
<warm_up_start_time>xx</warm_up_start_time>
<warm_up_end_time>xx</warm_up_end_time>
<infinite>false</infinite>
<title>xx</title>
<tool_code>xx</tool_code>
<description>xx</description>
<discount>11</discount>
<s_time>2025-11-28 11:11:11</s_time>
<e_time>2025-11-28 11:11:11</e_time>
</promotion_detail_d_t_o>
</coupon_promotion_detail_list>
<after_coupon_price>
<item_id>11</item_id>
<selected_sku_id>11</selected_sku_id>
<discount_fee>1</discount_fee>
<final_price>1</final_price>
<text_type>1</text_type>
<text>""</text>
<district_text>""</district_text>
<is_district_price>false</is_district_price>
<promotion_detail_list>
<after_coupon_price_promotion_detail_d_t_o>
<promotion_type>xx</promotion_type>
<discount_fee_value>11</discount_fee_value>
<title>xx</title>
<tool_code>xx</tool_code>
<description>xx</description>
<discount>11</discount>
<s_time>2025-11-28 11:11:11</s_time>
<e_time>2025-11-28 11:11:11</e_time>
</after_coupon_price_promotion_detail_d_t_o>
</promotion_detail_list>
<sku_after_coupon_price_list>
<sku_after_coupon_price_d_t_o>
<sku_id>1</sku_id>
<discount_fee>1</discount_fee>
<final_price>1</final_price>
<text>xx</text>
</sku_after_coupon_price_d_t_o>
</sku_after_coupon_price_list>
</after_coupon_price>
</module>
<error_message>“”</error_message>
<error>“”</error>
</tmall_tmyp_ai_queryallpromotionbyitem_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|