查询单个代金券信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
tenant_key | String | 必须 | 11 | 11 | |
token | String | 必须 | 11 | 11 | |
voucher_id | String | 必须 | 11 | 11 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Response | Response | 返回参数 |
|
1 2 3 4 5 6 7 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripMerchantGalaxyVoucherQueryRequest req = new AlitripMerchantGalaxyVoucherQueryRequest(); req.setTenantKey( "11" ); req.setToken( "11" ); req.setVoucherId( "11" ); AlitripMerchantGalaxyVoucherQueryResponse 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 26 27 28 29 30 31 32 33 34 35 36 | < alitrip_merchant_galaxy_voucher_query_response > < result > < success >true</ success > < error_code >10001</ error_code > < content > < voucher_id >1</ voucher_id > < voucher_status >chech_out</ voucher_status > < hotel_number >1</ hotel_number > < voucher_used_date >2021-10-11-11</ voucher_used_date > < order_id >7897889</ order_id > < voucher_price >100</ voucher_price > < voucher_number >1</ voucher_number > < voucher_name >亲子乐活豪华城景客房套餐亲子乐活豪华城景客房套餐亲子乐</ voucher_name > < effective_date >2021-06-21</ effective_date > < expire_date >2021-06-21</ expire_date > < appointment_notice > < base_desc_v_o > < name >退订规则</ name > < description >退订规则</ description > </ base_desc_v_o > </ appointment_notice > < available_date_list > < string >2021-06-21</ string > </ available_date_list > < img >头图</ img > < hotel_list > < string >["12"]</ string > </ hotel_list > < rate_code_list > < string >["ceshi"]</ string > </ rate_code_list > < night_account >1</ night_account > </ content > < error_msg >失败</ error_msg > </ result > </ alitrip_merchant_galaxy_voucher_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 > |
错误码 | 错误描述 | 解决方案 |
---|