File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11post :
2- x-last-updated-at : 2021.12.08
2+ x-last-updated-at : 2025.04.01
33 x-role :
44 - 直连模式
55 - 机构模式
66 tags :
77 - 跨境∙代扣
88 summary : WEB预签约API
9- description : 该方式适用于PC等使用浏览器的设备场景使用微信签约扣款。商户在网站后端通过微信支付WEB签约接口获取到签约链接,在网站前端将签约链接生成二维码,引导用户扫码识别该链接,用户访问该链接进入代扣签约页面;用户签约完成后留在微信。WEB 端等待签约回调通知,或者定时轮询查询用户签约状态,更新页面内容。 [官方文档](https://pay.weixin.qq.com/wiki/doc/api_external/ch/apis/chapter5_1_16.shtml)
9+ description : 该方式适用于PC等使用浏览器的设备场景使用微信签约扣款。商户在网站后端通过微信支付WEB签约接口获取到签约链接,在网站前端将签约链接生成二维码,引导用户扫码识别该链接,用户访问该链接进入代扣签约页面;用户签约完成后留在微信。WEB 端等待签约回调通知,或者定时轮询查询用户签约状态,更新页面内容。
1010 parameters :
1111 - name : _
1212 in : body
@@ -55,14 +55,18 @@ post:
5555 format : rfc3339
5656 description : 过期时间
5757 example : ' 2021-11-20T13:29:35+08:00'
58+ return_url :
59+ type : string
60+ description : 签约完成跳转URL
61+ example : https://pay.weixin.qq.com
5862 responses :
5963 ' 200 ' :
6064 schema :
6165 type : object
6266 required :
63- - sign_url
67+ - show_code_url
6468 properties :
65- sign_url :
69+ show_code_url :
6670 type : string
67- description : 签约跳转URL
68- example : https://apihk.mch .weixin.qq.com/global/papay/contracts/login ?os_session_id=2021120910391616228#wechat_redirect
71+ description : 展码页面URL
72+ example : https://osapp.pay .weixin.qq.com/global/papay/contracts/sessions/show_code ?os_session_id=2025032811X0100X5371319501
Original file line number Diff line number Diff line change 11post :
2- x-last-updated-at : 2022.08.04
2+ x-last-updated-at : 2025.03.03
33 x-role :
44 - 直连模式
55 - 机构模式
66 tags :
77 - 跨境∙退款
88 summary : 申请退款
9- description : 当交易发生之后一段时间内,由于买家或者卖家的原因需要退款时,卖家可以通过退款接口将支付款退还给买家,微信支付将在收到退款请求并且验证成功之后,按照退款规则将支付款按原路退到买家账号上。 [官方文档](https://pay.weixin.qq.com/wiki/doc/api_external/ch/apis/chapter5_1_11.shtml)
9+ description : 当交易发生之后一段时间内,由于买家或者卖家的原因需要退款时,卖家可以通过退款接口将支付款退还给买家,微信支付将在收到退款请求并且验证成功之后,按照退款规则将支付款按原路退到买家账号上。
1010 parameters :
1111 - name : _
1212 in : body
@@ -141,6 +141,7 @@ post:
141141 description : 汇率类型
142142 example : SETTLEMENT_RATE
143143 enum :
144+ - USERPAYMENT_RATE
144145 - SETTLEMENT_RATE
145146 rate :
146147 type : integer
@@ -184,14 +185,14 @@ post:
184185 description : 货币类型
185186 example : CNY
186187get :
187- x-last-updated-at : 2022.08.04
188+ x-last-updated-at : 2025.03.03
188189 x-role :
189190 - 直连模式
190191 - 机构模式
191192 tags :
192193 - 跨境∙退款
193194 summary : 查询所有退款
194- description : 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,用零钱支付的退款20分钟内到账,银行卡支付的退款3个工作日后重新查询退款状态。 [官方文档](https://pay.weixin.qq.com/wiki/doc/api_external/ch/apis/chapter5_1_13.shtml)
195+ description : 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,用零钱支付的退款20分钟内到账,银行卡支付的退款3个工作日后重新查询退款状态。
195196 parameters :
196197 - name : transaction_id
197198 in : query
382383 description : 汇率类型
383384 example : SETTLEMENT_RATE
384385 enum :
386+ - USERPAYMENT_RATE
385387 - SETTLEMENT_RATE
386388 rate :
387389 type : integer
Original file line number Diff line number Diff line change 11get :
2- x-last-updated-at : 2022.08.04
2+ x-last-updated-at : 2025.03.27
33 x-role :
44 - 直连模式
55 - 机构模式
66 tags :
77 - 跨境∙退款
88 summary : 查询单笔退款(微信支付退款订单号)
9- description : 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,用零钱支付的退款20分钟内到账,银行卡支付的退款3个工作日后重新查询退款状态。 [官方文档](https://pay.weixin.qq.com/wiki/doc/api_external/ch/apis/chapter5_1_12.shtml)
9+ description : 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,用零钱支付的退款20分钟内到账,银行卡支付的退款3个工作日后重新查询退款状态。
1010 parameters :
1111 - name : mchid
1212 in : query
131131 description : 汇率类型
132132 example : SETTLEMENT_RATE
133133 enum :
134+ - USERPAYMENT_RATE
134135 - SETTLEMENT_RATE
135136 rate :
136137 type : integer
Original file line number Diff line number Diff line change 11get :
2- x-last-updated-at : 2022.08.04
2+ x-last-updated-at : 2025.03.27
33 x-role :
44 - 直连模式
55 - 机构模式
66 tags :
77 - 跨境∙退款
88 summary : 查询单笔退款(商户退款订单号)
9- description : 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,用零钱支付的退款20分钟内到账,银行卡支付的退款3个工作日后重新查询退款状态。 [官方文档](https://pay.weixin.qq.com/wiki/doc/api_external/ch/apis/chapter5_1_12.shtml)
9+ description : 提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,用零钱支付的退款20分钟内到账,银行卡支付的退款3个工作日后重新查询退款状态。
1010 parameters :
1111 - name : mchid
1212 in : query
132132 description : 汇率类型
133133 example : SETTLEMENT_RATE
134134 enum :
135+ - USERPAYMENT_RATE
135136 - SETTLEMENT_RATE
136137 rate :
137138 type : integer
Original file line number Diff line number Diff line change 11get :
2- x-last-updated-at : 2022.08.04
2+ x-last-updated-at : 2025.01.07
33 x-role :
44 - 直连模式
55 - 机构模式
66 tags :
77 - 跨境
88 summary : 下载对账单
9- description : 商户可以通过该接口下载历史交易清单。比如掉单、系统错误等导致商户侧和微信侧数据不一致,通过对账单核对后可校正支付状态。 [官方文档](https://pay.weixin.qq.com/wiki/doc/api_external/ch/apis/chapter3_1_6.shtml)
9+ description : 商户可以通过该接口下载历史交易清单。比如掉单、系统错误等导致商户侧和微信侧数据不一致,通过对账单核对后可校正支付状态。
1010 parameters :
1111 - name : date
1212 in : query
1919 type : string
2020 description : 商户号
2121 example : ' 1900000109'
22- - $ref : ' ../../definitions/Parameters.yaml#/HTTP_ACCEPT_ENCODING'
22+ - name : sp_mchid
23+ in : query
24+ type : string
25+ description : 机构商户号
26+ example : ' 1900000100'
27+ - name : sub_mchid
28+ in : query
29+ type : string
30+ description : 子商户号
31+ example : ' 1900000109'
2332 responses :
2433 ' 200 ' :
2534 headers :
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public function post(array $options = [
2727 'user_display_name ' => '张三 ' ,
2828 'success_notify_url ' => 'https://pay.weixin.qq.com ' ,
2929 'expired_time ' => '2021-11-20T13:29:35+08:00 ' ,
30+ 'return_url ' => 'https://pay.weixin.qq.com ' ,
3031 ],
3132 ]): ResponseInterface ;
3233
@@ -48,6 +49,7 @@ public function postAsync(array $options = [
4849 'user_display_name ' => '张三 ' ,
4950 'success_notify_url ' => 'https://pay.weixin.qq.com ' ,
5051 'expired_time ' => '2021-11-20T13:29:35+08:00 ' ,
52+ 'return_url ' => 'https://pay.weixin.qq.com ' ,
5153 ],
5254 ]): PromiseInterface ;
5355}
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ public function get(array $options = [
1919 'query ' => [
2020 'date ' => '20180130 ' ,
2121 'mchid ' => '1900000109 ' ,
22- ],
23- 'headers ' => [
24- 'Accept-Encoding ' => 'gzip ' ,
22+ 'sp_mchid ' => '1900000100 ' ,
23+ 'sub_mchid ' => '1900000109 ' ,
2524 ],
2625 ]): ResponseInterface ;
2726
@@ -35,9 +34,8 @@ public function getAsync(array $options = [
3534 'query ' => [
3635 'date ' => '20180130 ' ,
3736 'mchid ' => '1900000109 ' ,
38- ],
39- 'headers ' => [
40- 'Accept-Encoding ' => 'gzip ' ,
37+ 'sp_mchid ' => '1900000100 ' ,
38+ 'sub_mchid ' => '1900000109 ' ,
4139 ],
4240 ]): PromiseInterface ;
4341}
You can’t perform that action at this time.
0 commit comments