feat(tenpayv3): 新增企业支付相关接口

This commit is contained in:
Fu Diwei
2025-10-11 15:37:59 +08:00
parent b36c12c115
commit e34d398c17
46 changed files with 1908 additions and 45 deletions

View File

@@ -0,0 +1,8 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"start_date": "2025-04-23",
"end_date": "2025-04-23",
"entity_name": "某某科技有限公司",
"out_operation_id": "operation12345678"
}

View File

@@ -0,0 +1,13 @@
{
"sp_mchid": "12341234",
"out_operation_id": "operation12345678",
"operation_id": "1030000071201xxxxx",
"sub_mchid": "43214321",
"start_date": "2025-04-23",
"end_date": "2025-04-23",
"entity_name": "某某科技有限公司",
"proof_id": "proof12345678",
"download_url": "https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx",
"created_time": "2023-06-08T10:34:56+08:00",
"updated_time": "2023-06-08T10:34:56+08:00"
}

View File

@@ -0,0 +1,6 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"date": "2025-04-23",
"type": "QYZFALL"
}

View File

@@ -0,0 +1,9 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"date": "2025-04-23",
"type": "QYZFALL",
"download_url": "https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx",
"hash_type": "SHA1",
"hash_value": "79bb0f45fc4c42234a918000b2668d689e2bde04"
}

View File

@@ -0,0 +1,5 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"reason": "商户主动作废"
}

View File

@@ -0,0 +1,8 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"employee_id": "WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c",
"card_no": "1068019671702503425",
"card_state": "DISABLED",
"card_disabled_time": "2023-12-31T23:59:59+08:00"
}

View File

@@ -0,0 +1,10 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"card_template_id": "template_123",
"amount": 10000,
"card_name": "报销额度卡",
"out_card_no": "out_card_123456",
"effective_end_time": "2023-12-31T23:59:59+08:00",
"card_remark": "2023年1月差旅报销"
}

View File

@@ -0,0 +1,9 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"out_card_no": "mch_card_123456",
"employee_id": "WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c",
"card_no": "1068019671702503425",
"effective_begin_time": "2023-01-01T00:00+08:00",
"effective_end_time": "2023-12-31T23:59:59+08:00"
}

View File

@@ -0,0 +1,21 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"card_no": "1068019671702503425",
"out_card_no": "mch_card_123456",
"employee_id": "WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c",
"card_template_id": "template_123",
"card_rule": "SINGLE",
"refund_rule": "RETURN",
"amount": 10000,
"remain_amount": 8000,
"effective_end_time": "2023-12-31T23:59:59+08:00",
"effective_begin_time": "2023-01-01T00:00:00+08:00",
"card_state": "ACTIVE",
"card_name": "报销额度卡",
"reason": "有效期结束",
"card_usage_time": "2023-06-08T10:34:56+08:00",
"transaction_id": "4200000123202306081234567890",
"card_disabled_time": "2023-12-31T23:59:59+08:00",
"card_remark": "2023年1月差旅报销"
}

View File

@@ -0,0 +1,21 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"card_no": "1068019671702503425",
"out_card_no": "mch_card_123456",
"employee_id": "WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c",
"card_template_id": "template_123",
"card_rule": "SINGLE",
"refund_rule": "RETURN",
"amount": 10000,
"remain_amount": 8000,
"effective_end_time": "2023-12-31T23:59:59+08:00",
"effective_begin_time": "2023-01-01T00:00:00+08:00",
"card_state": "ACTIVE",
"card_name": "报销额度卡",
"reason": "有效期结束",
"card_usage_time": "2023-06-08T10:34:56+08:00",
"transaction_id": "4200000123202306081234567890",
"card_disabled_time": "2023-12-31T23:59:59+08:00",
"card_remark": "2023年1月差旅报销"
}

View File

@@ -0,0 +1,11 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"employee_id": "WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c",
"card_no": "1068019671702503425",
"expire_time": "2023-06-08T11:34:56+08:00",
"payment_url": "weixin://dl/liteapp?url=https%3A%2F%2Fliteapp.wxpapp.weixin.qq.com%2Fq%2FgjoM7g%3Ftoken%3D123%23wechat_pay",
"application_type": "H5",
"mp_query": "token=123",
"mp_business_type": "liteAppWebizPayRegister"
}

View File

@@ -0,0 +1,4 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321"
}

View File

@@ -0,0 +1,8 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"user_id": "employee123",
"authorization_state": "REVOKED",
"authorization_revoked_time": "2023-12-31T23:59:59+08:00",
"reason": "用户主动撤销"
}

View File

@@ -0,0 +1,11 @@
{
"sp_mchid": "12341234",
"out_batch_id": "batch12345678",
"match_details": [
{
"organization_code": "91110000710926094P",
"store_name": "微信小店",
"product_type": "CODE_PAY"
}
]
}

View File

@@ -0,0 +1,7 @@
{
"sp_mchid": "12341234",
"out_batch_id": "batch12345678",
"batch_id": "1030000071201xxxxx",
"time": "2023-06-08T10:34:56+08:00",
"state": "ACCEPTED"
}

View File

@@ -0,0 +1,13 @@
{
"sp_mchid": "12341234",
"out_batch_id": "batch12345678",
"batch_id": "1030000071201xxxxx",
"state": "ACCEPTED",
"match_results": [
{
"organization_code": "911100007109260000",
"store_name": "微信小店",
"has_valid_mchid": true
}
]
}

View File

@@ -0,0 +1,13 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"user_id": "employee123",
"employee_list": [
{
"employee_id": "WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c",
"authorization_state": "AUTHORIZED",
"authorization_time": "2018-06-08T10:34:56+08:00",
"authorization_revoked_time": "2018-06-08T10:34:56+08:00"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"application_type": "H5"
}

View File

@@ -0,0 +1,10 @@
{
"sp_mchid": "12341234",
"sub_mchid": "43214321",
"user_id": "employee123",
"authorization_url": "weixin://dl/liteapp?url=https%3A%2F%2Fliteapp.wxpapp.weixin.qq.com%2Fq%2FgjoM7g%3Ftoken%3D123%23wechat_pay",
"expire_time": "2015-05-20T13:29:35+08:00",
"application_type": "H5",
"mp_query": "token=123",
"mp_business_type": "liteAppWebizPayRegister"
}