public interface EcommerceService
电商收付通相关服务类. 接口规则:https://wechatpay-api.gitbook.io/wechatpay-api-v3
限定符和类型 | 方法和说明 |
---|---|
ProfitSharingReceiverResult |
addReceivers(ProfitSharingReceiverRequest request)
添加分账接收方API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_7.shtml
|
TradeBillResult |
applyBill(TradeBillRequest request)
请求账单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/bill.shtml
|
FundBillResult |
applyFundBill(FundBillTypeEnum billType,
FundBillRequest request)
申请资金账单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/bill/chapter3_2.shtml
|
String |
closePartnerTransactions(PartnerTransactionsCloseRequest request)
关闭普通订单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/e_transactions/chapter3_6.shtml
|
TransactionsResult |
combine(TradeTypeEnum tradeType,
CombineTransactionsRequest request)
合单支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
<T> T |
combineTransactions(TradeTypeEnum tradeType,
CombineTransactionsRequest request)
合单支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
ApplymentsResult |
createApply(ApplymentsRequest request)
二级商户进件API
接口地址: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_1_8.shtml
|
ProfitSharingReceiverResult |
deleteReceivers(ProfitSharingReceiverRequest request)
删除分账接收方API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_8.shtml
|
InputStream |
downloadBill(String url)
下载账单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/bill.shtml
|
ProfitSharingResult |
finishOrder(FinishOrderRequest request)
完结分账API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_5.shtml
|
void |
modifySettlement(String subMchid,
SettlementRequest request)
修改结算帐号API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_4.shtml
|
CombineTransactionsNotifyResult |
parseCombineNotifyResult(String notifyData,
SignatureHeader header)
合单支付通知回调数据处理
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e-combine.shtml
|
PartnerTransactionsNotifyResult |
parsePartnerNotifyResult(String notifyData,
SignatureHeader header)
普通支付通知回调数据处理
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e_transactions.shtml
|
RefundNotifyResult |
parseRefundNotifyResult(String notifyData,
SignatureHeader header)
退款通知回调数据处理
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_3.shtml
|
TransactionsResult |
partner(TradeTypeEnum tradeType,
PartnerTransactionsRequest request)
服务商模式普通支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
<T> T |
partnerTransactions(TradeTypeEnum tradeType,
PartnerTransactionsRequest request)
服务商模式普通支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
ProfitSharingResult |
profitSharing(ProfitSharingRequest request)
请求分账API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_1.shtml
|
ApplymentsStatusResult |
queryApplyStatusByApplymentId(String applymentId)
查询申请状态API
请求URL: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/{applyment_id}
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_2.shtml
|
ApplymentsStatusResult |
queryApplyStatusByOutRequestNo(String outRequestNo)
查询申请状态API
请求URL: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/out-request-no/{out_request_no}
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_2.shtml
|
CombineTransactionsResult |
queryCombineTransactions(String outTradeNo)
合单查询订单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/combine/chapter3_3.shtml
|
PartnerTransactionsResult |
queryPartnerTransactions(PartnerTransactionsQueryRequest request)
普通查询订单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/e_transactions/chapter3_5.shtml
|
ProfitSharingResult |
queryProfitSharing(ProfitSharingQueryRequest request)
查询分账结果API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_2.shtml
|
ProfitSharingOrdersUnSplitAmountResult |
queryProfitSharingOrdersUnsplitAmount(ProfitSharingOrdersUnSplitAmountRequest request)
查询订单剩余待分金额API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_4_9.shtml
|
RefundQueryResult |
queryRefundByOutRefundNo(String subMchid,
String outRefundNo)
查询退款API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_2.shtml
|
RefundQueryResult |
queryRefundByRefundId(String subMchid,
String refundId)
查询退款API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_2.shtml
|
ReturnOrdersResult |
queryReturnOrders(ReturnOrdersQueryRequest request)
查询分账回退API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
|
SettlementResult |
querySettlement(String subMchid)
查询结算账户API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_5.shtml
|
SpWithdrawStatusResult |
querySpWithdrawByOutRequestNo(String outRequestNo)
电商平台查询提现状态API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_6.shtml
|
SubWithdrawStatusResult |
querySubWithdrawByOutRequestNo(String subMchid,
String outRequestNo)
二级商户查询提现状态API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_3.shtml
|
RefundsResult |
refunds(RefundsRequest request)
退款申请API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_1.shtml
|
ReturnOrdersResult |
returnOrders(ReturnOrdersRequest request)
请求分账回退API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
|
FundBalanceResult |
spDayEndBalance(SpAccountTypeEnum accountType,
String date)
服务商账户日终余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
|
FundBalanceResult |
spNowBalance(SpAccountTypeEnum accountType)
服务商账户实时余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
|
SpWithdrawResult |
spWithdraw(SpWithdrawRequest request)
电商平台提现API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_5.shtml
|
FundBalanceResult |
subDayEndBalance(String subMchid,
String date)
二级商户号账户日终余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
|
FundBalanceResult |
subNowBalance(String subMchid)
二级商户号账户实时余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
|
FundBalanceResult |
subNowBalance(String subMchid,
SpAccountTypeEnum accountType)
二级商户号账户实时余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_3_11.shtml
|
SubWithdrawResult |
subWithdraw(SubWithdrawRequest request)
二级商户账户余额提现API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_2.shtml
|
ApplymentsResult createApply(ApplymentsRequest request) throws WxPayException
二级商户进件API 接口地址: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/ 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_1_8.shtml
request
- 请求对象WxPayException
- the wx pay exceptionApplymentsStatusResult queryApplyStatusByApplymentId(String applymentId) throws WxPayException
查询申请状态API 请求URL: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/{applyment_id} 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_2.shtml
applymentId
- 申请单IDWxPayException
- the wx pay exceptionApplymentsStatusResult queryApplyStatusByOutRequestNo(String outRequestNo) throws WxPayException
查询申请状态API 请求URL: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/out-request-no/{out_request_no} 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_2.shtml
outRequestNo
- 业务申请编号WxPayException
- the wx pay exceptionTransactionsResult combine(TradeTypeEnum tradeType, CombineTransactionsRequest request) throws WxPayException
合单支付API(APP支付、JSAPI支付、H5支付、NATIVE支付). 请求URL:https://api.mch.weixin.qq.com/v3/combine-transactions/jsapi 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e-combine.shtml
tradeType
- 支付方式request
- 请求对象WxPayException
- the wx pay exception<T> T combineTransactions(TradeTypeEnum tradeType, CombineTransactionsRequest request) throws WxPayException
合单支付API(APP支付、JSAPI支付、H5支付、NATIVE支付). 请求URL:https://api.mch.weixin.qq.com/v3/combine-transactions/jsapi 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e-combine.shtml
T
- the type parametertradeType
- 支付方式request
- 请求对象WxPayException
- the wx pay exceptionCombineTransactionsNotifyResult parseCombineNotifyResult(String notifyData, SignatureHeader header) throws WxPayException
合单支付通知回调数据处理 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e-combine.shtml
notifyData
- 通知数据header
- 通知头部数据,不传则表示不校验头WxPayException
- the wx pay exceptionCombineTransactionsResult queryCombineTransactions(String outTradeNo) throws WxPayException
合单查询订单API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/combine/chapter3_3.shtml
outTradeNo
- 合单商户订单号WxPayException
- the wx pay exceptionTransactionsResult partner(TradeTypeEnum tradeType, PartnerTransactionsRequest request) throws WxPayException
服务商模式普通支付API(APP支付、JSAPI支付、H5支付、NATIVE支付). 请求URL:https://api.mch.weixin.qq.com/v3/pay/partner/transactions/jsapi 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/transactions_sl.shtml
tradeType
- 支付方式request
- 请求对象WxPayException
- the wx pay exception<T> T partnerTransactions(TradeTypeEnum tradeType, PartnerTransactionsRequest request) throws WxPayException
服务商模式普通支付API(APP支付、JSAPI支付、H5支付、NATIVE支付). 请求URL:https://api.mch.weixin.qq.com/v3/pay/partner/transactions/jsapi 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/transactions_sl.shtml
T
- the type parametertradeType
- 支付方式request
- 请求对象WxPayException
- the wx pay exceptionPartnerTransactionsNotifyResult parsePartnerNotifyResult(String notifyData, SignatureHeader header) throws WxPayException
普通支付通知回调数据处理 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e_transactions.shtml
notifyData
- 通知数据header
- 通知头部数据,不传则表示不校验头WxPayException
- the wx pay exceptionPartnerTransactionsResult queryPartnerTransactions(PartnerTransactionsQueryRequest request) throws WxPayException
普通查询订单API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/e_transactions/chapter3_5.shtml
request
- 商户订单信息WxPayException
- the wx pay exceptionString closePartnerTransactions(PartnerTransactionsCloseRequest request) throws WxPayException
关闭普通订单API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/e_transactions/chapter3_6.shtml
request
- 关闭普通订单请求WxPayException
- the wx pay exceptionFundBalanceResult spNowBalance(SpAccountTypeEnum accountType) throws WxPayException
服务商账户实时余额 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
accountType
- 服务商账户类型WxPayException
- the wx pay exceptionFundBalanceResult spDayEndBalance(SpAccountTypeEnum accountType, String date) throws WxPayException
服务商账户日终余额 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
accountType
- 服务商账户类型date
- 查询日期 2020-09-11WxPayException
- the wx pay exceptionFundBalanceResult subNowBalance(String subMchid) throws WxPayException
二级商户号账户实时余额 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
subMchid
- 二级商户号WxPayException
- the wx pay exceptionFundBalanceResult subNowBalance(String subMchid, SpAccountTypeEnum accountType) throws WxPayException
二级商户号账户实时余额 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_3_11.shtml
subMchid
- 二级商户号accountType
- 账户类型WxPayException
- the wx pay exceptionFundBalanceResult subDayEndBalance(String subMchid, String date) throws WxPayException
二级商户号账户日终余额 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
subMchid
- 二级商户号date
- 查询日期 2020-09-11WxPayException
- the wx pay exceptionProfitSharingResult profitSharing(ProfitSharingRequest request) throws WxPayException
请求分账API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_1.shtml
request
- 分账请求WxPayException
- the wx pay exceptionProfitSharingResult queryProfitSharing(ProfitSharingQueryRequest request) throws WxPayException
查询分账结果API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_2.shtml
request
- 查询分账请求WxPayException
- the wx pay exceptionProfitSharingOrdersUnSplitAmountResult queryProfitSharingOrdersUnsplitAmount(ProfitSharingOrdersUnSplitAmountRequest request) throws WxPayException
查询订单剩余待分金额API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_4_9.shtml
request
- 查询订单剩余待分金额请求WxPayException
- the wx pay exceptionProfitSharingReceiverResult addReceivers(ProfitSharingReceiverRequest request) throws WxPayException
添加分账接收方API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_7.shtml
request
- 添加分账接收方WxPayException
- the wx pay exceptionProfitSharingReceiverResult deleteReceivers(ProfitSharingReceiverRequest request) throws WxPayException
删除分账接收方API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_8.shtml
request
- 删除分账接收方WxPayException
- the wx pay exceptionReturnOrdersResult returnOrders(ReturnOrdersRequest request) throws WxPayException
请求分账回退API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
request
- 分账回退请求WxPayException
- the wx pay exceptionReturnOrdersResult queryReturnOrders(ReturnOrdersQueryRequest request) throws WxPayException
查询分账回退API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
request
- 查询分账回退请求WxPayException
- the wx pay exceptionProfitSharingResult finishOrder(FinishOrderRequest request) throws WxPayException
完结分账API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_5.shtml
request
- 完结分账请求WxPayException
- the wx pay exceptionRefundsResult refunds(RefundsRequest request) throws WxPayException
退款申请API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_1.shtml
request
- 退款请求WxPayException
- the wx pay exceptionRefundQueryResult queryRefundByRefundId(String subMchid, String refundId) throws WxPayException
查询退款API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_2.shtml
subMchid
- 二级商户号refundId
- 微信退款单号WxPayException
- the wx pay exceptionRefundQueryResult queryRefundByOutRefundNo(String subMchid, String outRefundNo) throws WxPayException
查询退款API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_2.shtml
subMchid
- 二级商户号outRefundNo
- 商户退款单号WxPayException
- the wx pay exceptionRefundNotifyResult parseRefundNotifyResult(String notifyData, SignatureHeader header) throws WxPayException
退款通知回调数据处理 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_3.shtml
notifyData
- 通知数据header
- 通知头部数据,不传则表示不校验头WxPayException
- the wx pay exceptionSubWithdrawResult subWithdraw(SubWithdrawRequest request) throws WxPayException
二级商户账户余额提现API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_2.shtml
request
- 提现请求WxPayException
- the wx pay exceptionSpWithdrawResult spWithdraw(SpWithdrawRequest request) throws WxPayException
电商平台提现API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_5.shtml
request
- 提现请求WxPayException
- the wx pay exceptionSubWithdrawStatusResult querySubWithdrawByOutRequestNo(String subMchid, String outRequestNo) throws WxPayException
二级商户查询提现状态API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_3.shtml
subMchid
- 二级商户号outRequestNo
- 商户提现单号WxPayException
- the wx pay exceptionSpWithdrawStatusResult querySpWithdrawByOutRequestNo(String outRequestNo) throws WxPayException
电商平台查询提现状态API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_6.shtml
outRequestNo
- 商户提现单号WxPayException
- the wx pay exceptionvoid modifySettlement(String subMchid, SettlementRequest request) throws WxPayException
修改结算帐号API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_4.shtml
subMchid
- 二级商户号。request
- 结算帐号WxPayException
- the wx pay exceptionSettlementResult querySettlement(String subMchid) throws WxPayException
查询结算账户API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_5.shtml
subMchid
- 二级商户号。WxPayException
- the wx pay exceptionTradeBillResult applyBill(TradeBillRequest request) throws WxPayException
请求账单API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/bill.shtml
request
- 请求信息。WxPayException
- the wx pay exceptionFundBillResult applyFundBill(FundBillTypeEnum billType, FundBillRequest request) throws WxPayException
申请资金账单API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/bill/chapter3_2.shtml
billType
- 账单类型。request
- 请求信息。WxPayException
- the wx pay exceptionInputStream downloadBill(String url) throws WxPayException
下载账单API 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/bill.shtml
url
- 微信返回的账单地址。WxPayException
- the wx pay exceptionCopyright © 2023. All rights reserved.