curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/{id} \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/{id}"
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/cards/{id}', 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/cards/{id}",
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/cards/{id}"
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/cards/{id}")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/{id}")
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{
"available_balance": "1759.2",
"card_bin": "40963608",
"card_currency": "SGD",
"card_id": "e3577e62-5526-4284-a5b7-f718d83654ee",
"card_limit": 2099.02,
"card_number": "************9892",
"card_product_id": "467e993f-317a-49fc-9ea0-bf49de7d1f76",
"card_scheme": "VISA",
"card_status": "ACTIVE",
"cardholder": {
"cardholder_id": "3a1d3ce4-977b-4f1d-8076-8d2dd59e942c",
"cardholder_status": "SUCCESS",
"create_time": "2025-10-11T11:52:27+08:00",
"email": "updated-1784890576736@example.com",
"first_name": "Marshall",
"last_name": "Hu"
},
"consumed_amount": "339.82",
"form_factor": "VIRTUAL",
"metadata": {
"contract_regression_run": "f9182c18-9377-4b32-ad53-18e8b1763d0b"
},
"mode_type": "SHARE",
"network_protection": {
"enabled": false,
"status": "NOT_ENROLLED"
},
"no_pin_payment_amount": "SGD",
"risk_controls": {
"allow_3ds_transactions": "Y"
},
"spending_controls": [
{
"interval": "PER_TRANSACTION",
"amount": "25948"
}
],
"update_reason": ""
}Retrieve Card
查询你此前签发的某张卡片的详细信息。响应中不返回卡片的敏感信息。
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/{id} \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/{id}"
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/cards/{id}', 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/cards/{id}",
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/cards/{id}"
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/cards/{id}")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/{id}")
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{
"available_balance": "1759.2",
"card_bin": "40963608",
"card_currency": "SGD",
"card_id": "e3577e62-5526-4284-a5b7-f718d83654ee",
"card_limit": 2099.02,
"card_number": "************9892",
"card_product_id": "467e993f-317a-49fc-9ea0-bf49de7d1f76",
"card_scheme": "VISA",
"card_status": "ACTIVE",
"cardholder": {
"cardholder_id": "3a1d3ce4-977b-4f1d-8076-8d2dd59e942c",
"cardholder_status": "SUCCESS",
"create_time": "2025-10-11T11:52:27+08:00",
"email": "updated-1784890576736@example.com",
"first_name": "Marshall",
"last_name": "Hu"
},
"consumed_amount": "339.82",
"form_factor": "VIRTUAL",
"metadata": {
"contract_regression_run": "f9182c18-9377-4b32-ad53-18e8b1763d0b"
},
"mode_type": "SHARE",
"network_protection": {
"enabled": false,
"status": "NOT_ENROLLED"
},
"no_pin_payment_amount": "SGD",
"risk_controls": {
"allow_3ds_transactions": "Y"
},
"spending_controls": [
{
"interval": "PER_TRANSACTION",
"amount": "25948"
}
],
"update_reason": ""
}授权
由 UQPAY 提供的登录 API Token。
请求头
指定代表哪个子账户发起请求。应设置为 account_id,该值可通过 List Connected Accounts 接口获取。若省略或为空,则请求以主账户身份执行。
更多信息参见 关联账户。
路径参数
资源的全局唯一标识符(UUID v4)。
"71fdb0fe-9682-457a-9361-e8868694f12f"
响应
成功获取卡片。
卡片的唯一标识符。
"c0cef051-29c5-4796-b86a-cd5b684bfad7"
卡号前缀(BIN)。
"40963608"
卡组织。
"VISA"
脱敏卡号
"************5668"
卡片形态——VIRTUAL 或 PHYSICAL,目前仅支持虚拟卡。
VIRTUAL, PHYSICAL "VIRTUAL"
模式类型枚举 - SINGLE 或 SHARE。
SINGLE- 单卡仅支持预付模式。SHARE- 共享卡可支持借记模式,即关联借记产品和账户。
SHARE, SINGLE "SHARE"
可用余额,币种参见 card_currency。
"2000.05"
Show child attributes
Show child attributes
无需 PIN 验证即可进行卡交易的允许金额,包含币种单位(如 2000USD)。此响应字段应与对应的请求参数区分开,后者指定的金额不含币种单位。
"2000USD"
卡片状态枚举。更多信息参见卡生命周期与状态指南。
PENDING:创建卡片的请求已收到,正在审核中。ACTIVE:创建卡片的请求成功,卡片可以使用。FROZEN:所有进入的授权请求都将被拒绝。卡片可以重新激活以接受新的授权。BLOCKED:因可疑活动,卡片被 UQPAY 锁定。PRE_CANCEL:卡片已被安排注销,处于等待期,期间所有进入的授权请求都将被拒绝。等待期结束后转为CANCELLED。CANCELLED:卡片无法再从此状态重新激活,所有进入的授权请求都将被永久拒绝。LOST:卡片已向 UQPAY 报失。STOLEN:卡片已向 UQPAY 报被盗。FAILED:使用 创建卡片 创建卡片的请求失败。
PENDING, ACTIVE, FROZEN, BLOCKED, PRE_CANCEL, CANCELLED, LOST, STOLEN, FAILED "ACTIVE"
卡币种。
SGD, USD, XUSD "USD"
卡产品的唯一标识符。
"3bd1656b-e691-4aab-a76a-3ead39e7a6f6"
控制该卡片消费的规则。
Show child attributes
Show child attributes
嵌入在卡片响应对象中的 ASAF Network Protection 状态。仅 Visa 卡片返回。
Show child attributes
Show child attributes
附加到卡片的元数据。未设置元数据时返回 null。
Show child attributes
Show child attributes
更新卡片状态的原因。
100反映卡限额中已使用的累计金额。
"51.00"

