发送券给指定用户
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_voucher_send_open_req | VoucherSendOpenReq | 可选 | 请求参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | CommonResult | 接口结果 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAlscCrmVoucherSendRequest req = new AlibabaAlscCrmVoucherSendRequest(); AlibabaAlscCrmVoucherSendRequest.VoucherSendOpenReq obj1 = new AlibabaAlscCrmVoucherSendRequest.VoucherSendOpenReq(); obj1.setOutBrandId( "24" ); obj1.setRequestId( "43242" ); obj1.setBrandId( "5445" ); obj1.setOutShopId( "6556" ); obj1.setCustomerId( "5757" ); obj1.setShopId( "424" ); obj1.setOperatorId( "4535" ); obj1.setVoucherId( "3243421" ); obj1.setVoucherNum(1L); req.setParamVoucherSendOpenReq(obj1); AlibabaAlscCrmVoucherSendResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 | < alibaba_alsc_crm_voucher_send_response > < result > < result >true</ result > < result_code ></ result_code > < result_view ></ result_view > < biz_success >true</ biz_success > < result_desc ></ result_desc > </ result > </ alibaba_alsc_crm_voucher_send_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 > |
错误码 | 错误描述 | 解决方案 |
---|