curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/transactions \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/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/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/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/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/transactions")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/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": [
{
"card_id": "c0cef051-29c5-4796-b86a-cd5b684bfad7",
"card_number": "************5668",
"cardholder_id": "7c4ff2cd-1bf6-4aaa-bf16-266771425011",
"transaction_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"short_transaction_id": "CT2024-03-01",
"original_transaction_id": "1234e6cc-28b6-4889-81dc-3b86a09e1395",
"transaction_type": "AUTHORIZATION",
"transaction_fee": 0.25,
"transaction_fee_currency": "SGD",
"fee_pass_through": "Y",
"card_available_balance": 2506.26,
"authorization_code": 856268,
"billing_amount": 70.25,
"billing_currency": "SGD",
"transaction_amount": 100.25,
"transaction_currency": "USD",
"transaction_time": "2024-03-21T17:17:32+08:00",
"description": "1107 - Invalid CVV2",
"transaction_status": "DECLINED",
"posted_time": "2024-03-21T17:17:32+08:00",
"merchant_data": {
"category_code": "6011",
"city": "CITY NAME",
"country": "CN",
"name": "ACQUIRER NAME"
},
"wallet_type": "ApplePay"
}
]
}List Cards Transactions
返回签发交易对象的列表。对象按创建时间降序排列,最近创建的对象排在最前。
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/transactions \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/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/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/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/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/transactions")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/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": [
{
"card_id": "c0cef051-29c5-4796-b86a-cd5b684bfad7",
"card_number": "************5668",
"cardholder_id": "7c4ff2cd-1bf6-4aaa-bf16-266771425011",
"transaction_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"short_transaction_id": "CT2024-03-01",
"original_transaction_id": "1234e6cc-28b6-4889-81dc-3b86a09e1395",
"transaction_type": "AUTHORIZATION",
"transaction_fee": 0.25,
"transaction_fee_currency": "SGD",
"fee_pass_through": "Y",
"card_available_balance": 2506.26,
"authorization_code": 856268,
"billing_amount": 70.25,
"billing_currency": "SGD",
"transaction_amount": 100.25,
"transaction_currency": "USD",
"transaction_time": "2024-03-21T17:17:32+08:00",
"description": "1107 - Invalid CVV2",
"transaction_status": "DECLINED",
"posted_time": "2024-03-21T17:17:32+08:00",
"merchant_data": {
"category_code": "6011",
"city": "CITY NAME",
"country": "CN",
"name": "ACQUIRER NAME"
},
"wallet_type": "ApplePay"
}
]
}授权
由 UQPAY 提供的登录 API Token。
请求头
指定代表哪个子账户发起请求。应设置为 account_id,该值可通过 List Connected Accounts 接口获取。若省略或为空,则请求以主账户身份执行。
更多信息参见 关联账户。
查询参数
每页返回的最大条目数。取值范围为 10 - 100,默认为 10。
10 <= x <= 100用于获取下一组条目的页码。取值必须大于 1,默认为 1。
x >= 1卡片的全局唯一标识符(UUID v4)。
"b3d9d2d5-4c12-4946-a09d-953e82sed2b0"
用于筛选的最早交易创建时间,ISO 8601 格式。start_time 与 end_time 之间的最大时间间隔为 90 天。
当取值包含时区偏移(如 +08:00)时,查询字符串中的 + 字符必须 URL 编码为 %2B——否则服务端会将其解析为空格并拒绝请求。示例:start_time=2024-03-21T17:17:32%2B08:00。以 Z 结尾的 UTC 取值(如 2024-03-21T09:17:32Z)无需编码。
"2024-03-21T09:17:32Z"
用于筛选的最晚交易创建时间,ISO 8601 格式。start_time 与 end_time 之间的最大时间间隔为 90 天。
当取值包含时区偏移(如 +08:00)时,查询字符串中的 + 字符必须 URL 编码为 %2B——否则服务端会将其解析为空格并拒绝请求。示例:end_time=2024-03-21T17:17:32%2B08:00。以 Z 结尾的 UTC 取值(如 2024-03-21T09:17:32Z)无需编码。
"2024-03-21T09:17:32Z"

