List Balances Transactions
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/balances/transactions \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/balances/transactions"
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/balances/transactions', 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/balances/transactions",
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/balances/transactions"
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/balances/transactions")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/balances/transactions")
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{
"total_pages": 10,
"total_items": 105,
"data": [
{
"transaction_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"account_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"balance_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"transaction_type": "DEPOSIT",
"currency": "USD",
"amount": "100.02",
"credit_debit_type": "C",
"create_time": "2024-03-01T00:00:00+08:00",
"complete_time": "2024-03-01T00:00:00+08:00",
"reference_id": "b52aaed6-1274-41b8-999e-f036085a6da8",
"transaction_status": "PENDING",
"transaction_way": "API"
}
]
}Balances
List Balances Transactions
返回影响你账户余额的交易列表,包括扣款、手续费及其他调整。你可以通过指定时间范围来筛选结果。如果未提供时间范围,或仅指定结束日期,返回结果将包含截至今天或指定结束日期前 30 天内的交易。
GET
/
v1
/
balances
/
transactions
List Balances Transactions
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/balances/transactions \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/balances/transactions"
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/balances/transactions', 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/balances/transactions",
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/balances/transactions"
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/balances/transactions")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/balances/transactions")
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{
"total_pages": 10,
"total_items": 105,
"data": [
{
"transaction_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"account_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"balance_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"transaction_type": "DEPOSIT",
"currency": "USD",
"amount": "100.02",
"credit_debit_type": "C",
"create_time": "2024-03-01T00:00:00+08:00",
"complete_time": "2024-03-01T00:00:00+08:00",
"reference_id": "b52aaed6-1274-41b8-999e-f036085a6da8",
"transaction_status": "PENDING",
"transaction_way": "API"
}
]
}授权
由 UQPAY 提供的登录 API Token。
查询参数
每页返回的最大条目数。必须在 10 到 100 之间(含)。
必填范围:
1 <= x <= 100示例:
10
用于获取特定一组条目的页码。必须 大于等于 1。
必填范围:
x >= 1示例:
1
created_time 的开始时间,ISO8601 格式(含)。
示例:
"2024-03-01T00:00:00+08:00"
created_time 的结束时间,ISO8601 格式(含)。
示例:
"2024-03-01T00:00:00+08:00"
交易类型。
ALL:包括系统中所有类型的资金交易。PAYIN:从外部来源收到的入款。DEPOSIT:通过银行转账或其他方式直接存入账户的资金。PAYOUT:发往外部受益人的出款。TRANSFER:内部账户之间的资金划转。CONVERSION:不同币种之间的换汇。FEE:服务费或交易手续费。REFUND:对先前付款或交易的退款。ADJUSTMENT:对账户余额的人工或自动校正。INVOICE:发票交易。
可用选项:
ALL, PAYIN, DEPOSIT, PAYOUT, TRANSFER, CONVERSION, FEE, REFUND, ADJUSTMENT, INVOICE 示例:
"PAYOUT"
交易状态。
ALL:表示所有可能的交易状态。COMPLETED:交易已成功处理并完结。PENDING:交易正在处理中,等待完成。FAILED:交易因错误或被拒绝而无法完成。
可用选项:
ALL, COMPLETED, PENDING, FAILED 示例:
"COMPLETED"

