List Connected Accounts
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/accounts \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/accounts"
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/accounts', 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/accounts",
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/accounts"
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/accounts")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/accounts")
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{
"total_pages": 1,
"total_items": 10,
"data": [
{
"account_id": "f5bb6498-552e-40a5-b14b-616aa04ac1c1",
"short_reference_id": "P220406-LLCVLRM",
"business_code": [
"BANKING"
],
"email": "example@company.com",
"account_name": "UQPAY PTE LTD.",
"status": "PROCESSING",
"verification_status": "APPROVED",
"country": "US",
"contact_details": {
"email": "example@company.com",
"phone": "+6588880000"
},
"business_details": {
"legal_entity_name_english": "UQPAY PTE LTD.",
"incorporation_date": "2013-04-15",
"registration_number": "201901754K",
"business_structure": "SOLE_PROPRIETOR",
"product_description": "Design and produce high-tech wireless headphones.",
"merchant_category_code": "5733",
"estimated_worker_count": "BS001",
"monthly_estimated_revenue": {
"amount": "TM001",
"currency": "SGD"
},
"account_purpose": [
"PAYOUT"
],
"legal_entity_name": "ソフトバンクインターナショナル株式会社",
"identifier": {
"type": "VAT",
"number": "XXX-XX-XXXX"
},
"website_url": "https://yourcompany.com"
}
}
]
}Accounts
List Connected Accounts
返回与你的主账户关联的子账户分页列表。如果尚未创建任何子账户,则列表为空。关于主账户/子账户模型以及 x-on-behalf-of 用法,参见关联账户。
GET
/
v1
/
accounts
List Connected Accounts
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/accounts \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/accounts"
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/accounts', 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/accounts",
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/accounts"
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/accounts")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/accounts")
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{
"total_pages": 1,
"total_items": 10,
"data": [
{
"account_id": "f5bb6498-552e-40a5-b14b-616aa04ac1c1",
"short_reference_id": "P220406-LLCVLRM",
"business_code": [
"BANKING"
],
"email": "example@company.com",
"account_name": "UQPAY PTE LTD.",
"status": "PROCESSING",
"verification_status": "APPROVED",
"country": "US",
"contact_details": {
"email": "example@company.com",
"phone": "+6588880000"
},
"business_details": {
"legal_entity_name_english": "UQPAY PTE LTD.",
"incorporation_date": "2013-04-15",
"registration_number": "201901754K",
"business_structure": "SOLE_PROPRIETOR",
"product_description": "Design and produce high-tech wireless headphones.",
"merchant_category_code": "5733",
"estimated_worker_count": "BS001",
"monthly_estimated_revenue": {
"amount": "TM001",
"currency": "SGD"
},
"account_purpose": [
"PAYOUT"
],
"legal_entity_name": "ソフトバンクインターナショナル株式会社",
"identifier": {
"type": "VAT",
"number": "XXX-XX-XXXX"
},
"website_url": "https://yourcompany.com"
}
}
]
}授权
由 UQPAY 提供的登录 API Token。
查询参数
每页返回的最大条目数。该数值可介于 10 - 100 之间,默认为 10。
必填范围:
x >= 1示例:
10
用于获取下一批条目的页码。该数值必须大于 1,默认为 1。
必填范围:
x >= 1示例:
1
⌘I

