The payload sent to your webhook URL would have an event property that identifies what the event is about, a resource property identifying the transaction type and the data attribute which would contain the event data.
Below is a list of Crypto wallet based events broadcasted by Oval Finance:
payment_received : This webhook is sent to notify the fintech partner about a deposit into their customers' crypto wallet.
Transferred : This webhook is sent to notify the fintech partner when a transfer has been initiated from their customers' crypto wallet to anouth crypto wsllet/user & successfully processed.
Withdrawn : This webhook is sent to notify the fintech partner about a withdrawal from their customers' crypto wallet has been processed successfully.
Sample JSON body for each event:
{
"id": "f7cf285f-297f-432e-9320-864ebb8c3836",
"event": "crypto_payment",
"resource_type": "deposit",
"data": {
"customerid": "f7cf285f-297f-432e-9320-864ebb8c3836",
"status": "payment received",
"transaction_amount": 25,
"asset": "USDC",
"network": "ERC20",
"completed_at": "2022-08-30T16:41:24.500048638Z",
}
}