账号余额查询

接口描述

资金入境 商户可结金额查询

基本信息

测试请求地址 https://cbtrxtest.helipay.com/cbtrx/rest/fundImport/cashAccountQuery
请求地址 https://cbptrx.helipay.com/cbtrx/rest/fundImport/cashAccountQuery
提交方式 采用POST方法提交,requestbody传值 Content-Type=[application/json;charset=UTF-8]
签名算法 UTF-8字符编码 SHA256签名 AES加密

请求参数

名称 参数 类型 必填 示例值 说明
商户编号 merchantNo String(10) 是 商户编号
平台商编号 platMerchantNo String(10) 否 商户对应的平台商,不填写默认为商户编号 商户对应的平台商,不填写默认为商户编号
订单号 orderNo String(64) 是 请求订单号,商户唯一 商户唯一
产品编码 productCode String(50) 是 FUNDIMPORT FUNDIMPORT

响应参数

名称 参数 类型 必填 示例值 说明
产品编码 productCode String(20) 是 实际业务对应的产品编码
商户编号 merchantNo String(10) 是 Me10000002 合利宝-跨境系统分配的商户编号
商户订单号 orderNo String(64) 是 p_20170302185347 请求订单号
平台流水号 serialNumber String(32) 否 201702241400010002 合利宝-跨境系统生成的唯一交易流水号
响应码 errorCode String(10) 是 0000 0000 代表请求成功
响应信息 errorMessage String(200) 否 成功 响应信息 错误信息
响应时间 current String(20) 是 2018-04-01 12:00:00 格式yyyy-MM-dd HH:mm:ss
商户资金账户余额 balance BigDecimal 是
资金入境账户金额 fundImportBalance BigDecimal 是
记账账户金额 bookkeepingAmount BigDecimal 是

代码示例

   public ModelAndView cashAccountQuery(@ModelAttribute @Valid BaseDTO dto, BindingResult result) {
        ModelAndView mav = new ModelAndView();
        if (result.hasErrors()) {
            throw new CommonSystemException(CommonSystemException.ILLEGAL_DATA_REQUEST[0], result.getFieldError().getDefaultMessage());
        }
        HeliRequest heliRequest = remoteService.postRemoteInvoke(LoadPropertiesUtils.getProperty("cashAccountQueryUrl"), JSONObject.toJSONString(encodeAndSign(dto, dto.getProductCode(), dto.getPlatMerchantNo(), dto.getMerchantNo())), HeliRequest.class);
        FundImportAccountQueryResponseDTO response = decode(heliRequest, FundImportAccountQueryResponseDTO.class, dto.getProductCode(), dto.getPlatMerchantNo(), dto.getMerchantNo());
        if (!CbDemoConstants.SUCCESS_CODE.equals(response.getErrorCode())) {
            throw new CommonSystemException(response.getErrorCode(), response.getErrorMessage());
        }
        mav.setViewName("fund/cashAccountQueryResult");
        mav.addObject("responseForm", response);
        return mav;
    }
                                

                                

                                

错误码

错误码 错误码描述 解决方案