Create Transfer
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"currency": "USD",
"amount": "100.50",
"type": 4001,
"reason": "Business transfer"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer"
payload = {
"currency": "USD",
"amount": "100.50",
"type": 4001,
"reason": "Business transfer"
}
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: 'USD', amount: '100.50', type: 4001, reason: 'Business transfer'})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'USD',
'amount' => '100.50',
'type' => 4001,
'reason' => 'Business transfer'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer"
payload := strings.NewReader("{\n \"currency\": \"USD\",\n \"amount\": \"100.50\",\n \"type\": 4001,\n \"reason\": \"Business transfer\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"USD\",\n \"amount\": \"100.50\",\n \"type\": 4001,\n \"reason\": \"Business transfer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"USD\",\n \"amount\": \"100.50\",\n \"type\": 4001,\n \"reason\": \"Business transfer\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Success",
"data": {
"order_id": "3c9e22ba-7b5e-4b7c-b92e-197d0406b86b",
"short_order_id": "TO260123-JZBHC9IA",
"order_status": "Pending",
"order_type": "Transfer Out",
"amount": 100,
"currency": "USD",
"processing_fee": 0,
"create_time": "2026-01-23 13:12:27 +08:00",
"reason": "testAPI",
"complete_time": "",
"message": "<string>"
}
}Transfer (Out/In)
Create Transfer
发起 Stablecoin Account 法币资金转出至 Global Account(类型 transfer-out:4001); 发起 Global Account 法币资金转入至 Stablecoin Account(类型 transfer-in:4000)。 Stablecoin Account API 发布方免责声明
POST
/
v1
/
ramp
/
transfer
Create Transfer
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"currency": "USD",
"amount": "100.50",
"type": 4001,
"reason": "Business transfer"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer"
payload = {
"currency": "USD",
"amount": "100.50",
"type": 4001,
"reason": "Business transfer"
}
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: 'USD', amount: '100.50', type: 4001, reason: 'Business transfer'})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency' => 'USD',
'amount' => '100.50',
'type' => 4001,
'reason' => 'Business transfer'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer"
payload := strings.NewReader("{\n \"currency\": \"USD\",\n \"amount\": \"100.50\",\n \"type\": 4001,\n \"reason\": \"Business transfer\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"USD\",\n \"amount\": \"100.50\",\n \"type\": 4001,\n \"reason\": \"Business transfer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/ramp/transfer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"USD\",\n \"amount\": \"100.50\",\n \"type\": 4001,\n \"reason\": \"Business transfer\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Success",
"data": {
"order_id": "3c9e22ba-7b5e-4b7c-b92e-197d0406b86b",
"short_order_id": "TO260123-JZBHC9IA",
"order_status": "Pending",
"order_type": "Transfer Out",
"amount": 100,
"currency": "USD",
"processing_fee": 0,
"create_time": "2026-01-23 13:12:27 +08:00",
"reason": "testAPI",
"complete_time": "",
"message": "<string>"
}
}授权
UQPay 提供的用于登录的 API Token。
请求头
指定代表哪个子账户发起请求。应设置为 account_id,可通过 List Connected Accounts 接口获取。若省略或为空,则请求以主账户身份执行。
更多信息参见 Connected Accounts。
用于保持操作幂等性的唯一标识符(UUID),确保同一操作的重复执行不会产生非预期的影响或重复。在网络错误、重试或失败的情况下,它有助于保持数据一致性。
请求体
application/json
⌘I

