三方渠道合作,通过抽奖形式发放权益
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
lottery_performance_top_param | LotteryPerformanceTopParam | 必须 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
return_code | String | 200005 | 错误码 |
return_value | LotteryPerformanceResult | 返回值 | |
|
|||
return_message | String | 活动已结束 | 错误描述 |
1 2 3 4 5 6 7 8 9 10 11 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); FilmLotteryPerformanceRequest req = new FilmLotteryPerformanceRequest(); FilmLotteryPerformanceRequest.LotteryPerformanceTopParam obj1 = new FilmLotteryPerformanceRequest.LotteryPerformanceTopParam(); obj1.setMixUserId( "AAHbqNnmACSqk_rfpVTc9e3T" ); obj1.setSpreadId( "prizePool_o2pgeyxphlccrjm5jvm2ykpfxox7rz6wdohtp" ); obj1.setOutBizId( "test_out_biz_id" ); obj1.setPlatform(8L); obj1.setBizExtInfo( "{}" ); req.setLotteryPerformanceTopParam(obj1); FilmLotteryPerformanceResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | < film_lottery_performance_response > < return_code >200005</ return_code > < return_value > < result_code >1</ result_code > < rewards > < lottery_performance_reward_d_t_o > < reward_title >淘票票5元代金券/60元通兑券</ reward_title > < reward_sub_title >尊享电影+演出共10余项权益</ reward_sub_title > < reward_type >14</ reward_type > < reward_sub_type >7</ reward_sub_type > < reward_count >50</ reward_count > < reward_unit >元</ reward_unit > < cost_price >100</ cost_price > < gmt_expire >2022-06-08 13:33:00</ gmt_expire > < reward_ext >{}</ reward_ext > < code_info_list > < reward_info_d_t_o > < code >22515TY9GY5</ code > </ reward_info_d_t_o > </ code_info_list > </ lottery_performance_reward_d_t_o > </ rewards > </ return_value > < return_message >活动已结束</ return_message > </ film_lottery_performance_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
1005 | 参数不合法 | 活动ID、用户ID、幂等ID不能为空 |
200005 | 活动已结束 | 联系运营同学,检查活动配置 |
70005 | 用户没有通过资格校验 | 用户身份校验不通过,可能为黄牛等 |
200004 | 活动暂未开始 | 联系运营同学,检查活动配置 |
200008 | 预算已用完 | 联系运营同学,检查活动配置 |
200025 | 活动配置错误(错误原因XXX) | 联系运营同学,检查活动配置 |
0 | 成功 | 无需 |