HttpPost httpPost = new HttpPost("https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/98065001/couponcodes");
UploadCodeDto uploadCodeDto = new UploadCodeDto();
List<String> list = new ArrayList();
list.add("ABC9588200");
list.add("ABC9588201");
uploadCodeDto.setCoupon_code_list(list);
uploadCodeDto.setUpload_request_no("100002322019090134234sfdf");
String json = JSONObject.toJSONString(uploadCodeDto);
System.err.println(json);
StringEntity reqEntity = new StringEntity(
json);
httpPost.setEntity(reqEntity);
httpPost.setHeader("Accept", "application/json;charset=utf-8");
CloseableHttpResponse response = httpClient.execute(httpPost);
System.err.println("response.getStatusLine().getStatusCode()=="+response.getStatusLine().getStatusCode());
您好,具体是商家券哪个接口的问题?请发下对应的开发文档,还有对应返回的Request-ID