List all Bank Accounts
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount"
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', 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",
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"
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")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount")
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{
"data": [
{
"id": "4438e9dd-9b44-4be5-b10f-f667d47bb5ab",
"account_name": "UQPAY PTE LTD",
"currency": "USD",
"account_number": "1234567890",
"bank_name": "DBS Bank Ltd",
"swift_code": "DBSSSGSG",
"bank_country_code": "SG",
"bank_address": "2 Updated Street, Singapore",
"account_status": "Valid",
"bank_branch_code": "00001",
"bank_code_value": "021000021",
"bank_code_type": "aba"
},
{
"id": "d721cd2e-f7f8-49fd-9c9f-19ac268badc8",
"account_name": "UQPAY PTE LTD",
"currency": "SGD",
"account_number": "GB71950018692652646598",
"bank_name": "DBS Bank",
"swift_code": "DBSSSGSG",
"bank_country_code": "SG",
"bank_address": "12 Marina Boulevard, Singapore 018982",
"account_status": "Valid",
"bank_branch_code": "",
"bank_code_value": "",
"bank_code_type": ""
}
],
"total_items": 2,
"total_pages": 1
}Bank Accounts
List all Bank Accounts
分页查询结算银行账户。使用返回的银行账户 ID 查询或更新该账户。
GET
/
v2
/
payment
/
bankaccount
List all Bank Accounts
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount"
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', 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",
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"
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")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v2/payment/bankaccount")
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{
"data": [
{
"id": "4438e9dd-9b44-4be5-b10f-f667d47bb5ab",
"account_name": "UQPAY PTE LTD",
"currency": "USD",
"account_number": "1234567890",
"bank_name": "DBS Bank Ltd",
"swift_code": "DBSSSGSG",
"bank_country_code": "SG",
"bank_address": "2 Updated Street, Singapore",
"account_status": "Valid",
"bank_branch_code": "00001",
"bank_code_value": "021000021",
"bank_code_type": "aba"
},
{
"id": "d721cd2e-f7f8-49fd-9c9f-19ac268badc8",
"account_name": "UQPAY PTE LTD",
"currency": "SGD",
"account_number": "GB71950018692652646598",
"bank_name": "DBS Bank",
"swift_code": "DBSSSGSG",
"bank_country_code": "SG",
"bank_address": "12 Marina Boulevard, Singapore 018982",
"account_status": "Valid",
"bank_branch_code": "",
"bank_code_value": "",
"bank_code_type": ""
}
],
"total_items": 2,
"total_pages": 1
}授权
UQPAY 提供的登录 API Token。
请求头
指定代表哪个子账户发起该请求。应设置为 account_id,可通过 List Connected Accounts 获取。若省略或为空,则使用主账户执行请求。
更多信息见 Connected Accounts。
查询参数
要查询的页码,从 1 开始。
必填范围:
x >= 1示例:
1
每页返回的最大条目数,取值范围 1 - 100。
必填范围:
1 <= x <= 100示例:
10

