Onramp API Integration.
Orders

Create Order Onramp

2min
To create Onramp order. you need to link UPI ID or Bank account of the user before creating orders, kindly follow Link UPI ID section under Customer Login page.
POST
Request
Header Parameters
x-api-key
required
String
api key from dashboard
Authorization
required
String
Bearer <authToken>
Body Parameters
buyTokenSymbol
required
String
example : "USDC"
chainId
required
Number
example: 80001 polygon testnet chain ID
fiatCurrency
required
String
example: "inr"
fiatAmount
required
Number
example: 100
buyTokenAddress
required
String
example:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"
receiverAddress
required
String
example: "0xCdF10Bc7a1fAE391ff18F4C220ACe912547971cC"
paymentMode
required
String
example : "INR_UPI" , this is supported paymentMode code from Supported Currency endpoint INR_IMPS for IMPS INR_NEFT for NEFT
metaData
optional
Object
Datatype : JSON Object Example : "metaData" : JSON.stringify({ "userID" : "ABCXXX", "userName" : "user" }) Note: metaData object should be set as key value pairs of `strings` only
upiId
required
Object
UPI id object, required only for UPI orders
bankDetails
required
Object
Linked bank account of the user, only required for IMPS/NEFT orders


Default fiat is only INR , for PHP contact our sales team to enable it. And from api create order with paymentMode as PHP_EWALLET_GCASH or PHP_EWALLET_PAYMAYA or PHP_EWALLET_GRABPAY for PHP

Sample Request body

Sample Request body




Updated 02 Dec 2023
Did this page help you?