- An onboarding review changes status.
- A wallet registration changes.
- A fund order changes status.
Setup
Subscribe to TMMF events from the Configuration > Webhooks page in the Privy Dashboard.Webhooks can be tested at no cost in development environments. To enable webhooks in production,
upgrade to the Enterprise plan in the Privy Dashboard.
Onboarding events
These events report each change to an onboarding review’s status. The first one fires when WisdomTree receives the submission.tmmf.kyb.updated
tmmf.kyc.updated has the same payload, with two changes:
- It has
user_idin place oforganization_id. - Its
datahaskycin place ofkyb.
changes.status holds the previous and the new status. The previous status is null on the first event of a submission.
Event order
Webhooks can arrive out of order. The onboarding and wallet events carry the WisdomTree event behind each change:sequenceis higher for later changes to the same user, organization, or wallet. Ignore an event with a lowersequencethan one your app already processed.emitted_atis the Unix timestamp in milliseconds when WisdomTree emitted the change.
event_id, so your app can drop duplicates.
Wallet events
This event tells your app that a wallet’s registration changed.tmmf.wallet.updated
Order events
Privy sends one webhook when it creates an order. It sends a second one when the order reaches a final status. The payload is the order’s wallet action. The final event also has the order’s steps.Common patterns
These patterns show how to combine the events with the API.Follow an onboarding review
Follow an onboarding review
Listen for
tmmf.kyb.updated or tmmf.kyc.updated. Each event has the new review status in
data.status. Once it is approved,
register the user’s
wallets. While a business’s status is action_required, read the review
status
and show its resubmission reasons to the business.Refresh positions after an order
Refresh positions after an order
Listen for
wallet_action.tmmf_deposit.succeeded and wallet_action.tmmf_withdraw.succeeded.
Then list the wallet’s
positions to show the new
balance.Handle failed orders
Handle failed orders
A
failed order means WisdomTree failed or refunded it after the transfer. Use the get wallet
action endpoint with ?include=steps to read the
failure_reason and the wisdomtree_settlement step.
