Onramp API Integration.
Web hook - Onramp
Sample responses
5min
JS
1
2 "request_data": {
3 "initialFiatAmount": 100,
4 "fiat": 100,
5 "receiverWalletAddress": "0xCD7....7fc5029",
6 "buyTokenSymbol": "USDC",
7 "buyTokenAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
8 "orderId": "660....50",
9 "status": "fiatPending",
10 "currency": "INR",
11 "chainId": 137,
12 "customer": {
13 "id": "64....449",
14 "name": "",
15 "email": "[email protected]",
16 "phone": {
17 "countrycode": "",
18 "number": ""
19 },
20 "createdat": "2023-07-07T03:54:51.416Z"
21 },
22 "createdAt": "2024-04-04T07:50:39.855Z",
23 "txnhash": "",
24 "transferredamount": "1.068666",
25 "transferredamountwei": "1068666",
26 "eventType": "onramp",
27 "metaData": {
28 "orderId": "1398595",
29 "paymentMode": "INR_UPI"
30 },
31 "couponId": "",
32 "fee": {
33 "gasFee": "6606534380000000",
34 "transactionFee": ""
35 }
36 }
JS
1"request_data": {
2 "initialFiatAmount": 100,
3 "fiat": 100,
4 "receiverWalletAddress": "0x20...D5E31",
5 "buyTokenSymbol": "USDT",
6 "buyTokenAddress": "0x55d..7955",
7 "orderId": "660...93",
8 "status": "fiatReceived",
9 "currency": "INR",
10 "chainId": 137,
11 "customer": {
12 "id": "640...0f",
13 "name": "",
14 "email": "[email protected]",
15 "phone": {
16 "countrycode": "",
17 "number": ""
18 },
19 "createdat": "2023-03-03T04:02:43.070Z"
20 },
21 "createdAt": "2024-04-03T04:51:13.807Z",
22 "txnhash": "",
23 "transferredamount": "1.068666",
24 "transferredamountwei": "1068666",
25 "eventType": "onramp",
26 "metaData": {
27 "paymentMode": "INR_UPI"
28 },
29 "couponId": "",
30 "fee": {
31 "gasFee": "172635000000000",
32 "transactionFee": ""
33 }
34 }
JS
1"request_data": {
2 "initialFiatAmount": 100,
3 "fiat": 100,
4 "receiverWalletAddress": "0x20...D5E31",
5 "buyTokenSymbol": "USDT",
6 "buyTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
7 "orderId": "66....93",
8 "status": "orderReceived",
9 "currency": "INR",
10 "chainId": 137,
11 "customer": {
12 "id": "6...0f",
13 "name": "",
14 "email": "[email protected]",
15 "phone": {
16 "countrycode": "",
17 "number": ""
18 },
19 "createdat": "2023-03-03T04:02:43.070Z"
20 },
21 "createdAt": "2024-04-03T04:51:13.807Z",
22 "txnhash": "",
23 "transferredamount": "1.068666",
24 "transferredamountwei": "1068666",
25 "eventType": "onramp",
26 "metaData": {
27 "paymentMode": "INR_UPI"
28 },
29 "couponId": "",
30 "fee": {
31 "gasFee": "172635000000000",
32 "transactionFee": ""
33 }
34 }
JS
1"request_data": {
2 "initialFiatAmount": 100,
3 "fiat": 100,
4 "receiverWalletAddress": "0x20...D5E31",
5 "buyTokenSymbol": "USDT",
6 "buyTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
7 "orderId": "6...93",
8 "status": "transferred",
9 "currency": "INR",
10 "chainId": 137,
11 "customer": {
12 "id": "64...0f",
13 "name": "",
14 "email": "[email protected]",
15 "phone": {
16 "countrycode": "",
17 "number": ""
18 },
19 "createdat": "2023-03-03T04:02:43.070Z"
20 },
21 "createdAt": "2024-04-03T04:51:13.807Z",
22 "txnhash": "",
23 "transferredamount": "1.068666",
24 "transferredamountwei": "1068666",
25 "eventType": "onramp",
26 "metaData": {
27 "paymentMode": "INR_UPI"
28 },
29 "couponId": "",
30 "fee": {
31 "gasFee": "172635000000000",
32 "transactionFee": ""
33 }
34 }
JS
1"request_data": {
2 "initialFiatAmount": 100,
3 "fiat": 100,
4 "receiverWalletAddress": "0x2...31",
5 "buyTokenSymbol": "USDT",
6 "buyTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
7 "orderId": "66...3",
8 "status": "completed",
9 "currency": "INR",
10 "chainId": 137,
11 "customer": {
12 "id": "640..0f",
13 "name": "",
14 "email": "[email protected]",
15 "phone": {
16 "countrycode": "",
17 "number": ""
18 },
19 "createdat": "2023-03-03T04:02:43.070Z"
20 },
21 "createdAt": "2024-04-03T04:51:13.807Z",
22 "txnhash": "0x64042...deb3074e7c16eac2841",
23 "transferredamount": "1.068666",
24 "transferredamountwei": "1068666",
25 "eventType": "onramp",
26 "metaData": {
27 "country": "India",
28 "paymentMode": "INR_UPI",
29 "conversionRate": "95.95",
30 "commission": "0"
31 },
32 "couponId": "",
33 "fee": {
34 "gasFee": "172635000000000",
35 "transactionFee": ""
36 }
37 }
Updated 04 Apr 2024
Did this page help you?