查询静态码列表
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment/static_qrs/list \
--header 'x-auth-token: <api-key>' \
--header 'x-client-id: <x-client-id>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment/static_qrs/list"
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/static_qrs/list', 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/static_qrs/list",
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/static_qrs/list"
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/static_qrs/list")
.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/static_qrs/list")
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": [
{
"code_no": "<string>",
"status": "<string>",
"payment_methods": [
"ALIPAY"
],
"currency": "<string>",
"amount_mode": "FIXED",
"amount": "<string>",
"store_name": "<string>",
"city": "<string>",
"extension": "<string>",
"create_time": "2023-11-07T05:31:56Z",
"updated_time": "2023-11-07T05:31:56Z"
}
],
"total_items": 1,
"total_pages": 1
}{
"code": "<string>",
"message": "<string>",
"type": "static_qr_error"
}Static QR Codes
查询静态码列表
查询目标账户内的码。集合在 data 中返回,total_items 表示匹配的码总数,total_pages 表示总页数。
GET
/
v2
/
payment
/
static_qrs
/
list
查询静态码列表
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment/static_qrs/list \
--header 'x-auth-token: <api-key>' \
--header 'x-client-id: <x-client-id>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment/static_qrs/list"
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/static_qrs/list', 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/static_qrs/list",
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/static_qrs/list"
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/static_qrs/list")
.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/static_qrs/list")
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": [
{
"code_no": "<string>",
"status": "<string>",
"payment_methods": [
"ALIPAY"
],
"currency": "<string>",
"amount_mode": "FIXED",
"amount": "<string>",
"store_name": "<string>",
"city": "<string>",
"extension": "<string>",
"create_time": "2023-11-07T05:31:56Z",
"updated_time": "2023-11-07T05:31:56Z"
}
],
"total_items": 1,
"total_pages": 1
}{
"code": "<string>",
"message": "<string>",
"type": "static_qr_error"
}授权
UQPAY 提供的登录 API Token。
请求头
UQPAY 生成的 API 客户端 ID
要操作的已授权关联子账户。省略或传空值时使用凭证账户。同一码的所有操作应使用相同目标账户。不要将凭证账户 ID 显式作为子账户传入。
查询参数
区分大小写精确匹配,保留前导零。
Required string length:
1 - 64Pattern:
^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$仅传入一次正十进制整数,不接受空值、小数或负数。
必填范围:
x >= 1每页最多返回的码数,仅传入一次正十进制整数。
必填范围:
1 <= x <= 100按付款币种筛选。
单个支付方式,或用英文逗号分隔的 1–4 个不同值:ALIPAY、WECHAT、PAYNOW、UNIONPAY。区分大小写,不含空格。包含任意所选方式即可匹配。
创建时间下界。起止时间必须同时提供,格式为 YYYY-MM-DDTHH:mm:ss+08:00。开始须早于结束,跨度最多 30 天。时区加号需 URL 编码为 %2B。
Pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\+08:00$创建时间上界。起止时间必须同时提供,格式为 YYYY-MM-DDTHH:mm:ss+08:00。开始须早于结束,跨度最多 30 天。时区加号需 URL 编码为 %2B。
Pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\+08:00$
