Onramp API Integration.
Web hook - Onramp
Sample responses
5min
JS
"request_data": {
"initialFiatAmount": 100,
"fiat": 100,
"receiverWalletAddress": "0xCD7....7fc5029",
"buyTokenSymbol": "USDC",
"buyTokenAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"orderId": "660....50",
"status": "fiatPending",
"currency": "INR",
"chainId": 137,
"customer": {
"id": "64....449",
"name": "",
"email": "[email protected]",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-07-07T03:54:51.416Z"
},
"createdAt": "2024-04-04T07:50:39.855Z",
"txnhash": "",
"transferredamount": "1.068666",
"transferredamountwei": "1068666",
"eventType": "onramp",
"metaData": {
"orderId": "1398595",
"paymentMode": "INR_UPI"
},
"couponId": "",
"fee": {
"gasFee": "6606534380000000",
"transactionFee": ""
}
}
JS
"request_data": {
"initialFiatAmount": 100,
"fiat": 100,
"receiverWalletAddress": "0x20...D5E31",
"buyTokenSymbol": "USDT",
"buyTokenAddress": "0x55d..7955",
"orderId": "660...93",
"status": "fiatReceived",
"currency": "INR",
"chainId": 137,
"customer": {
"id": "640...0f",
"name": "",
"email": "[email protected]",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-03-03T04:02:43.070Z"
},
"createdAt": "2024-04-03T04:51:13.807Z",
"txnhash": "",
"transferredamount": "1.068666",
"transferredamountwei": "1068666",
"eventType": "onramp",
"metaData": {
"paymentMode": "INR_UPI"
},
"couponId": "",
"fee": {
"gasFee": "172635000000000",
"transactionFee": ""
}
}
JS
"request_data": {
"initialFiatAmount": 100,
"fiat": 100,
"receiverWalletAddress": "0x20...D5E31",
"buyTokenSymbol": "USDT",
"buyTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
"orderId": "66....93",
"status": "orderReceived",
"currency": "INR",
"chainId": 137,
"customer": {
"id": "6...0f",
"name": "",
"email": "[email protected]",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-03-03T04:02:43.070Z"
},
"createdAt": "2024-04-03T04:51:13.807Z",
"txnhash": "",
"transferredamount": "1.068666",
"transferredamountwei": "1068666",
"eventType": "onramp",
"metaData": {
"paymentMode": "INR_UPI"
},
"couponId": "",
"fee": {
"gasFee": "172635000000000",
"transactionFee": ""
}
}
JS
"request_data": {
"initialFiatAmount": 100,
"fiat": 100,
"receiverWalletAddress": "0x20...D5E31",
"buyTokenSymbol": "USDT",
"buyTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
"orderId": "6...93",
"status": "transferred",
"currency": "INR",
"chainId": 137,
"customer": {
"id": "64...0f",
"name": "",
"email": "[email protected]",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-03-03T04:02:43.070Z"
},
"createdAt": "2024-04-03T04:51:13.807Z",
"txnhash": "",
"transferredamount": "1.068666",
"transferredamountwei": "1068666",
"eventType": "onramp",
"metaData": {
"paymentMode": "INR_UPI"
},
"couponId": "",
"fee": {
"gasFee": "172635000000000",
"transactionFee": ""
}
}
JS
"request_data": {
"initialFiatAmount": 100,
"fiat": 100,
"receiverWalletAddress": "0x2...31",
"buyTokenSymbol": "USDT",
"buyTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
"orderId": "66...3",
"status": "completed",
"currency": "INR",
"chainId": 137,
"customer": {
"id": "640..0f",
"name": "",
"email": "[email protected]",
"phone": {
"countrycode": "",
"number": ""
},
"createdat": "2023-03-03T04:02:43.070Z"
},
"createdAt": "2024-04-03T04:51:13.807Z",
"txnhash": "0x64042...deb3074e7c16eac2841",
"transferredamount": "1.068666",
"transferredamountwei": "1068666",
"eventType": "onramp",
"metaData": {
"country": "India",
"paymentMode": "INR_UPI",
"conversionRate": "95.95",
"commission": "0"
},
"couponId": "",
"fee": {
"gasFee": "172635000000000",
"transactionFee": ""
}
}
Updated 04 Apr 2024
Did this page help you?