查询无条件单品优惠活动
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
activity_id | Number | 必须 | 3584608 | 活动id。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
item_promotion | ItemPromotion | MjsPromotion | 单品优惠活动信息。 |
|
1 2 3 4 5 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); PromotionmiscItemActivityGetRequest req = new PromotionmiscItemActivityGetRequest(); req.setActivityId(3584608L); PromotionmiscItemActivityGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | < promotionmisc_item_activity_get_response > < item_promotion > < activity_id >35089326</ activity_id > < name >八月优惠季</ name > < description >减钱(单位是分):500</ description > < participate_range >0</ participate_range > < start_time >2013-08-01 00:00:00</ start_time > < end_time >2013-08-05 00:00:00</ end_time > < is_user_tag >true</ is_user_tag > < user_tag >top3294304</ user_tag > < is_decrease_money >true</ is_decrease_money > < decrease_amount >100</ decrease_amount > < is_discount >true</ is_discount > < discount_rate >800</ discount_rate > </ item_promotion > </ promotionmisc_item_activity_get_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.activity-not-exist:activityId | 根据activity_id查询不到activity | 更换activity_id后重新提交 |