Skip to content

Commit 0fb0568

Browse files
U: docs/v3/profitsharing/*
1 parent b4d30bf commit 0fb0568

10 files changed

Lines changed: 157 additions & 34 deletions

File tree

docs/v3/profitsharing/bills.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
get:
2-
x-last-updated-at: 2025.01.20
2+
x-last-updated-at: 2025.09.29
33
x-role:
44
- 直连商户
55
- 电商平台
66
- 服务商
77
tags:
88
- 资金应用∙分账
9-
summary: 申请分账账单API
10-
description: 微信支付按天提供分账账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含分账相关的金额、时间等信息,供商户核对到账等情况。[官方文档](https://pay.weixin.qq.com/doc/v3/merchant/4012529628) [官方文档](https://pay.weixin.qq.com/doc/v3/partner/4012761140) [官方文档](https://pay.weixin.qq.com/doc/v3/partner/4012715572) [官方文档](https://pay.weixin.qq.com/doc/v3/partner/4012715572) [官方文档](https://pay.weixin.qq.com/doc/v3/partner/4012715572) [官方文档](https://pay.weixin.qq.com/doc/v3/partner/4012715572) [官方文档](https://pay.weixin.qq.com/doc/v3/partner/4012715572) [官方文档](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_1_11.shtml)
9+
summary: 申请分账账单
10+
description: 微信支付按天提供分账账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含分账相关的金额、时间等信息,供商户核对到账等情况。
1111
parameters:
1212
- name: sub_mchid
1313
in: query
@@ -45,6 +45,8 @@ get:
4545
type: string
4646
description: 哈希类型
4747
example: SHA1
48+
enum:
49+
- SHA1
4850
hash_value:
4951
type: string
5052
description: 哈希值

docs/v3/profitsharing/merchant-configs/{sub_mchid}.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
get:
2-
x-last-updated-at: 2021.05.11
2+
x-last-updated-at: 2025.09.29
33
x-role:
44
- 服务商
55
tags:
66
- 资金应用∙分账
7-
summary: 查询最大分账比例API
8-
description: 可调用此接口查询特约商户设置的允许服务商分账的最大比例 [官方文档](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_1_7.shtml)
7+
summary: 查询最大分账比例
8+
description: 可调用此接口查询特约商户设置的允许服务商分账的最大比例
99
parameters:
1010
- name: sub_mchid
1111
in: path

docs/v3/profitsharing/orders.yaml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
post:
2-
x-last-updated-at: 2022.06.14
2+
x-last-updated-at: 2025.09.29
33
x-role:
4+
- 直连商户
45
- 服务商
56
tags:
67
- 资金应用∙分账
7-
summary: 请求分账API
8-
description: 微信订单支付成功后,服务商代特约商户发起分账请求,将结算后的资金分到分账接收方 [官方文档](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_1_1.shtml)
8+
summary: 请求分账
9+
description: 微信订单支付成功后,服务商代特约商户发起分账请求,将结算后的资金分到分账接收方
910
parameters:
1011
- $ref: '../../definitions/Parameters.yaml#/HTTP_WECHATPAY_SERIAL'
1112
- name: _
@@ -14,7 +15,6 @@ post:
1415
schema:
1516
type: object
1617
required:
17-
- appid
1818
- transaction_id
1919
- out_order_no
2020
- unfreeze_unsplit
@@ -54,6 +54,10 @@ post:
5454
type: string
5555
description: 分账接收方类型
5656
example: MERCHANT_ID
57+
enum:
58+
- MERCHANT_ID
59+
- PERSONAL_OPENID
60+
- PERSONAL_SUB_OPENID
5761
account:
5862
type: string
5963
description: 分账接收方帐号
@@ -104,6 +108,9 @@ post:
104108
type: string
105109
description: 分账单状态
106110
example: FINISHED
111+
enum:
112+
- PROCESSING
113+
- FINISHED
107114
receivers:
108115
type: array
109116
description: 分账接收方列表
@@ -115,7 +122,6 @@ post:
115122
- type
116123
- account
117124
- result
118-
- fail_reason
119125
- create_time
120126
- finish_time
121127
properties:
@@ -131,6 +137,10 @@ post:
131137
type: string
132138
description: 分账接收方类型
133139
example: MERCHANT_ID
140+
enum:
141+
- MERCHANT_ID
142+
- PERSONAL_OPENID
143+
- PERSONAL_SUB_OPENID
134144
account:
135145
type: string
136146
description: 分账接收方帐号
@@ -139,19 +149,34 @@ post:
139149
type: string
140150
description: 分账结果
141151
example: SUCCESS
152+
enum:
153+
- PENDING
154+
- SUCCESS
155+
- CLOSED
142156
fail_reason:
143157
type: string
144158
description: 分账失败原因
145159
example: ACCOUNT_ABNORMAL
160+
enum:
161+
- ACCOUNT_ABNORMAL #分账接收账户异常
162+
- NO_RELATION #分账关系已解除
163+
- RECEIVER_HIGH_RISK #高风险接收方
164+
- RECEIVER_REAL_NAME_NOT_VERIFIED #接收方未实名
165+
- NO_AUTH #分账权限已解除
166+
- RECEIVER_RECEIPT_LIMIT #超出用户月收款限额
167+
- PAYER_ACCOUNT_ABNORMAL #分出方账户异常
168+
- INVALID_REQUEST #描述参数设置失败
146169
detail_id:
147170
type: string
148171
description: 分账明细单号
149172
example: '36011111111111111111111'
150173
create_time:
151174
type: string
175+
format: rfc3339
152176
description: 分账创建时间
153177
example: '2015-05-20T13:29:35.120+08:00'
154178
finish_time:
155179
type: string
180+
format: rfc3339
156181
description: 分账完成时间
157182
example: '2015-05-20T13:29:35.120+08:00'

docs/v3/profitsharing/orders/unfreeze.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
post:
2-
x-last-updated-at: 2021.05.11
2+
x-last-updated-at: 2025.09.29
33
x-role:
4+
- 直连商户
45
- 服务商
56
tags:
67
- 资金应用∙分账
7-
summary: 解冻剩余资金API
8-
description: 不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给特约商户 [官方文档](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_1_5.shtml)
8+
summary: 解冻剩余资金
9+
description: 不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给特约商户
910
parameters:
1011
- name: _
1112
in: body
@@ -63,6 +64,9 @@ post:
6364
type: string
6465
description: 分账单状态
6566
example: FINISHED
67+
enum:
68+
- PROCESSING
69+
- FINISHED
6670
receivers:
6771
type: array
6872
description: 分账接收方列表
@@ -90,6 +94,10 @@ post:
9094
type: string
9195
description: 分账接收方类型
9296
example: MERCHANT_ID
97+
enum:
98+
- MERCHANT_ID
99+
- PERSONAL_OPENID
100+
- PERSONAL_SUB_OPENID
93101
account:
94102
type: string
95103
description: 分账接收方帐号
@@ -102,15 +110,26 @@ post:
102110
type: string
103111
description: 分账失败原因
104112
example: ACCOUNT_ABNORMAL
113+
enum:
114+
- ACCOUNT_ABNORMAL #分账接收账户异常
115+
- NO_RELATION #分账关系已解除
116+
- RECEIVER_HIGH_RISK #高风险接收方
117+
- RECEIVER_REAL_NAME_NOT_VERIFIED #接收方未实名
118+
- NO_AUTH #分账权限已解除
119+
- RECEIVER_RECEIPT_LIMIT #超出用户月收款限额
120+
- PAYER_ACCOUNT_ABNORMAL #分出方账户异常
121+
- INVALID_REQUEST #描述参数设置失败
105122
detail_id:
106123
type: string
107124
description: 分账明细单号
108125
example: '36011111111111111111111'
109126
create_time:
110127
type: string
128+
format: rfc3339
111129
description: 分账创建时间
112130
example: '2015-05-20T13:29:35.120+08:00'
113131
finish_time:
114132
type: string
133+
format: rfc3339
115134
description: 分账完成时间
116135
example: '2015-05-20T13:29:35.120+08:00'

docs/v3/profitsharing/orders/{out_order_no}.yaml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
get:
2-
x-last-updated-at: 2021.05.11
2+
x-last-updated-at: 2025.09.29
33
x-role:
4+
- 直连商户
45
- 服务商
56
tags:
67
- 资金应用∙分账
7-
summary: 查询分账结果API
8-
description: 发起分账请求后,可调用此接口查询分账结果 [官方文档](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_1_2.shtml)
8+
summary: 查询分账结果
9+
description: 发起分账请求后,可调用此接口查询分账结果
910
parameters:
1011
- name: sub_mchid
1112
in: query
@@ -14,11 +15,13 @@ get:
1415
example: '1900000109'
1516
- name: transaction_id
1617
in: query
18+
required: true
1719
type: string
1820
description: 微信订单号
1921
example: '4208450740201411110007820472'
2022
- name: out_order_no
2123
in: path
24+
required: true
2225
type: string
2326
description: 商户分账单号
2427
example: P20150806125346
@@ -52,6 +55,10 @@ get:
5255
type: string
5356
description: 分账单状态
5457
example: FINISHED
58+
enum:
59+
- PENDING
60+
- SUCCESS
61+
- CLOSED
5562
receivers:
5663
type: array
5764
description: 分账接收方列表
@@ -63,7 +70,6 @@ get:
6370
- type
6471
- account
6572
- result
66-
- fail_reason
6773
- create_time
6874
- finish_time
6975
properties:
@@ -79,6 +85,10 @@ get:
7985
type: string
8086
description: 分账接收方类型
8187
example: MERCHANT_ID
88+
enum:
89+
- MERCHANT_ID
90+
- PERSONAL_OPENID
91+
- PERSONAL_SUB_OPENID
8292
account:
8393
type: string
8494
description: 分账接收方帐号
@@ -87,6 +97,15 @@ get:
8797
type: string
8898
description: 分账结果
8999
example: SUCCESS
100+
enum:
101+
- ACCOUNT_ABNORMAL #分账接收账户异常
102+
- NO_RELATION #分账关系已解除
103+
- RECEIVER_HIGH_RISK #高风险接收方
104+
- RECEIVER_REAL_NAME_NOT_VERIFIED #接收方未实名
105+
- NO_AUTH #分账权限已解除
106+
- RECEIVER_RECEIPT_LIMIT #超出用户月收款限额
107+
- PAYER_ACCOUNT_ABNORMAL #分出方账户异常
108+
- INVALID_REQUEST #描述参数设置失败
90109
fail_reason:
91110
type: string
92111
description: 分账失败原因
@@ -97,9 +116,11 @@ get:
97116
example: '36011111111111111111111'
98117
create_time:
99118
type: string
119+
format: rfc3339
100120
description: 分账创建时间
101121
example: '2015-05-20T13:29:35.120+08:00'
102122
finish_time:
103123
type: string
124+
format: rfc3339
104125
description: 分账完成时间
105126
example: '2015-05-20T13:29:35.120+08:00'

docs/v3/profitsharing/receivers/add.yaml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
post:
2-
x-last-updated-at: 2021.05.11
2+
x-last-updated-at: 2025.09.29
33
x-role:
4+
- 直连商户
45
- 服务商
56
tags:
67
- 资金应用∙分账
7-
summary: 添加分账接收方API
8-
description: 服务商发起添加分账接收方请求,建立分账接收方列表。后续可通过发起分账请求,将分账方商户结算后的资金,分到该分账接收方 [官方文档](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_1_8.shtml)
8+
summary: 添加分账接收方
9+
description: 服务商发起添加分账接收方请求,建立分账接收方列表。后续可通过发起分账请求,将分账方商户结算后的资金,分到该分账接收方
910
parameters:
1011
- $ref: '../../../definitions/Parameters.yaml#/HTTP_WECHATPAY_SERIAL'
1112
- name: _
@@ -35,6 +36,10 @@ post:
3536
type: string
3637
description: 分账接收方类型
3738
example: MERCHANT_ID
39+
enum:
40+
- MERCHANT_ID
41+
- PERSONAL_OPENID
42+
- PERSONAL_SUB_OPENID
3843
account:
3944
type: string
4045
description: 分账接收方帐号
@@ -81,6 +86,10 @@ post:
8186
type: string
8287
description: 分账接收方类型
8388
example: MERCHANT_ID
89+
enum:
90+
- MERCHANT_ID
91+
- PERSONAL_OPENID
92+
- PERSONAL_SUB_OPENID
8493
account:
8594
type: string
8695
description: 分账接收方账号
@@ -94,6 +103,18 @@ post:
94103
type: string
95104
description: 与分账方的关系类型
96105
example: SERVICE_PROVIDER
106+
enum:
107+
- SERVICE_PROVIDER #服务商
108+
- STORE #门店
109+
- STAFF #员工
110+
- STORE_OWNER #店主
111+
- PARTNER #合作伙伴
112+
- HEADQUARTER #总部
113+
- BRAND #品牌方
114+
- DISTRIBUTOR #分销商
115+
- USER #用户
116+
- SUPPLIER #供应商
117+
- CUSTOM #自定义
97118
custom_relation:
98119
type: string
99120
description: 自定义的分账关系

docs/v3/profitsharing/receivers/delete.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
post:
2-
x-last-updated-at: 2021.05.11
2+
x-last-updated-at: 2025.09.29
33
x-role:
4+
- 直连商户
45
- 服务商
56
tags:
67
- 资金应用∙分账
7-
summary: 删除分账接收方API
8-
description: 服务商发起删除分账接收方请求。删除后,不支持将分账方商户结算后的资金,分到该分账接收方 [官方文档](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_1_9.shtml)
8+
summary: 删除分账接收方
9+
description: 服务商发起删除分账接收方请求。删除后,不支持将分账方商户结算后的资金,分到该分账接收方
910
parameters:
1011
- name: _
1112
in: body
@@ -33,6 +34,10 @@ post:
3334
type: string
3435
description: 分账接收方类型
3536
example: MERCHANT_ID
37+
enum:
38+
- MERCHANT_ID
39+
- PERSONAL_OPENID
40+
- PERSONAL_SUB_OPENID
3641
account:
3742
type: string
3843
description: 分账接收方账号
@@ -53,6 +58,10 @@ post:
5358
type: string
5459
description: 分账接收方类型
5560
example: MERCHANT_ID
61+
enum:
62+
- MERCHANT_ID
63+
- PERSONAL_OPENID
64+
- PERSONAL_SUB_OPENID
5665
account:
5766
type: string
5867
description: 分账接收方账号

0 commit comments

Comments
 (0)