public interface MerchantTransferService
| 限定符和类型 | 方法和说明 |
|---|---|
DetailElectronicBillResult |
applyDetailElectronicBill(DetailElectronicBillRequest request)
转账明细电子回单受理API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_9.shtml
请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts
请求方式:POST
接口限频: 单个商户 20QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
|
ElectronicBillResult |
applyElectronicBill(ElectronicBillApplyRequest request)
转账电子回单申请受理API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/doc/v3/merchant/4012716452
请求URL:https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no
请求方式:POST
接口限频: 单个商户 20QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
|
void |
closeReservationTransferBatch(String outBatchNo)
关闭预约商家转账批次接口.
|
TransferCreateResult |
createTransfer(TransferCreateRequest request)
发起商家转账API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_1.shtml
请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches
请求方式:POST
接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
|
ReservationTransferBatchGetResult |
getReservationTransferBatchByOutBatchNo(String outBatchNo,
Boolean needQueryDetail,
Integer offset,
Integer limit,
String detailState)
商户预约批次单号查询批次单接口.
|
ReservationTransferBatchGetResult |
getReservationTransferBatchByReservationBatchNo(String reservationBatchNo,
Boolean needQueryDetail,
Integer offset,
Integer limit,
String detailState)
微信预约批次单号查询批次单接口.
|
UserAuthorizationStatusResult |
getUserAuthorizationStatus(String openid,
String transferSceneId)
商户查询用户授权信息接口.
|
ReservationTransferNotifyResult |
parseReservationTransferNotifyResult(String notifyData,
SignatureHeader header)
解析预约商家转账通知回调结果.
|
DetailElectronicBillResult |
queryDetailElectronicBill(DetailElectronicBillRequest request)
查询转账明细电子回单受理结果API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_10.shtml
请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts
请求方式:GET
前置条件:只支持查询最近90天内的转账明细单
|
ElectronicBillResult |
queryElectronicBill(String outBillNo)
查询转账电子回单API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/doc/v3/merchant/4012716436
请求URL:https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no/{out_bill_no}
请求方式:GET
|
BatchesQueryResult |
queryMerchantBatches(MerchantBatchesQueryRequest request)
商家批次单号查询批次单API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_5.shtml
请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{out_batch_no}
请求方式:GET
接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
|
DetailsQueryResult |
queryMerchantDetails(MerchantDetailsQueryRequest request)
商家明细单号查询明细单API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_6.shtml
请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no}
请求方式:GET
接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
|
BatchesQueryResult |
queryWxBatches(WxBatchesQueryRequest request)
微信批次单号查询批次单API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_2.shtml
请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{batch_id}
请求方式:GET
接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
|
DetailsQueryResult |
queryWxDetails(WxDetailsQueryRequest request)
微信明细单号查询明细单API
适用对象:直连商户
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_3.shtml
请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id}
请求方式:GET
接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
|
ReservationTransferBatchResult |
reservationTransferBatch(ReservationTransferBatchRequest request)
批量预约商家转账接口.
|
TransferCreateResult createTransfer(TransferCreateRequest request) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_1.shtml 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches 请求方式:POST 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 是否需要证书:是
request - the requestWxPayException - the wx pay exceptionBatchesQueryResult queryWxBatches(WxBatchesQueryRequest request) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_2.shtml 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{batch_id} 请求方式:GET 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
request - the requestWxPayException - the wx pay exceptionDetailsQueryResult queryWxDetails(WxDetailsQueryRequest request) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_3.shtml 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id} 请求方式:GET 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
request - the requestWxPayException - the wx pay exceptionBatchesQueryResult queryMerchantBatches(MerchantBatchesQueryRequest request) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_5.shtml 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{out_batch_no} 请求方式:GET 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
request - the requestWxPayException - the wx pay exceptionDetailsQueryResult queryMerchantDetails(MerchantDetailsQueryRequest request) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_6.shtml 请求URL:https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no} 请求方式:GET 接口限频: 单个商户 50QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
request - the requestWxPayException - the wx pay exceptionElectronicBillResult applyElectronicBill(ElectronicBillApplyRequest request) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/doc/v3/merchant/4012716452 请求URL:https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no 请求方式:POST 接口限频: 单个商户 20QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。
request - the requestWxPayException - the wx pay exceptionElectronicBillResult queryElectronicBill(String outBillNo) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/doc/v3/merchant/4012716436 请求URL:https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no/{out_bill_no} 请求方式:GET
outBillNo - 商户转账单号WxPayException - the wx pay exceptionDetailElectronicBillResult applyDetailElectronicBill(DetailElectronicBillRequest request) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_9.shtml 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts 请求方式:POST 接口限频: 单个商户 20QPS,如果超过频率限制,会报错FREQUENCY_LIMITED,请降低频率请求。 前置条件:只支持受理最近30天内的转账明细单
request - the requestWxPayException - the wx pay exceptionDetailElectronicBillResult queryDetailElectronicBill(DetailElectronicBillRequest request) throws WxPayException
适用对象:直连商户 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter4_3_10.shtml 请求URL:https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts 请求方式:GET 前置条件:只支持查询最近90天内的转账明细单
request - the requestWxPayException - the wx pay exceptionUserAuthorizationStatusResult getUserAuthorizationStatus(String openid, String transferSceneId) throws WxPayException
openid - 用户在直连商户应用下的用户标识transferSceneId - 转账场景IDWxPayException - the wx pay exceptionReservationTransferBatchResult reservationTransferBatch(ReservationTransferBatchRequest request) throws WxPayException
request - 批量预约商家转账请求参数WxPayException - the wx pay exceptionReservationTransferBatchGetResult getReservationTransferBatchByOutBatchNo(String outBatchNo, Boolean needQueryDetail, Integer offset, Integer limit, String detailState) throws WxPayException
outBatchNo - 商户预约批次单号needQueryDetail - 是否需要查询明细offset - 分页偏移量limit - 分页大小detailState - 明细状态(PROCESSING/SUCCESS/FAIL)WxPayException - the wx pay exceptionReservationTransferBatchGetResult getReservationTransferBatchByReservationBatchNo(String reservationBatchNo, Boolean needQueryDetail, Integer offset, Integer limit, String detailState) throws WxPayException
reservationBatchNo - 微信预约批次单号needQueryDetail - 是否需要查询明细offset - 分页偏移量limit - 分页大小detailState - 明细状态(PROCESSING/SUCCESS/FAIL)WxPayException - the wx pay exceptionReservationTransferNotifyResult parseReservationTransferNotifyResult(String notifyData, SignatureHeader header) throws WxPayException
notifyData - 通知数据header - 通知头部数据,不传则表示不校验头WxPayException - the wx pay exceptionvoid closeReservationTransferBatch(String outBatchNo) throws WxPayException
outBatchNo - 商户预约批次单号WxPayException - the wx pay exceptionCopyright © 2026. All rights reserved.