Skip to main content
POST
Create Quote

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.
For crypto-to-crypto, only USDT with one other supported coin is allowed.

Example:

"USDT"

buy_currency
string
required

Buying currency.
For crypto-to-crypto, only USDT with one other supported coin is allowed.

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).
If either side is volatile (for example BTC or ETH), only USDT is allowed.

Example:

"USD"

Response

200 - application/json

Quote created successfully

code
integer
required
Example:

200

message
string
required
Example:

"Success"

data
object
required