- 文档必读
- 个人微信
- 个人微信(DLL) 支持http+tcp
- 企业微信(开发中)
- 更新日志
- 插件敏感词审核机制
收到转账事件
POST
http://callbackurl
请求参数
Body 参数application/json
event
enum<string>
事件类型
枚举值:
10005
description
string
事件描述
示例值:
转账事件
time
integer
毫秒时间戳
示例值:
1726826627676
data
object
数据体
instanceId
string
实例id
示例值:
97554f7c82a1439c86df3143ef4975c5
invalidTime
integer
必需
示例值:
1716716297
messageId
string
消息id
示例值:
7053704521966022857
transType
integer
必需
2 延时到账
示例值:
1
messageSource
integer
必需
2 对方接收转账
3 发出转账
4 自己接收转账
5 对方退还
6 自己退还
fromWxId
string
好友wxid
示例值:
test
money
string
金额 单位元
示例值:
0.01
memo
string
转账备注
示例值:
测试转账
transferId
string
必需
示例值:
1000050001202405250826818609917
transcationId
string
必需
示例值:
53010000356101202405250814531240
示例
{
"event": "10005",
"description": "转账事件",
"time": 1726826627676,
"data": {
"instanceId": "97554f7c82a1439c86df3143ef4975c5",
"invalidTime": 1716716297,
"messageId": "7053704521966022857",
"transType": 1,
"messageSource": 0,
"fromWxId": "test",
"money": "0.01",
"memo": "测试转账",
"transferId": "1000050001202405250826818609917",
"transcationId": "53010000356101202405250814531240"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://callbackurl' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-11-27 03:13:49