curl --location --request POST '/api/v1/onramp/create-transaction' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"fromCurrency": "INR",
"toCurrency": "USDT",
"chain": "bep20",
"paymentMethodType": "UPI",
"depositAddress": "0x1234...",
"customerId": "8X2m7_116",
"fromAmount": "1741",
"toAmount": "20.5",
"rate": "85.0"
}'
{
"status": 1,
"code": 200,
"data": {
"transactionId": "524",
"createdAt": "2023-11-24 12:07:43",
"fiatPaymentInstructions": {
"bank": {
"name": "",
"Account Number": "",
"ifsc": "",
"type": "",
"branch": "",
"bank": ""
},
"bankNotes": [
{
"type": -1,
"msg": "NEFT not allowed for this account."
},
{
"type": 1,
"msg": "Bank transfers from UPI Apps like gPay, PhonePe, Paytm are working."
},
{
"type": 1,
"msg": "UPI bank transfers, IMPS is allowed for this account."
}
]
}
}
}