Retrieve Transfer
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/transfer/{id} \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/transfer/{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/transfer/{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/transfer/{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/transfer/{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/transfer/{id}")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/transfer/{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{
"transfer_id": "94d48e21-0a99-480c-b1b7-2e6d34e6eb67",
"reference_id": "P220406-LLCVLRM",
"short_reference_id": "P220406-LLCVLRM",
"source_account_name": "UQPAY SOURCE",
"destination_account_name": "UQPAY DEST",
"transfer_currency": "USD",
"transfer_amount": "1000",
"transfer_status": "pending",
"create_time": "2024-04-02T10:27:08+08:00",
"complete_time": "0001-01-01T00:00:00Z",
"created_by": "System"
}Transfers
Retrieve Transfer
通过指定 transfer id 获取某笔特定转账。
GET
/
v1
/
transfer
/
{id}
Retrieve Transfer
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/transfer/{id} \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/transfer/{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/transfer/{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/transfer/{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/transfer/{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/transfer/{id}")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/transfer/{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{
"transfer_id": "94d48e21-0a99-480c-b1b7-2e6d34e6eb67",
"reference_id": "P220406-LLCVLRM",
"short_reference_id": "P220406-LLCVLRM",
"source_account_name": "UQPAY SOURCE",
"destination_account_name": "UQPAY DEST",
"transfer_currency": "USD",
"transfer_amount": "1000",
"transfer_status": "pending",
"create_time": "2024-04-02T10:27:08+08:00",
"complete_time": "0001-01-01T00:00:00Z",
"created_by": "System"
}授权
由 UQPAY 提供的登录 API Token。
路径参数
资源的通用唯一标识符(UUID v4)。
示例:
"b3d9d2d5-4c12-4946-a09d-953e82sed2b0"
响应
200 - application/json
成功获取转账。
转账交易的唯一 UUID 标识符。
示例:
"94d48e21-0a99-480c-b1b7-2e6d34e6eb67"
系统生成的用于标识该实体的编号。
示例:
"P220406-LLCVLRM"
系统生成的用于标识该实体的短编号。
示例:
"P220406-LLCVLRM"
转出资金的账户名称。
示例:
"UQPAY SOURCE"
接收转入资金的账户名称。
示例:
"UQPAY DEST"
转账的金额。
示例:
"1000"
表示该转账交易的当前状态。有效值为:
completed:表示该转账交易已成功完成。failed:表示该转账交易已失败。
可用选项:
completed, failed 示例:
"pending"
请求在系统中发起时的时间戳。
示例:
"2024-04-02T10:27:08+08:00"
请求成功处理并标记为 COMPLETED 时的时间戳。
示例:
"0001-01-01T00:00:00Z"
发起该转账的用户或系统的标识符。
示例:
"System"

