收藏
回答

请问服务商支付接口调用失败

怎么特约商户开通了支付接口还不能调用https://api.mch.weixin.qq.com/v3/bill/fundflowbill

   PayUtils.setup();

        URIBuilder uriBuilder = new URIBuilder("https://api.mch.weixin.qq.com/v3/bill/tradebill");

        uriBuilder.setParameter("bill_date", "2021-07-11");

        uriBuilder.setParameter("bill_type", "ALL");

       // uriBuilder.setParameter("account_type", "BASIC");

        uriBuilder.setParameter("tar_type", "GZIP");

       uriBuilder.setParameter("sub_mchid", "1900000001");

        //uriBuilder.setParameter("p", "1&2");

        //uriBuilder.setParameter("q", "你好");

        HttpGet httpGet = new HttpGet(uriBuilder.build());

        httpGet.addHeader("Accept", "application/json");


        CloseableHttpResponse response1 = PayUtils.httpClient.execute(httpGet);


        assertEquals(200, response1.getStatusLine().getStatusCode());

 expected:<200> but was:<400>] with root cause


回答关注问题邀请回答
收藏
登录 后发表内容