Offramp Webhook - Sample Responses
This page provides sample webhook payloads for each event type in the offramp flow.
Pending
This event is triggered when a user has initialised the order but crypto transfer is pending.
{
"request_data": {
"fiat": 100,
"senderWalletAddress": "0xB...0b0",
"sellTokenSymbol": "USDT",
"sellTokenAddress": "0x5...55",
"chainId": 56,
"orderId": "6...b3",
"status": "pending",
"currency": "INR",
"created_at": "2024-04-01T07:08:09.428Z",
"updated_at": "2024-04-01T07:08:09.428Z",
"source": "",
"customer": {
"id": "64...22",
"name": "",
"email": "sunder@gmail.com",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-09-05T15:30:57.796Z"
},
"tenantId": "",
"transactionId": "",
"tokensDeducted": 1.2,
"tds": 59.93,
"eventType": "offramp",
"metaData": {
"txnID": "83220007558"
}
}
}
OrderReceived
This event is triggered when a user transfers crypto and the tokens are received by Onmeta.
{
"request_data": {
"fiat": 100,
"senderWalletAddress": "0xB..0b0",
"sellTokenSymbol": "USDT",
"sellTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
"chainId": 56,
"orderId": "66...b3",
"status": "orderReceived",
"currency": "INR",
"created_at": "2024-04-01T07:08:09.428Z",
"updated_at": "2024-04-01T07:08:09.428Z",
"source": "",
"customer": {
"id": "64...22",
"name": "",
"email": "sunder@gmail.com",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-09-05T15:30:57.796Z"
},
"tenantId": "",
"transactionId": "",
"tokensDeducted": 1.2,
"tds": 59.93,
"txnHash": "0x8b...9aa48",
"eventType": "offramp",
"metaData": {
"txnID": "83220007558"
}
}
}
CryptoReceived
When we successfully validate the crypto received from user we send this event.
{
"request_data": {
"fiat": 100,
"senderWalletAddress": "0xB31...a60b0",
"sellTokenSymbol": "USDT",
"sellTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
"chainId": 56,
"orderId": "66...b3",
"status": "CryptoReceived",
"currency": "INR",
"created_at": "2024-04-01T07:08:09.428Z",
"updated_at": "2024-04-01T07:08:09.428Z",
"source": "",
"customer": {
"id": "64f7...22",
"name": "",
"email": "sunder@gmail.com",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-09-05T15:30:57.796Z"
},
"tenantId": "",
"transactionId": "",
"tokensDeducted": 1.2,
"tds": 59.93,
"txnHash": "0x8b....aa48",
"eventType": "offramp",
"metaData": {
"txnID": "83220007558"
}
}
}
PayoutSuccess
This event is triggered when the fiat amount is successfully deposited in the users bank account.
{
"request_data": {
"fiat": 100,
"senderWalletAddress": "0xB31...0b0",
"sellTokenSymbol": "USDT",
"sellTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
"chainId": 56,
"orderId": "66..3",
"status": "PayoutSuccess",
"currency": "INR",
"created_at": "2024-04-01T07:08:09.428Z",
"updated_at": "2024-04-01T07:08:09.428Z",
"source": "",
"customer": {
"id": "64..22",
"name": "",
"email": "sunder@gmail.com",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-09-05T15:30:57.796Z"
},
"tenantId": "",
"transactionId": "TR...67",
"tokensDeducted": 1.2,
"tds": 59.93,
"eventType": "offramp",
"metaData": {
"txnID": "83220007558",
"conversionRate": "83.25",
"commission": "0",
"country": "India"
}
}
}