跳转到主要内容
POST
/
v1
/
ramp
/
conversion
Create Conversion
curl --request POST \
  --url https://api-sandbox.uqpaytech.com/api/v1/ramp/conversion \
  --header 'Content-Type: application/json' \
  --header 'x-auth-token: <api-key>' \
  --data '
{
  "quote_id": "<string>",
  "sell_currency": "<string>",
  "sell_amount": "<string>",
  "buy_currency": "<string>",
  "buy_amount": "<string>",
  "reason": "<string>"
}
'
{
  "code": 200,
  "message": "Success",
  "data": {
    "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "short_order_id": "<string>",
    "status": "Submit Failed",
    "sell_currency": "<string>",
    "sell_amount": "<string>",
    "buy_currency": "<string>",
    "buy_amount": "<string>",
    "quote_price": "<string>",
    "processing_fee": "<string>",
    "network_fee": "<string>",
    "order_type": "<string>",
    "reason": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers-sandbox.uqpaytech.com/llms.txt

Use this file to discover all available pages before exploring further.

授权

x-auth-token
string
header
必填

The API token for login provided by UQPay.

请求头

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.

x-idempotency-key
string<uuid>

A unique identifier (UUID) used to maintain operation idempotency, ensuring that repeated executions of the same operation do not result in unintended effects or duplication. It helps preserve data consistency in the face of network errors, retries, or failures.

请求体

application/json
quote_id
string
必填

Quote ID

sell_currency
string
必填

Selling currency

sell_amount
string
必填

Selling amount

buy_currency
string
必填

Buying currency

buy_amount
string
必填

Buying amount

reason
string

Transaction remark

响应

200 - application/json

Conversion executed successfully

code
integer
必填
示例:

200

message
string
必填
示例:

"Success"

data
object
必填

Response data for Create Conversion (4.3.2)