核销优惠券
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_voucher_status_change_open_req | VoucherStatusChangeOpenReq | 可选 | 参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | CommonResult | 1 | 接口结果 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAlscCrmVoucherStatusChangeRequest req = new AlibabaAlscCrmVoucherStatusChangeRequest(); AlibabaAlscCrmVoucherStatusChangeRequest.VoucherStatusChangeOpenReq obj1 = new AlibabaAlscCrmVoucherStatusChangeRequest.VoucherStatusChangeOpenReq(); obj1.setBrandId( "123" ); obj1.setCustomerId( "123" ); obj1.setOperatorId( "123" ); obj1.setOperatorName( "操作人名字" ); obj1.setOutBrandId( "123" ); obj1.setOutOrderId( "123" ); obj1.setOutShopId( "123" ); obj1.setRequestId( "123" ); obj1.setShopId( "123" ); obj1.setSource( "POS" ); obj1.setVoucherIdList( "" 123 "," 345 "" ); obj1.setVoucherStatusAction( "NORMAL_ISUSED" ); obj1.setVoucherPointList( "" 100 "," 200 "" ); req.setParamVoucherStatusChangeOpenReq(obj1); AlibabaAlscCrmVoucherStatusChangeResponse 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 | < alibaba_alsc_crm_voucher_status_change_response > < result > < biz_success >true</ biz_success > < result > < voucher_status_list > < voucher_status > < is_success >false</ is_success > < voucher_id >123</ voucher_id > </ voucher_status > </ voucher_status_list > </ result > < result_code >0</ result_code > < result_desc >使用成功</ result_desc > < result_view >使用成功</ result_view > </ result > </ alibaba_alsc_crm_voucher_status_change_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 > |
错误码 | 错误描述 | 解决方案 |
---|