|
本帖最后由 HelloWorld 于 2024-12-5 00:06 编辑
Wise 可以在这里创建 webhook:https://wise.com/settings/webhooks
可以用 https://webhook.site 去测试
3 种订阅模式:
Transfer update events
Receive notifications when transfers get funded, sent to a recipient, canceled or refunded.
Balance deposit events
Receive notifications when money is added to one of your balances.
Transfer issue events
Receive notifications when one of your transfers requires attention to resolve an issue.
其中 Balance deposit events 可以监听入账事件
尝试用其它账户给我的 Wise 转账欧元,并附上附言,得到通知消息:- {
- "data": {
- "resource": {
- "id": 1243xxxx,
- "profile_id": 2473xxxx,
- "type": "balance-account"
- },
- "amount": 0.05,
- "currency": "EUR",
- "post_transaction_balance_amount": 4.12,
- "occurred_at": "2024-12-04T15:07:03Z",
- "transaction_type": "credit"
- },
- "subscription_id": "9b03dea1-xxxx-xxxx-xxxx-d82c4005879f",
- "event_type": "balances#credit",
- "schema_version": "2.0.0",
- "sent_at": "2024-12-04T15:07:03Z"
- }
复制代码 从事件内容来看,并没有给出附言信息,因此,想用它开发回调并根据附言处理任务的方式行不通
也测试了 Transfer update events,入账和出账都没有任何通知
补充1:
文档显示,这个方式可以获得 transfer_reference 🎉:https://docs.wise.com/api-docs/f ... alance-update-event
但是需要用 API 请求的方式去订阅:https://docs.wise.com/api-docs/a ... #create-application
想调用这个 API,需要找 wise 的的技术支持获取 clientKey
补充2:
通过抓包重放,成功通过 API 订阅了 balances#update,收款得到数据:- {
- "data": {
- "resource": {
- "id": 1243xxxx,
- "profile_id": 2473xxxx,
- "type": "balance-account"
- },
- "amount": 0.08,
- "currency": "EUR",
- "transaction_type": "credit",
- "occurred_at": "2024-12-04T15:52:01Z",
- "transfer_reference": "132305xxxx"
- },
- "subscription_id": "d2fa16bd-xxxx-xxxx-xxxx-60add98cc0fc",
- "event_type": "balances#update",
- "schema_version": "2.0.0",
- "sent_at": "2024-12-04T15:52:01Z"
- }
复制代码 但是里面的 transfer_reference 并不是转账附言 💔
补充3:
尝试订阅 swift-in#credit,IBAN 转账没回调事件
同时 Wise 转账附言无法使用 @ 符号,也意味着无法留邮箱账号 |
|