查询用户的可用优惠券列表,仅包含优惠券基本信息和用户nick
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
biz_type | String | 必须 | suning | 业务类型 | |
buyer_id | String | 可选 | 123456 | buyer_id、buyer_nick至少填一个, 都填写以id为准 | |
buyer_nick | String | 可选 | 我是测试 | buyer_id、buyer_nick至少填一个, 都填写以id为准 | |
extra | Json | 可选 | {"seller_id":111111} | 扩展字段 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | result | |
|
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TmallPromotionCouponQueryRequest req = new TmallPromotionCouponQueryRequest(); req.setBizType( "suning" ); req.setBuyerId( "123456" ); req.setBuyerNick( "我是测试" ); req.setExtraString( "{\"seller_id\":111111}" ); TmallPromotionCouponQueryResponse 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 | < tmall_promotion_coupon_query_response > < result > < data_list > < data > < discount ></ discount > < start_fee ></ start_fee > < coupon_name ></ coupon_name > < end_time ></ end_time > < start_time ></ start_time > < supplier_id ></ supplier_id > < coupon_template_id ></ coupon_template_id > < id ></ id > </ data > </ data_list > < error_msg ></ error_msg > < result_code ></ result_code > </ result > </ tmall_promotion_coupon_query_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 > |
错误码 | 错误描述 | 解决方案 |
---|