Retrieve Bank Account
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount/{id} \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount/{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/v2/payment/bankaccount/{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/v2/payment/bankaccount/{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/v2/payment/bankaccount/{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/v2/payment/bankaccount/{id}")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount/{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{
"id": "e9b02497-17e1-4374-80ce-c87ee30ff1bf",
"account_name": "UQPAY PTE LTD",
"currency": "HKD",
"account_number": "7016771281488015",
"bank_name": "DBS Bank",
"swift_code": "DBSSSGSG",
"bank_country_code": "SG",
"bank_address": "Sandbox contract test updated",
"account_status": "Valid",
"bank_branch_code": "",
"bank_code_value": "",
"bank_code_type": ""
}Bank Accounts
Retrieve Bank Account
通过 ID 查询结算银行账户。使用返回的银行信息识别接收结算出款的账户。
GET
/
v2
/
payment
/
bankaccount
/
{id}
Retrieve Bank Account
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount/{id} \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount/{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/v2/payment/bankaccount/{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/v2/payment/bankaccount/{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/v2/payment/bankaccount/{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/v2/payment/bankaccount/{id}")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount/{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{
"id": "e9b02497-17e1-4374-80ce-c87ee30ff1bf",
"account_name": "UQPAY PTE LTD",
"currency": "HKD",
"account_number": "7016771281488015",
"bank_name": "DBS Bank",
"swift_code": "DBSSSGSG",
"bank_country_code": "SG",
"bank_address": "Sandbox contract test updated",
"account_status": "Valid",
"bank_branch_code": "",
"bank_code_value": "",
"bank_code_type": ""
}授权
UQPAY 提供的登录 API Token。
请求头
指定代表哪个子账户发起该请求。应设置为 account_id,可通过 List Connected Accounts 获取。若省略或为空,则使用主账户执行请求。
更多信息见 Connected Accounts。
路径参数
银行账户的唯一标识符(UUID)。
示例:
"a7b92a19-bfc3-4c8b-8a4f-cfcf74cab345"
响应
200 - application/json
成功获取银行账户
请求与响应之间共享的通用银行账户属性。
银行账号(例如 IBAN)。
Required string length:
5 - 60示例:
"GB71950018692652646598"
银行名称。
示例:
"DBS Bank"
银行的 SWIFT/BIC 代码。
Required string length:
8 - 11示例:
"DBSSSGSG"
银行所在国家的两字母代码(ISO 3166-1 alpha-2)。
Required string length:
2示例:
"SG"
银行的实际地址。
示例:
"12 Marina Boulevard, Singapore 018982"
银行标识值。所需格式取决于所选的
bank_code_type。
各 bank_code_type 接受的格式:
aba:恰好 9 位数字。bank_code:恰好 3 位数字。sort_code:恰好 6 位数字。bsb_code:恰好 6 位数字。ifsc:恰好 11 个字符,格式为:- 前 4 个字符:字母(A–Z)
- 第 5 个字符:数字 0
- 后 6 个字符:字母(A–Z)或数字(0–9)
cnaps_number:恰好 12 位数字。
示例:
"021000021"
银行分行代码。当 currency = "CAD" 时必填。
示例:
"00001"
银行路由代码类型。空字符串表示未提供路由代码类型。
可用选项:
aba, bank_code, sort_code, bsb_code, ifsc, cnaps_number 示例:
"aba"
银行账户的唯一标识符(UUID)。
示例:
"a7b92a19-bfc3-4c8b-8a4f-cfcf74cab345"
账户持有人姓名。
示例:
"UQPAY PTE. LTD."
结算账户的币种。
示例:
"SGD"
银行账户的状态。
Valid:银行账户有效,可用于结算。Invalid:银行账户无效,不可用于结算。
可用选项:
Valid, Invalid 示例:
"Valid"

