List all PaymentAttempts
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment/payment_attempts \
--header 'x-auth-token: <api-key>' \
--header 'x-client-id: <x-client-id>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment/payment_attempts"
headers = {
"x-client-id": "<x-client-id>",
"x-auth-token": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-client-id': '<x-client-id>', 'x-auth-token': '<api-key>'}
};
fetch('https://api-sandbox.uqpaytech.com/api/v2/payment/payment_attempts', 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/v2/payment/payment_attempts",
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>",
"x-client-id: <x-client-id>"
],
]);
$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/v2/payment/payment_attempts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-client-id", "<x-client-id>")
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/v2/payment/payment_attempts")
.header("x-client-id", "<x-client-id>")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v2/payment/payment_attempts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-client-id"] = '<x-client-id>'
request["x-auth-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"advice_code": "",
"amount": "22.01",
"arn": "",
"attempt_id": "PA2095073282377125888",
"attempt_status": "CAPTURE_REQUESTED",
"auth_code": "",
"authentication_data": {
"cvv_result": "",
"avs_result": "",
"three_ds": {
"eci": "",
"cavv": "",
"three_ds_version": "",
"three_ds_cancellation_reason": "",
"three_ds_authentication_status": "",
"ds_transaction_id": ""
}
},
"complete_time": "2026-09-02T16:56:35+08:00",
"create_time": "2026-09-02T16:56:09+08:00",
"currency": "SGD",
"failure_code": "",
"failure_message": "",
"payment_method": {
"tng": {
"flow": "qrcode",
"is_present": false,
"os_type": ""
},
"type": "tng"
},
"refunded_amount": "0",
"rrn": "",
"update_time": "2026-09-02T16:56:35+08:00"
}
],
"total_items": 1038,
"total_pages": 1038
}Payment Attempts
List all PaymentAttempts
查看一笔支付的各次尝试,或查找处于特定状态的支付尝试。支持按 payment_intent_id 或 attempt_status 筛选,结果分页返回。
GET
/
v2
/
payment
/
payment_attempts
List all PaymentAttempts
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment/payment_attempts \
--header 'x-auth-token: <api-key>' \
--header 'x-client-id: <x-client-id>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment/payment_attempts"
headers = {
"x-client-id": "<x-client-id>",
"x-auth-token": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-client-id': '<x-client-id>', 'x-auth-token': '<api-key>'}
};
fetch('https://api-sandbox.uqpaytech.com/api/v2/payment/payment_attempts', 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/v2/payment/payment_attempts",
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>",
"x-client-id: <x-client-id>"
],
]);
$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/v2/payment/payment_attempts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-client-id", "<x-client-id>")
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/v2/payment/payment_attempts")
.header("x-client-id", "<x-client-id>")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v2/payment/payment_attempts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-client-id"] = '<x-client-id>'
request["x-auth-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"advice_code": "",
"amount": "22.01",
"arn": "",
"attempt_id": "PA2095073282377125888",
"attempt_status": "CAPTURE_REQUESTED",
"auth_code": "",
"authentication_data": {
"cvv_result": "",
"avs_result": "",
"three_ds": {
"eci": "",
"cavv": "",
"three_ds_version": "",
"three_ds_cancellation_reason": "",
"three_ds_authentication_status": "",
"ds_transaction_id": ""
}
},
"complete_time": "2026-09-02T16:56:35+08:00",
"create_time": "2026-09-02T16:56:09+08:00",
"currency": "SGD",
"failure_code": "",
"failure_message": "",
"payment_method": {
"tng": {
"flow": "qrcode",
"is_present": false,
"os_type": ""
},
"type": "tng"
},
"refunded_amount": "0",
"rrn": "",
"update_time": "2026-09-02T16:56:35+08:00"
}
],
"total_items": 1038,
"total_pages": 1038
}授权
UQPAY 提供的登录 API Token。
请求头
UQPAY 生成的 API 客户端 ID
查询参数
每页返回的最大条目数,取值范围 1 - 100。
必填范围:
1 <= x <= 100示例:
10
要查询的页码,从 1 开始。
必填范围:
x >= 1示例:
1
按 PaymentIntent ID 筛选 PaymentAttempt
示例:
"PI1234567890123456789"
按状态筛选 PaymentAttempt。
INITIATED:根据初始请求创建。AUTHENTICATION_REDIRECTED:等待客户身份验证。PENDING_AUTHORIZATION:等待支付渠道的最终决定。AUTHORIZED:授权成功完成。CAPTURE_REQUESTED:已提交请款,支付视为完成。SETTLED:资金已由支付渠道结算并由 UQPAY 收到。SUCCEEDED:UQPAY 已将资金结算到你的钱包。CANCELLED:PaymentAttempt 已取消。EXPIRED:未在允许的时间窗口内完成。FAILED:PaymentAttempt 失败。
可用选项:
INITIATED, AUTHENTICATION_REDIRECTED, PENDING_AUTHORIZATION, AUTHORIZED, CAPTURE_REQUESTED, SETTLED, SUCCEEDED, CANCELLED, EXPIRED, FAILED 示例:
"INITIATED"

