|
|
@@ -633,10 +633,16 @@ Signature: {signature}</code></pre>
|
|
|
<td>转账标题(若传参,支付宝要求必须大于四个字)</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>remark</td>
|
|
|
+ <td>transfer_scene_name</td>
|
|
|
<td>string</td>
|
|
|
<td>否</td>
|
|
|
- <td>转账备注(若传参,支付宝要求必须大于四个字)</td>
|
|
|
+ <td>转账场景:佣金报酬 / 业务结算 / 二手回收。不传默认"佣金报酬"</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>remark</td>
|
|
|
+ <td>string</td>
|
|
|
+ <td>是</td>
|
|
|
+ <td>转账备注,填写转账事由(支付宝要求必须大于四个字)</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>third_biz_no</td>
|
|
|
@@ -668,7 +674,7 @@ Signature: {signature}</code></pre>
|
|
|
<td>identity_type</td>
|
|
|
<td>string</td>
|
|
|
<td>是</td>
|
|
|
- <td>收款方类型:alipay(支付宝账户)/ bank(银行卡)</td>
|
|
|
+ <td>收款方类型:ALIPAY_USER_ID(支付宝UID)/ ALIPAY_LOGON_ID(支付宝手机号或邮箱)/ BANKCARD_ACCOUNT(银行卡)</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>name</td>
|
|
|
@@ -693,7 +699,7 @@ Signature: {signature}</code></pre>
|
|
|
class="expand-btn"
|
|
|
>
|
|
|
{{ expandedSections.bankcard_ext_info ? "▼" : "▶" }}
|
|
|
- 银行卡信息(当 identity_type 为 bank 时必填)
|
|
|
+ 银行卡信息(当 identity_type 为 BANKCARD_ACCOUNT 时必填)
|
|
|
</span>
|
|
|
<div
|
|
|
v-if="expandedSections.bankcard_ext_info"
|
|
|
@@ -757,6 +763,38 @@ Signature: {signature}</code></pre>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <tr>
|
|
|
+ <td>ext_info</td>
|
|
|
+ <td>object</td>
|
|
|
+ <td>否</td>
|
|
|
+ <td>
|
|
|
+ <div class="expandable-section">
|
|
|
+ <span @click="toggleExpand('ext_info')" class="expand-btn">
|
|
|
+ {{ expandedSections.ext_info ? "▼" : "▶" }} 扩展参数(支付宝 business_params)
|
|
|
+ </span>
|
|
|
+ <div v-if="expandedSections.ext_info" class="expandable-content">
|
|
|
+ <table class="api-table nested-table">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>参数名</th>
|
|
|
+ <th>类型</th>
|
|
|
+ <th>是否必填</th>
|
|
|
+ <th>描述</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td>withdraw_timeliness</td>
|
|
|
+ <td>string</td>
|
|
|
+ <td>否</td>
|
|
|
+ <td>到账时效(仅银行卡转账有效): T0=当天到账, T1=次日到账。不传默认 T1</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
|
|
|
@@ -769,11 +807,16 @@ Signature: {signature}</code></pre>
|
|
|
"account_book_id": "资金账号",
|
|
|
"amount": "100.00",
|
|
|
"order_title": "转账标题",
|
|
|
+ "remark": "转账事由说明",
|
|
|
+ "transfer_scene_name": "佣金报酬",
|
|
|
"third_biz_no": "商户订单号202604270001",
|
|
|
"payee_info": {
|
|
|
- "identity_type": "ALIPAY_ACCOUNT",
|
|
|
+ "identity_type": "ALIPAY_USER_ID",
|
|
|
"name": "收款人姓名",
|
|
|
"identity": "收款人支付宝账号"
|
|
|
+ },
|
|
|
+ "ext_info": {
|
|
|
+ "withdraw_timeliness": "T0"
|
|
|
}
|
|
|
}'</code></pre>
|
|
|
|
|
|
@@ -825,16 +868,26 @@ Signature: {signature}</code></pre>
|
|
|
"code": 200,
|
|
|
"message": "查询成功",
|
|
|
"data": {
|
|
|
- "status": "SUCCESS",
|
|
|
+ "out_biz_no": "2026042711122334455",
|
|
|
"order_no": "2026042711122334455",
|
|
|
+ "third_biz_no": "商户订单号202604270001",
|
|
|
+ "status": "SUCCESS",
|
|
|
"amount": "100.00",
|
|
|
+ "order_title": "转账标题",
|
|
|
+ "remark": "转账事由说明",
|
|
|
"payee_info": {
|
|
|
- "identity_type": "ALIPAY_ACCOUNT",
|
|
|
- "name": "张*",
|
|
|
- "identity": "z****@example.com"
|
|
|
+ "identity_type": "ALIPAY_USER_ID",
|
|
|
+ "name": "张三",
|
|
|
+ "identity": "2088****0000"
|
|
|
},
|
|
|
- "created_time": "2026-04-27 11:22:33",
|
|
|
- "updated_time": "2026-04-27 11:25:45"
|
|
|
+ "payee_type": "ALIPAY_USER_ID",
|
|
|
+ "fund_order_id": "2026042711122334455",
|
|
|
+ "enterprise_id": "2088480777900000",
|
|
|
+ "account_book_id": "2088480770900000",
|
|
|
+ "error_code": null,
|
|
|
+ "error_msg": null,
|
|
|
+ "created_time": "2026-04-27T11:22:33+08:00",
|
|
|
+ "updated_time": "2026-04-27T11:25:45+08:00"
|
|
|
}
|
|
|
}</code></pre>
|
|
|
|
|
|
@@ -914,12 +967,7 @@ Signature: {signature}</code></pre>
|
|
|
{
|
|
|
"account_book_id": "2088480770900000",
|
|
|
"available_amount": "50000.00",
|
|
|
- "enable_status": "ENABLE",
|
|
|
- "scene": "B2B_TRANS",
|
|
|
- "account_card_info": {
|
|
|
- "card_no": "xxxx",
|
|
|
- "bank_name": "招商银行"
|
|
|
- }
|
|
|
+ "scene": "B2B_TRANS"
|
|
|
}
|
|
|
]
|
|
|
}</code></pre>
|
|
|
@@ -944,21 +992,11 @@ Signature: {signature}</code></pre>
|
|
|
<td>string</td>
|
|
|
<td>可用余额(单位:元,精确到小数点后两位)</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td>enable_status</td>
|
|
|
- <td>string</td>
|
|
|
- <td>启用状态:ENABLE(启用)/ DISABLE(禁用)</td>
|
|
|
- </tr>
|
|
|
<tr>
|
|
|
<td>scene</td>
|
|
|
<td>string</td>
|
|
|
<td>场景类型:B2B_TRANS(B2B转账)</td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td>account_card_info</td>
|
|
|
- <td>object</td>
|
|
|
- <td>账户卡信息(银行卡号、银行名称等)</td>
|
|
|
- </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
|
|
|
@@ -1015,11 +1053,11 @@ Signature: {signature}</code></pre>
|
|
|
</li>
|
|
|
<li>
|
|
|
<strong>表单形式</strong>
|
|
|
- :通知参数以表单形式提交(Content-Type: multipart/form-data)
|
|
|
+ :通知参数以表单形式提交(Content-Type: application/x-www-form-urlencoded)
|
|
|
</li>
|
|
|
<li>
|
|
|
<strong>重试机制</strong>
|
|
|
- :如果通知失败,系统会自动重试(最多2次,间隔1秒、2秒)
|
|
|
+ :如果通知失败,系统会自动重试(最多3次,退避间隔1秒/2秒/4秒)
|
|
|
</li>
|
|
|
</ul>
|
|
|
|
|
|
@@ -1062,116 +1100,80 @@ Signature: {signature}</code></pre>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
- <td>status</td>
|
|
|
+ <td>out_biz_no</td>
|
|
|
<td>string</td>
|
|
|
- <td>转账状态:SUCCESS(成功)、FAIL(失败)</td>
|
|
|
+ <td>平台内部订单号</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>order_no</td>
|
|
|
<td>string</td>
|
|
|
- <td>平台订单号</td>
|
|
|
+ <td>支付宝订单号</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>third_biz_no</td>
|
|
|
<td>string</td>
|
|
|
<td>商户订单号(发起转账时传入的三方订单号)</td>
|
|
|
</tr>
|
|
|
+ <tr>
|
|
|
+ <td>status</td>
|
|
|
+ <td>string</td>
|
|
|
+ <td>转账状态:SUCCESS(成功)、FAIL(失败)</td>
|
|
|
+ </tr>
|
|
|
<tr>
|
|
|
<td>amount</td>
|
|
|
<td>number</td>
|
|
|
<td>转账金额(元)</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>created_time</td>
|
|
|
+ <td>order_title</td>
|
|
|
<td>string</td>
|
|
|
- <td>创建时间</td>
|
|
|
+ <td>转账标题</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>updated_time</td>
|
|
|
+ <td>payee_type</td>
|
|
|
<td>string</td>
|
|
|
- <td>更新时间</td>
|
|
|
+ <td>收款方类型</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>fund_order_id</td>
|
|
|
+ <td>string</td>
|
|
|
+ <td>支付宝资金流水号</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
|
|
|
<h4>通知示例</h4>
|
|
|
- 成功示例
|
|
|
+ <p><strong>成功通知</strong></p>
|
|
|
<pre v-pre><code>POST /your/callback/url HTTP/1.1
|
|
|
-Content-Type: multipart/form-data; boundary=----WebKitFormBoundary
|
|
|
-
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="notify_id"
|
|
|
-
|
|
|
-n1234567890123456789
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="timestamp"
|
|
|
+Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
-1715767200000
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="content"
|
|
|
+notify_id=n1234567890123456789×tamp=1715767200000&content=%7B%22out_biz_no%22%3A%222026042711122334455%22%2C%22order_no%22%3A%222026042711122334455%22%2C%22third_biz_no%22%3A%22%E5%95%86%E6%88%B7%E8%AE%A2%E5%8D%95%E5%8F%B7202604270001%22%2C%22status%22%3A%22SUCCESS%22%2C%22amount%22%3A100.00%2C%22order_title%22%3A%22%E8%BD%AC%E8%B4%A6%E6%A0%87%E9%A2%98%22%2C%22payee_type%22%3A%22ALIPAY_USER_ID%22%2C%22fund_order_id%22%3A%222026042711122334455%22%7D
|
|
|
|
|
|
+content 解码后:
|
|
|
{
|
|
|
- "status": "SUCCESS",
|
|
|
+ "out_biz_no": "2026042711122334455",
|
|
|
"order_no": "2026042711122334455",
|
|
|
"third_biz_no": "商户订单号202604270001",
|
|
|
- "amount": "100.00",
|
|
|
- "created_time": "2026-04-27 11:22:33",
|
|
|
- "updated_time": "2026-04-27 11:25:45"
|
|
|
-}
|
|
|
-
|
|
|
-------WebKitFormBoundary--
|
|
|
- 转账成功示例
|
|
|
-POST /商户回调地址 HTTP/1.1
|
|
|
-Content-Type: multipart/form-data; boundary=----WebKitFormBoundary
|
|
|
-
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="notify_id"
|
|
|
-
|
|
|
-n12535554089713704963
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="timestamp"
|
|
|
-
|
|
|
-1779037365774
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="content"
|
|
|
-
|
|
|
-{
|
|
|
"status": "SUCCESS",
|
|
|
- "order_no": "2026042711122334455",
|
|
|
- "third_biz_no": "商户订单号202604270001",
|
|
|
- "amount": "100.00",
|
|
|
- "out_biz_no": "12535474352010076162",
|
|
|
- "enterprise_id": "2088480767913636",
|
|
|
- "account_book_id": "2088480770941200",
|
|
|
+ "amount": 100.00,
|
|
|
"order_title": "转账标题",
|
|
|
- "created_time": "2026-04-27 11:22:33"
|
|
|
-}
|
|
|
-------WebKitFormBoundary--
|
|
|
-
|
|
|
- 转账失败示例
|
|
|
-POST /your/callback/url HTTP/1.1
|
|
|
-Content-Type: multipart/form-data; boundary=----WebKitFormBoundary
|
|
|
-
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="notify_id"
|
|
|
+ "payee_type": "ALIPAY_USER_ID",
|
|
|
+ "fund_order_id": "2026042711122334455"
|
|
|
+}</code></pre>
|
|
|
|
|
|
-n12535554089713704963
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="timestamp"
|
|
|
+ <p><strong>失败通知</strong></p>
|
|
|
+ <pre v-pre><code>POST /your/callback/url HTTP/1.1
|
|
|
+Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
-1779037365774
|
|
|
-------WebKitFormBoundary
|
|
|
-Content-Disposition: form-data; name="content"
|
|
|
+notify_id=n12535554089713704963×tamp=1779037365774&content=%7B%22status%22%3A%22FAIL%22%2C%22third_biz_no%22%3A%22%E5%95%86%E6%88%B7%E8%AE%A2%E5%8D%95%E5%8F%B7202604270001%22%2C%22amount%22%3A%221.00%22%2C%22error_msg%22%3A%22%E6%94%B6%E6%AC%BE%E8%B4%A6%E5%8F%B7%E4%B8%8D%E5%AD%98%E5%9C%A8%E6%88%96%E5%A7%93%E5%90%8D%E6%9C%89%E8%AF%AF%22%7D
|
|
|
|
|
|
+content 解码后:
|
|
|
{
|
|
|
"status": "FAIL",
|
|
|
"third_biz_no": "商户订单号202604270001",
|
|
|
"amount": "1.00",
|
|
|
"error_msg": "收款账号不存在或姓名有误,建议核实账号和姓名是否准确"
|
|
|
-}
|
|
|
-------WebKitFormBoundary--
|
|
|
-------WebKitFormBoundary--
|
|
|
-</code></pre>
|
|
|
+}</code></pre>
|
|
|
|
|
|
<h4>响应要求</h4>
|
|
|
<p>
|
|
|
@@ -1365,6 +1367,7 @@ const configLoading = ref(true);
|
|
|
const expandedSections = ref({
|
|
|
payee_info: false,
|
|
|
bankcard_ext_info: false,
|
|
|
+ ext_info: false,
|
|
|
});
|
|
|
|
|
|
const configExists = ref(false);
|