List Issuing Balances Transactions
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/balances/transactions \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/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/issuing/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/issuing/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/issuing/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/issuing/balances/transactions")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/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": 1,
"total_items": 10,
"data": [
{
"transaction_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"short_transaction_id": "CT2024-03-01",
"account_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"balance_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"transaction_type": "DEPOSIT",
"currency": "USD",
"amount": "100.02",
"create_time": "2024-03-21T17:17:32+08:00",
"complete_time": "2024-03-21T17:17:32+08:00",
"transaction_status": "PENDING",
"ending_balance": "100.02",
"description": "Creation card, fee"
}
]
}Balances
List Issuing Balances Transactions
返回构成发卡账户余额变动的交易列表(如扣款、手续费等)。
GET
/
v1
/
issuing
/
balances
/
transactions
List Issuing Balances Transactions
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/balances/transactions \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/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/issuing/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/issuing/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/issuing/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/issuing/balances/transactions")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/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": 1,
"total_items": 10,
"data": [
{
"transaction_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"short_transaction_id": "CT2024-03-01",
"account_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"balance_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"transaction_type": "DEPOSIT",
"currency": "USD",
"amount": "100.02",
"create_time": "2024-03-21T17:17:32+08:00",
"complete_time": "2024-03-21T17:17:32+08:00",
"transaction_status": "PENDING",
"ending_balance": "100.02",
"description": "Creation card, fee"
}
]
}授权
由 UQPAY 提供的登录 API Token。
请求头
指定代表哪个子账户发起请求。应设置为 account_id,该值可通过 List Connected Accounts 接口获取。若省略或为空,则请求以主账户身份执行。
更多信息参见 关联账户。
查询参数
每页返回的最大条目数。取值范围为 10 - 100,默认为 10。
必填范围:
10 <= x <= 100用于获取下一组条目的页码。取值必须大于 1,默认为 1。
必填范围:
x >= 1用于筛选的最早交易创建时间。start_time 与 end_time 之间的最大时间间隔为 90 天。
示例:
"2024-03-21T17:17:32+08:00"
用于筛选的最晚交易创建时间。start_time 与 end_time 之间的最大时间间隔为 90 天。
示例:
"2024-03-21T17:17:32+08:00"
发卡账户余额交易的交易类型筛选。
可用选项:
ISSUING_AUTHORIZATION, ISSUING_REVERSAL, ISSUING_REFUND, CARD_RECHARGE, CARD_WITHDRAW, FEE, DEPOSIT, TRANSFER_IN, TRANSFER_OUT, SETTLEMENT_DEBIT, SETTLEMENT_CREDIT, ADJUSTMENT, FUNDS_TRANSFER_IN, FUNDS_TRANSFER_OUT, FEE_REFUND, FEE_DEDUCTION, MARGIN_PAYMENT, MARGIN_REFUND, OTHER, SETTLEMENT_REVERSAL, REFUND 示例:
"DEPOSIT"
发卡账户余额交易的交易状态筛选。
可用选项:
COMPLETED, PENDING, FAILED 示例:
"COMPLETED"
币种筛选。三位 ISO 4217 货币代码。
示例:
"USD"
交易 ID 筛选(长 ID)。 交易的唯一标识符。
示例:
"5135e6cc-28b6-4889-81dc-3b86a09e1395"

