Set Default Card Art
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"card_art_id": "01KD52BKQWDMFF63R1NNQN7A79"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default"
payload = { "card_art_id": "01KD52BKQWDMFF63R1NNQN7A79" }
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({card_art_id: '01KD52BKQWDMFF63R1NNQN7A79'})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default', 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/arts/default",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'card_art_id' => '01KD52BKQWDMFF63R1NNQN7A79'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default"
payload := strings.NewReader("{\n \"card_art_id\": \"01KD52BKQWDMFF63R1NNQN7A79\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"card_art_id\": \"01KD52BKQWDMFF63R1NNQN7A79\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"card_art_id\": \"01KD52BKQWDMFF63R1NNQN7A79\"\n}"
response = http.request(request)
puts response.read_body{
"default_card_art_id": "01KD52BKQWDMFF63R1NNQN7A79",
"updated_at": "2026-05-20 10:32:18"
}Card Arts
Set Default Card Art
仅 Personal Visa
设置发卡账户的默认卡面。后续省略 card_art_id 的创建卡片请求将使用该卡面。
传入渠道的系统默认卡面会清除已设置的默认值;此后账户回退到系统默认。完整的解析顺序参见卡面。
POST
/
v1
/
issuing
/
cards
/
arts
/
default
Set Default Card Art
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"card_art_id": "01KD52BKQWDMFF63R1NNQN7A79"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default"
payload = { "card_art_id": "01KD52BKQWDMFF63R1NNQN7A79" }
headers = {
"x-auth-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-auth-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({card_art_id: '01KD52BKQWDMFF63R1NNQN7A79'})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default', 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/arts/default",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'card_art_id' => '01KD52BKQWDMFF63R1NNQN7A79'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default"
payload := strings.NewReader("{\n \"card_art_id\": \"01KD52BKQWDMFF63R1NNQN7A79\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-auth-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"card_art_id\": \"01KD52BKQWDMFF63R1NNQN7A79\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/issuing/cards/arts/default")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"card_art_id\": \"01KD52BKQWDMFF63R1NNQN7A79\"\n}"
response = http.request(request)
puts response.read_body{
"default_card_art_id": "01KD52BKQWDMFF63R1NNQN7A79",
"updated_at": "2026-05-20 10:32:18"
}授权
由 UQPay 提供的登录 API Token。
请求头
指定代表哪个子账户发起请求。应设置为 account_id,该值可通过 List Connected Accounts 接口获取。若省略或为空,则请求以主账户身份执行。
更多信息参见 关联账户。
请求体
application/json
⌘I

