Skip to main content
POST
/
v1
/
ramp
/
conversion
/
quote
Create Quote
curl --request POST \
  --url https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion/quote \
  --header 'Content-Type: application/json' \
  --header 'x-auth-token: <api-key>' \
  --data '
{
  "sell_currency": "USDC",
  "buy_currency": "USD",
  "amount": "1000.00",
  "fixed_currency": "USD"
}
'
{
  "code": 200,
  "message": "Success",
  "data": {
    "quote_id": "958813b7-8523-4b93-862e-46eddb87b56d",
    "sell_currency": "USDT",
    "sell_amount": "100",
    "buy_currency": "SGD",
    "buy_amount": "133.84",
    "currency_pair": "USDTSGD",
    "direct_rate": "1.3384723",
    "inverse_rate": "0.74712043",
    "processing_fee": "0",
    "network_fee": "0",
    "valid_from": 1706000202,
    "valid_to": 1706000382
  }
}

Authorizations

x-auth-token
string
header
required

The API token for login provided by UQPay.

Headers

x-on-behalf-of
string

Specifies the sub-account on whose behalf the request is made. This should be set to the account_id, which can be retrieved via the List Connected Accounts API. If omitted or empty, the request is executed using the master account. More information at Connected Accounts.

Body

application/json
sell_currency
string
required

Selling currency

Example:

"USDC"

buy_currency
string
required

Buying currency

Example:

"USD"

amount
string
required

Amount for conversion

Example:

"1000.00"

fixed_currency
string
required

The currency to fix the amount for (either sell or buy currency)

Example:

"USD"

Response

Quote created successfully

code
integer
required
Example:

200

message
string
required
Example:

"Success"

data
object
required