feat(tenpayv3): 新增个人收款二手交易场景相关接口
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
CodeLint / Lint (push) Waiting to run

This commit is contained in:
Fu Diwei
2025-07-14 20:04:33 +08:00
parent 49a89eedd0
commit 048a51abb7
47 changed files with 1304 additions and 30 deletions

View File

@@ -0,0 +1,8 @@
{
"out_instruction_no": "1200002",
"appid": [
"wxf636efh567hg4356"
],
"transfer_mode": "TRANSFER_TO_ORIGINAL_RECEIVE_USER",
"notify_url": "https://weixin.qq.com"
}

View File

@@ -0,0 +1,20 @@
{
"product_name": "C2C",
"receipt_id": "0100011742874700562078230000",
"transfer_amount": {
"total": 100,
"currency": "CNY"
},
"receipt_state": "RECEIPT_STATE_PENDING",
"create_time": "2023-10-01T12:34:56+08:00",
"last_update_time": "2023-10-01T12:34:56+08:00",
"instruction": {
"out_instruction_no": "1200002",
"commander": {
"operator": "MERCHANT",
"mchid": "990055040"
},
"transfer_mode": "TRANSFER_TO_ORIGINAL_RECEIVE_USER",
"success_time": "2023-10-01T12:34:56+08:00"
}
}

View File

@@ -0,0 +1,25 @@
{
"product_name": "C2C",
"receipt_id": "0100011742874700562078230000",
"transfer_amount": {
"total": 100,
"currency": "CNY"
},
"receipt_state": "RECEIPT_STATE_PENDING",
"create_time": "2023-10-01T12:34:56+08:00",
"last_update_time": "2023-10-01T12:34:56+08:00",
"instruction": {
"out_instruction_no": "1200002",
"commander": {
"operator": "MERCHANT",
"mchid": "990055040"
},
"transfer_mode": "TRANSFER_TO_ORIGINAL_RECEIVE_USER",
"receiver": {
"account_type": "OTHERS",
"openid": "eoCuiA7RW33Tc3jtz_5CNLegC9kN0",
"appid": "wxf636efh567hg4356"
},
"success_time": "2023-10-01T12:34:56+08:00"
}
}

View File

@@ -1,10 +1,11 @@
{
{
"combine_appid": "wxd678efh567hg6787",
"sub_orders": [
{
"mchid": "1900000109",
"out_trade_no": "20150806125346",
"sub_mchid": "1230000109"
"sub_mchid": "1230000109",
"individual_auth_id": "1900000109"
}
]
}

View File

@@ -0,0 +1,29 @@
{
"combine_appid": "wxd678efh567hg6787",
"combine_mchid": "1230000109",
"combine_out_trade_no": "P20150806125346",
"combine_payer_info": {
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"scene_info": {
"device_id": "POS1:1",
"payer_client_ip": "127.0.0.1"
},
"sub_orders": [
{
"mchid": "1230000109",
"individual_auth_id": "1900000109",
"individual_name": "哈哈哈小店",
"out_trade_no": "20150806125346",
"amount": {
"total_amount": 10,
"currency": "CNY"
},
"attach": "深圳分店",
"description": "Image形象店-深圳腾大-QQ公仔"
}
],
"time_expire": "2018-06-08T10:34:56+08:00",
"notify_url": "https://yourapp.com/notify",
"trade_scenario": "RECOMMERCE"
}

View File

@@ -0,0 +1,3 @@
{
"prepay_id": "wx201410272009395522657a690389285100"
}

View File

@@ -0,0 +1,34 @@
{
"combine_appid": "wxd678efh567hg6787",
"combine_mchid": "1230000109",
"combine_out_trade_no": "P20150806125346",
"combine_transaction_id": "1217752501201407033233368018",
"combine_payer_info": {
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o\t"
},
"scene_info": {
"device_id": "POS1:1"
},
"sub_orders": [
{
"mchid": "1900000109",
"individual_auth_id": "1900000109",
"individual_name": "哈哈哈小店",
"out_trade_no": "20150806125346",
"transaction_id": "1009660380201506130728806387",
"trade_type": "MINIPROGRAM",
"trade_state": "SUCCESS",
"bank_type": "CMC",
"attach": "深圳分店",
"success_time": "2015-05-20T13:29:35.120+08:00",
"amount": {
"total_amount": 10,
"payer_amount": 10,
"currency": "CNY",
"payer_currency": "CNY",
"settlement_rate": 650000000
}
}
],
"trade_scenario": "RECOMMERCE"
}

View File

@@ -0,0 +1,5 @@
{
"individual_auth_id": "1900000109",
"operation_time": "2018-06-08T10:34:56+08:00",
"auth_state": "AUTHORIZED"
}

View File

@@ -0,0 +1,6 @@
{
"individual_auth_id": "256322110225",
"out_abnormal_settle_batch_no": "1236698745558870",
"abnormal_settle_type": "TRANSFER_TO_ORIGINAL_RECEIVE_USER",
"description": "xx结算失败转付至原用户"
}

View File

@@ -0,0 +1,17 @@
{
"out_settle_batch_no": "123699878455555",
"settle_batch_no": "123688554855555666",
"individual_auth_id": "1900000109",
"description": "共计2笔订单订单金额xxx元平台服务费xxx元合计收款xxx元",
"state": "SUCCESS",
"trade_scenario": "RECOMMERCE",
"create_time": "2024-06-08T10:34:56+08:00",
"finish_time": "2024-06-08T10:34:56+08:00",
"abnormal_type": "AUTH_RELATIONSHIP_INVALID",
"abnormal_settle_result": {
"abnormal_settle_type": "TRANSFER_TO_ORIGINAL_RECEIVE_USER",
"apply_success_time": "2025-04-22T10:34:56+08:00",
"abnormal_fund_receipt_id": "2123685544886666",
"out_abnormal_settle_batch_no": "1236698745558870"
}
}

View File

@@ -0,0 +1,26 @@
{
"appid": "WXA12368855126622",
"out_settle_batch_no": "1236698745558870",
"individual_auth_id": "256322110225",
"notify_url": "https://www.weixin.qq.com/wxpay/pay.php",
"description": "共计2笔订单订单金额xxx元平台服务费xxx元合计收款xxx元",
"trade_scenario": "RECOMMERCE",
"settle_info_list": [
{
"out_settle_no": "12369666555136622",
"transaction_id": "4207752501201407033233368018",
"settle_detail_info_list": [
{
"out_settle_detail_no": "123688556699666554",
"settle_type": "RECEIVE",
"receiver_type": "MERCHANT",
"receiver_account": "1234567890",
"amount": {
"amount": 11000,
"currency": "CNY"
}
}
]
}
]
}

View File

@@ -0,0 +1,10 @@
{
"out_settle_batch_no": "123699878455555",
"settle_batch_no": "123688554855555666",
"individual_auth_id": "1900000109",
"description": "共计2笔订单订单金额xxx元平台服务费xxx元合计收款xxx元",
"state": "SUCCESS",
"trade_scenario": "RECOMMERCE",
"create_time": "2024-06-08T10:34:56+08:00",
"finish_time": "2024-06-08T10:34:56+08:00"
}

View File

@@ -0,0 +1,10 @@
{
"out_settle_batch_no": "123699878455555",
"settle_batch_no": "123688554855555666",
"individual_auth_id": "1900000109",
"description": "共计2笔订单订单金额xxx元平台服务费xxx元合计收款xxx元",
"state": "SUCCESS",
"trade_scenario": "RECOMMERCE",
"create_time": "2024-06-08T10:34:56+08:00",
"finish_time": "2024-06-08T10:34:56+08:00"
}