Retrieve Conversion
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/conversion/{id} \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}"
headers = {"x-auth-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-auth-token': '<api-key>'}};
fetch('https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}', 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/conversion/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-auth-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-auth-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account_name": "UQPAY",
"conversion_id": "b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
"short_reference_id": "P220406-LLCVLRM",
"creator": "UQPAY",
"client_rate": "1.355957",
"buy_amount": "7.37",
"buy_currency": "SGD",
"sell_amount": "10",
"sell_currency": "USD",
"create_time": "2024-08-22T17:12:58+08:00",
"settle_time": "2024-08-22T17:13:00+08:00",
"conversion_status": "FUNDS_ARRIVED"
}Conversion
Retrieve Conversion
通过指定 conversion_id 获取某笔特定换汇。
GET
/
v1
/
conversion
/
{id}
Retrieve Conversion
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/conversion/{id} \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}"
headers = {"x-auth-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-auth-token': '<api-key>'}};
fetch('https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}', 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/conversion/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-auth-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/conversion/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-auth-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account_name": "UQPAY",
"conversion_id": "b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
"short_reference_id": "P220406-LLCVLRM",
"creator": "UQPAY",
"client_rate": "1.355957",
"buy_amount": "7.37",
"buy_currency": "SGD",
"sell_amount": "10",
"sell_currency": "USD",
"create_time": "2024-08-22T17:12:58+08:00",
"settle_time": "2024-08-22T17:13:00+08:00",
"conversion_status": "FUNDS_ARRIVED"
}授权
由 UQPAY 提供的登录 API Token。
路径参数
资源的通用唯一标识符(UUID v4)。
示例:
"b3d9d2d5-4c12-4946-a09d-953e82sed2b0"
响应
200 - application/json
OK —— 成功获取换汇。
与该账户关联的客户名称。
示例:
"UQPAY"
换汇交易的唯一 UUID 标识符。
示例:
"b3d9d2d5-4c12-4946-a09d-953e82sed2b0"
系统生成的用于标识该实体的编号。
示例:
"P220406-LLCVLRM"
发起该换汇交易的实体。
示例:
"UQPAY"
该交易适用的汇率。
示例:
"1.355957"
换汇中买入币种的金额。
示例:
"7.37"
换汇中卖出币种的金额。
示例:
"10"
换汇交易发起时的时间戳。
示例:
"2024-08-22T17:12:58+08:00"
换汇交易成功结算时的时间戳。
示例:
"2024-08-22T17:13:00+08:00"
该换汇交易的当前状态。
PROCESSING:换汇请求正在由系统处理中。AWAITING_FUNDS:系统正在等待源资金到位。TRADE_SETTLED:已按约定汇率执行换汇。FUNDS_ARRIVED:已收到兑换后的目标币种资金。
可用选项:
PROCESSING, AWAITING_FUNDS, TRADE_SETTLED, FUNDS_ARRIVED 示例:
"FUNDS_ARRIVED"

