List all PaymentIntents
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment_intents \
--header 'x-auth-token: <api-key>' \
--header 'x-client-id: <x-client-id>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment_intents"
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_intents', 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_intents",
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_intents"
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_intents")
.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_intents")
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": [
{
"amount": "22.01",
"available_payment_method_types": null,
"cancel_time": "",
"cancellation_reason": "",
"captured_amount": "0",
"client_secret": "<client-secret>",
"complete_time": "2026-09-02T16:56:35+08:00",
"create_time": "2026-09-02T16:56:07+08:00",
"currency": "SGD",
"customer_id": "",
"description": "Order of 3 item(s)",
"intent_status": "SUCCEEDED",
"latest_payment_attempt": {
"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"
},
"merchant_order_id": "4f00dd89-369c-45f6-bfff-53ca7fcafdd3",
"metadata": null,
"next_action": {
"display_qr_code": {
"expires_at": "2026-09-02T17:26:07.895+08:00",
"qr_code": "https://global.alipay.com/281002040092tD2a1lerm0chme30E29v5O9M",
"qr_code_url": "https://api-sandbox.uqpaytech.com/api/v2/payment/qr?data=https%3A%2F%2Fglobal.alipay.com%2F281002040092tD2a1lerm0chme30E29v5O9M"
},
"type": "display_qr_code"
},
"payment_intent_id": "PI2095073274575720448",
"return_url": "uqpaysample://payment",
"update_time": "2026-09-02T16:56:35+08:00"
}
],
"total_items": 1303,
"total_pages": 1303
}Payment Intents
List all PaymentIntents
分页查询 PaymentIntent。通过 intent_status 和创建时间筛选支付,再使用返回的 payment_intent_id 查询单笔支付详情。
GET
/
v2
/
payment_intents
List all PaymentIntents
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment_intents \
--header 'x-auth-token: <api-key>' \
--header 'x-client-id: <x-client-id>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment_intents"
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_intents', 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_intents",
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_intents"
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_intents")
.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_intents")
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": [
{
"amount": "22.01",
"available_payment_method_types": null,
"cancel_time": "",
"cancellation_reason": "",
"captured_amount": "0",
"client_secret": "<client-secret>",
"complete_time": "2026-09-02T16:56:35+08:00",
"create_time": "2026-09-02T16:56:07+08:00",
"currency": "SGD",
"customer_id": "",
"description": "Order of 3 item(s)",
"intent_status": "SUCCEEDED",
"latest_payment_attempt": {
"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"
},
"merchant_order_id": "4f00dd89-369c-45f6-bfff-53ca7fcafdd3",
"metadata": null,
"next_action": {
"display_qr_code": {
"expires_at": "2026-09-02T17:26:07.895+08:00",
"qr_code": "https://global.alipay.com/281002040092tD2a1lerm0chme30E29v5O9M",
"qr_code_url": "https://api-sandbox.uqpaytech.com/api/v2/payment/qr?data=https%3A%2F%2Fglobal.alipay.com%2F281002040092tD2a1lerm0chme30E29v5O9M"
},
"type": "display_qr_code"
},
"payment_intent_id": "PI2095073274575720448",
"return_url": "uqpaysample://payment",
"update_time": "2026-09-02T16:56:35+08:00"
}
],
"total_items": 1303,
"total_pages": 1303
}授权
UQPAY 提供的登录 API Token。
请求头
指定代表哪个子账户发起该请求。应设置为 account_id,可通过 List Connected Accounts 获取。若省略或为空,则使用主账户执行请求。
更多信息见 Connected Accounts。
UQPAY 生成的 API 客户端 ID
查询参数
每页返回的最大条目数,取值范围 1 - 100。
必填范围:
1 <= x <= 100示例:
10
要查询的页码,从 1 开始。
必填范围:
x >= 1示例:
1
PaymentIntent 的状态。 该 PaymentIntent 的状态。
REQUIRES_PAYMENT_METHOD:PaymentIntent 正在等待确认请求。REQUIRES_CUSTOMER_ACTION:PaymentIntent 正在等待客户进一步的认证操作,例如 3DS 验证和扫描二维码。请查看next_action。REQUIRES_CAPTURE:PaymentIntent 正在等待你请款以完成支付。PENDING:PaymentIntent 正在等待支付渠道返回最终结果,无需进一步操作。SUCCEEDED:PaymentIntent 已成功,支付完成。CANCELLED:PaymentIntent 已按你的请求取消,支付已关闭。FAILED:PaymentIntent 已失败。PARTIALLY_CAPTURED: 部分请款的授权仍有待处理余额;不要再次提交请款。EXPIRED: 预授权已过期并释放。
可用选项:
PARTIALLY_CAPTURED, EXPIRED, REQUIRES_PAYMENT_METHOD, REQUIRES_CUSTOMER_ACTION, REQUIRES_CAPTURE, PENDING, SUCCEEDED, CANCELLED, FAILED 示例:
"SUCCEEDED"
用于按 create_time 筛选的起始时间(不含)。ISO 8601 格式。
示例:
"2024-03-01T00:00:00+08:00"
用于按 create_time 筛选的结束时间(不含)。ISO 8601 格式。
示例:
"2024-03-02T00:00:00+08:00"

