Create Account
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/accounts \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"entity_type": "INDIVIDUAL",
"name": "John Doe",
"contact_details": {
"email": "example@company.com",
"phone": "+6588880000"
},
"person_details": {
"first_name_english": "John",
"last_name_english": "Doe",
"nationality": "US",
"date_of_birth": "1990-01-01",
"banking_currencies": [
"USD"
],
"banking_countries": [
"US"
],
"monthly_estimated_revenue": {
"amount": "TM001",
"currency": "SGD"
},
"account_purpose": [],
"identification": {
"type": "PASSPORT",
"id_number": "A12345678",
"documents": {
"front": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"front_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"back": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"back_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395"
},
"remark": "Valid until 2030",
"citizenship_status": "non_resident"
},
"first_name": "三",
"last_name": "张",
"local_name": "张三",
"tax_number": "123-45-6789",
"other_purpose": "<string>"
},
"residential_address": {
"city": "Singapore",
"country": "SG",
"line1": "9 N Buona Vista Dr",
"state": "SG",
"postal_code": "138666",
"line2": "THE METROPOLIS"
},
"documents": [
{
"type": "PROOF_OF_ADDRESS",
"front": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"front_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"back": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"back_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395"
}
],
"tos_acceptance": {
"ip": "0.0.0.0",
"date": "2024-03-22T16:08:02+08:00",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0"
}
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/accounts"
payload = {
"entity_type": "INDIVIDUAL",
"name": "John Doe",
"contact_details": {
"email": "example@company.com",
"phone": "+6588880000"
},
"person_details": {
"first_name_english": "John",
"last_name_english": "Doe",
"nationality": "US",
"date_of_birth": "1990-01-01",
"banking_currencies": ["USD"],
"banking_countries": ["US"],
"monthly_estimated_revenue": {
"amount": "TM001",
"currency": "SGD"
},
"account_purpose": [],
"identification": {
"type": "PASSPORT",
"id_number": "A12345678",
"documents": {
"front": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"front_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"back": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"back_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395"
},
"remark": "Valid until 2030",
"citizenship_status": "non_resident"
},
"first_name": "三",
"last_name": "张",
"local_name": "张三",
"tax_number": "123-45-6789",
"other_purpose": "<string>"
},
"residential_address": {
"city": "Singapore",
"country": "SG",
"line1": "9 N Buona Vista Dr",
"state": "SG",
"postal_code": "138666",
"line2": "THE METROPOLIS"
},
"documents": [
{
"type": "PROOF_OF_ADDRESS",
"front": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"front_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"back": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"back_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395"
}
],
"tos_acceptance": {
"ip": "0.0.0.0",
"date": "2024-03-22T16:08:02+08:00",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0"
}
}
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({
entity_type: 'INDIVIDUAL',
name: 'John Doe',
contact_details: {email: 'example@company.com', phone: '+6588880000'},
person_details: {
first_name_english: 'John',
last_name_english: 'Doe',
nationality: 'US',
date_of_birth: '1990-01-01',
banking_currencies: ['USD'],
banking_countries: ['US'],
monthly_estimated_revenue: {amount: 'TM001', currency: 'SGD'},
account_purpose: [],
identification: {
type: 'PASSPORT',
id_number: 'A12345678',
documents: {
front: 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
front_file_id: '5135e6cc-28b6-4889-81dc-3b86a09e1395',
back: 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
back_file_id: '5135e6cc-28b6-4889-81dc-3b86a09e1395'
},
remark: 'Valid until 2030',
citizenship_status: 'non_resident'
},
first_name: '三',
last_name: '张',
local_name: '张三',
tax_number: '123-45-6789',
other_purpose: '<string>'
},
residential_address: {
city: 'Singapore',
country: 'SG',
line1: '9 N Buona Vista Dr',
state: 'SG',
postal_code: '138666',
line2: 'THE METROPOLIS'
},
documents: [
{
type: 'PROOF_OF_ADDRESS',
front: 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
front_file_id: '5135e6cc-28b6-4889-81dc-3b86a09e1395',
back: 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
back_file_id: '5135e6cc-28b6-4889-81dc-3b86a09e1395'
}
],
tos_acceptance: {
ip: '0.0.0.0',
date: '2024-03-22T16:08:02+08:00',
user_agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0'
}
})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entity_type' => 'INDIVIDUAL',
'name' => 'John Doe',
'contact_details' => [
'email' => 'example@company.com',
'phone' => '+6588880000'
],
'person_details' => [
'first_name_english' => 'John',
'last_name_english' => 'Doe',
'nationality' => 'US',
'date_of_birth' => '1990-01-01',
'banking_currencies' => [
'USD'
],
'banking_countries' => [
'US'
],
'monthly_estimated_revenue' => [
'amount' => 'TM001',
'currency' => 'SGD'
],
'account_purpose' => [
],
'identification' => [
'type' => 'PASSPORT',
'id_number' => 'A12345678',
'documents' => [
'front' => 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
'front_file_id' => '5135e6cc-28b6-4889-81dc-3b86a09e1395',
'back' => 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
'back_file_id' => '5135e6cc-28b6-4889-81dc-3b86a09e1395'
],
'remark' => 'Valid until 2030',
'citizenship_status' => 'non_resident'
],
'first_name' => '三',
'last_name' => '张',
'local_name' => '张三',
'tax_number' => '123-45-6789',
'other_purpose' => '<string>'
],
'residential_address' => [
'city' => 'Singapore',
'country' => 'SG',
'line1' => '9 N Buona Vista Dr',
'state' => 'SG',
'postal_code' => '138666',
'line2' => 'THE METROPOLIS'
],
'documents' => [
[
'type' => 'PROOF_OF_ADDRESS',
'front' => 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
'front_file_id' => '5135e6cc-28b6-4889-81dc-3b86a09e1395',
'back' => 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
'back_file_id' => '5135e6cc-28b6-4889-81dc-3b86a09e1395'
]
],
'tos_acceptance' => [
'ip' => '0.0.0.0',
'date' => '2024-03-22T16:08:02+08:00',
'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0'
]
]),
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/accounts"
payload := strings.NewReader("{\n \"entity_type\": \"INDIVIDUAL\",\n \"name\": \"John Doe\",\n \"contact_details\": {\n \"email\": \"example@company.com\",\n \"phone\": \"+6588880000\"\n },\n \"person_details\": {\n \"first_name_english\": \"John\",\n \"last_name_english\": \"Doe\",\n \"nationality\": \"US\",\n \"date_of_birth\": \"1990-01-01\",\n \"banking_currencies\": [\n \"USD\"\n ],\n \"banking_countries\": [\n \"US\"\n ],\n \"monthly_estimated_revenue\": {\n \"amount\": \"TM001\",\n \"currency\": \"SGD\"\n },\n \"account_purpose\": [],\n \"identification\": {\n \"type\": \"PASSPORT\",\n \"id_number\": \"A12345678\",\n \"documents\": {\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n },\n \"remark\": \"Valid until 2030\",\n \"citizenship_status\": \"non_resident\"\n },\n \"first_name\": \"三\",\n \"last_name\": \"张\",\n \"local_name\": \"张三\",\n \"tax_number\": \"123-45-6789\",\n \"other_purpose\": \"<string>\"\n },\n \"residential_address\": {\n \"city\": \"Singapore\",\n \"country\": \"SG\",\n \"line1\": \"9 N Buona Vista Dr\",\n \"state\": \"SG\",\n \"postal_code\": \"138666\",\n \"line2\": \"THE METROPOLIS\"\n },\n \"documents\": [\n {\n \"type\": \"PROOF_OF_ADDRESS\",\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n }\n ],\n \"tos_acceptance\": {\n \"ip\": \"0.0.0.0\",\n \"date\": \"2024-03-22T16:08:02+08:00\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0\"\n }\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/accounts")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entity_type\": \"INDIVIDUAL\",\n \"name\": \"John Doe\",\n \"contact_details\": {\n \"email\": \"example@company.com\",\n \"phone\": \"+6588880000\"\n },\n \"person_details\": {\n \"first_name_english\": \"John\",\n \"last_name_english\": \"Doe\",\n \"nationality\": \"US\",\n \"date_of_birth\": \"1990-01-01\",\n \"banking_currencies\": [\n \"USD\"\n ],\n \"banking_countries\": [\n \"US\"\n ],\n \"monthly_estimated_revenue\": {\n \"amount\": \"TM001\",\n \"currency\": \"SGD\"\n },\n \"account_purpose\": [],\n \"identification\": {\n \"type\": \"PASSPORT\",\n \"id_number\": \"A12345678\",\n \"documents\": {\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n },\n \"remark\": \"Valid until 2030\",\n \"citizenship_status\": \"non_resident\"\n },\n \"first_name\": \"三\",\n \"last_name\": \"张\",\n \"local_name\": \"张三\",\n \"tax_number\": \"123-45-6789\",\n \"other_purpose\": \"<string>\"\n },\n \"residential_address\": {\n \"city\": \"Singapore\",\n \"country\": \"SG\",\n \"line1\": \"9 N Buona Vista Dr\",\n \"state\": \"SG\",\n \"postal_code\": \"138666\",\n \"line2\": \"THE METROPOLIS\"\n },\n \"documents\": [\n {\n \"type\": \"PROOF_OF_ADDRESS\",\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n }\n ],\n \"tos_acceptance\": {\n \"ip\": \"0.0.0.0\",\n \"date\": \"2024-03-22T16:08:02+08:00\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0\"\n }\n}")
.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::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity_type\": \"INDIVIDUAL\",\n \"name\": \"John Doe\",\n \"contact_details\": {\n \"email\": \"example@company.com\",\n \"phone\": \"+6588880000\"\n },\n \"person_details\": {\n \"first_name_english\": \"John\",\n \"last_name_english\": \"Doe\",\n \"nationality\": \"US\",\n \"date_of_birth\": \"1990-01-01\",\n \"banking_currencies\": [\n \"USD\"\n ],\n \"banking_countries\": [\n \"US\"\n ],\n \"monthly_estimated_revenue\": {\n \"amount\": \"TM001\",\n \"currency\": \"SGD\"\n },\n \"account_purpose\": [],\n \"identification\": {\n \"type\": \"PASSPORT\",\n \"id_number\": \"A12345678\",\n \"documents\": {\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n },\n \"remark\": \"Valid until 2030\",\n \"citizenship_status\": \"non_resident\"\n },\n \"first_name\": \"三\",\n \"last_name\": \"张\",\n \"local_name\": \"张三\",\n \"tax_number\": \"123-45-6789\",\n \"other_purpose\": \"<string>\"\n },\n \"residential_address\": {\n \"city\": \"Singapore\",\n \"country\": \"SG\",\n \"line1\": \"9 N Buona Vista Dr\",\n \"state\": \"SG\",\n \"postal_code\": \"138666\",\n \"line2\": \"THE METROPOLIS\"\n },\n \"documents\": [\n {\n \"type\": \"PROOF_OF_ADDRESS\",\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n }\n ],\n \"tos_acceptance\": {\n \"ip\": \"0.0.0.0\",\n \"date\": \"2024-03-22T16:08:02+08:00\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0\"\n }\n}"
response = http.request(request)
puts response.read_body{
"account_id": "f5bb6498-552e-40a5-b14b-616aa04ac1c1",
"short_reference_id": "P220406-LLCVLRM",
"status": "PROCESSING",
"verification_status": "APPROVED"
}Accounts
Create Account
此接口已不再维护。 保留它仅为支持现有客户。新接入请改用 创建子账户。
创建账户,使其可以开始收款。账户创建后,我们将进行尽职调查。 请注意,目前此 API 仅适用于 Banking 账户。
POST
/
v1
/
accounts
Create Account
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/accounts \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '
{
"entity_type": "INDIVIDUAL",
"name": "John Doe",
"contact_details": {
"email": "example@company.com",
"phone": "+6588880000"
},
"person_details": {
"first_name_english": "John",
"last_name_english": "Doe",
"nationality": "US",
"date_of_birth": "1990-01-01",
"banking_currencies": [
"USD"
],
"banking_countries": [
"US"
],
"monthly_estimated_revenue": {
"amount": "TM001",
"currency": "SGD"
},
"account_purpose": [],
"identification": {
"type": "PASSPORT",
"id_number": "A12345678",
"documents": {
"front": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"front_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"back": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"back_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395"
},
"remark": "Valid until 2030",
"citizenship_status": "non_resident"
},
"first_name": "三",
"last_name": "张",
"local_name": "张三",
"tax_number": "123-45-6789",
"other_purpose": "<string>"
},
"residential_address": {
"city": "Singapore",
"country": "SG",
"line1": "9 N Buona Vista Dr",
"state": "SG",
"postal_code": "138666",
"line2": "THE METROPOLIS"
},
"documents": [
{
"type": "PROOF_OF_ADDRESS",
"front": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"front_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"back": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"back_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395"
}
],
"tos_acceptance": {
"ip": "0.0.0.0",
"date": "2024-03-22T16:08:02+08:00",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0"
}
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/accounts"
payload = {
"entity_type": "INDIVIDUAL",
"name": "John Doe",
"contact_details": {
"email": "example@company.com",
"phone": "+6588880000"
},
"person_details": {
"first_name_english": "John",
"last_name_english": "Doe",
"nationality": "US",
"date_of_birth": "1990-01-01",
"banking_currencies": ["USD"],
"banking_countries": ["US"],
"monthly_estimated_revenue": {
"amount": "TM001",
"currency": "SGD"
},
"account_purpose": [],
"identification": {
"type": "PASSPORT",
"id_number": "A12345678",
"documents": {
"front": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"front_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"back": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"back_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395"
},
"remark": "Valid until 2030",
"citizenship_status": "non_resident"
},
"first_name": "三",
"last_name": "张",
"local_name": "张三",
"tax_number": "123-45-6789",
"other_purpose": "<string>"
},
"residential_address": {
"city": "Singapore",
"country": "SG",
"line1": "9 N Buona Vista Dr",
"state": "SG",
"postal_code": "138666",
"line2": "THE METROPOLIS"
},
"documents": [
{
"type": "PROOF_OF_ADDRESS",
"front": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"front_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395",
"back": "data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=",
"back_file_id": "5135e6cc-28b6-4889-81dc-3b86a09e1395"
}
],
"tos_acceptance": {
"ip": "0.0.0.0",
"date": "2024-03-22T16:08:02+08:00",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0"
}
}
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({
entity_type: 'INDIVIDUAL',
name: 'John Doe',
contact_details: {email: 'example@company.com', phone: '+6588880000'},
person_details: {
first_name_english: 'John',
last_name_english: 'Doe',
nationality: 'US',
date_of_birth: '1990-01-01',
banking_currencies: ['USD'],
banking_countries: ['US'],
monthly_estimated_revenue: {amount: 'TM001', currency: 'SGD'},
account_purpose: [],
identification: {
type: 'PASSPORT',
id_number: 'A12345678',
documents: {
front: 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
front_file_id: '5135e6cc-28b6-4889-81dc-3b86a09e1395',
back: 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
back_file_id: '5135e6cc-28b6-4889-81dc-3b86a09e1395'
},
remark: 'Valid until 2030',
citizenship_status: 'non_resident'
},
first_name: '三',
last_name: '张',
local_name: '张三',
tax_number: '123-45-6789',
other_purpose: '<string>'
},
residential_address: {
city: 'Singapore',
country: 'SG',
line1: '9 N Buona Vista Dr',
state: 'SG',
postal_code: '138666',
line2: 'THE METROPOLIS'
},
documents: [
{
type: 'PROOF_OF_ADDRESS',
front: 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
front_file_id: '5135e6cc-28b6-4889-81dc-3b86a09e1395',
back: 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
back_file_id: '5135e6cc-28b6-4889-81dc-3b86a09e1395'
}
],
tos_acceptance: {
ip: '0.0.0.0',
date: '2024-03-22T16:08:02+08:00',
user_agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0'
}
})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entity_type' => 'INDIVIDUAL',
'name' => 'John Doe',
'contact_details' => [
'email' => 'example@company.com',
'phone' => '+6588880000'
],
'person_details' => [
'first_name_english' => 'John',
'last_name_english' => 'Doe',
'nationality' => 'US',
'date_of_birth' => '1990-01-01',
'banking_currencies' => [
'USD'
],
'banking_countries' => [
'US'
],
'monthly_estimated_revenue' => [
'amount' => 'TM001',
'currency' => 'SGD'
],
'account_purpose' => [
],
'identification' => [
'type' => 'PASSPORT',
'id_number' => 'A12345678',
'documents' => [
'front' => 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
'front_file_id' => '5135e6cc-28b6-4889-81dc-3b86a09e1395',
'back' => 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
'back_file_id' => '5135e6cc-28b6-4889-81dc-3b86a09e1395'
],
'remark' => 'Valid until 2030',
'citizenship_status' => 'non_resident'
],
'first_name' => '三',
'last_name' => '张',
'local_name' => '张三',
'tax_number' => '123-45-6789',
'other_purpose' => '<string>'
],
'residential_address' => [
'city' => 'Singapore',
'country' => 'SG',
'line1' => '9 N Buona Vista Dr',
'state' => 'SG',
'postal_code' => '138666',
'line2' => 'THE METROPOLIS'
],
'documents' => [
[
'type' => 'PROOF_OF_ADDRESS',
'front' => 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
'front_file_id' => '5135e6cc-28b6-4889-81dc-3b86a09e1395',
'back' => 'data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=',
'back_file_id' => '5135e6cc-28b6-4889-81dc-3b86a09e1395'
]
],
'tos_acceptance' => [
'ip' => '0.0.0.0',
'date' => '2024-03-22T16:08:02+08:00',
'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0'
]
]),
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/accounts"
payload := strings.NewReader("{\n \"entity_type\": \"INDIVIDUAL\",\n \"name\": \"John Doe\",\n \"contact_details\": {\n \"email\": \"example@company.com\",\n \"phone\": \"+6588880000\"\n },\n \"person_details\": {\n \"first_name_english\": \"John\",\n \"last_name_english\": \"Doe\",\n \"nationality\": \"US\",\n \"date_of_birth\": \"1990-01-01\",\n \"banking_currencies\": [\n \"USD\"\n ],\n \"banking_countries\": [\n \"US\"\n ],\n \"monthly_estimated_revenue\": {\n \"amount\": \"TM001\",\n \"currency\": \"SGD\"\n },\n \"account_purpose\": [],\n \"identification\": {\n \"type\": \"PASSPORT\",\n \"id_number\": \"A12345678\",\n \"documents\": {\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n },\n \"remark\": \"Valid until 2030\",\n \"citizenship_status\": \"non_resident\"\n },\n \"first_name\": \"三\",\n \"last_name\": \"张\",\n \"local_name\": \"张三\",\n \"tax_number\": \"123-45-6789\",\n \"other_purpose\": \"<string>\"\n },\n \"residential_address\": {\n \"city\": \"Singapore\",\n \"country\": \"SG\",\n \"line1\": \"9 N Buona Vista Dr\",\n \"state\": \"SG\",\n \"postal_code\": \"138666\",\n \"line2\": \"THE METROPOLIS\"\n },\n \"documents\": [\n {\n \"type\": \"PROOF_OF_ADDRESS\",\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n }\n ],\n \"tos_acceptance\": {\n \"ip\": \"0.0.0.0\",\n \"date\": \"2024-03-22T16:08:02+08:00\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0\"\n }\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/accounts")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entity_type\": \"INDIVIDUAL\",\n \"name\": \"John Doe\",\n \"contact_details\": {\n \"email\": \"example@company.com\",\n \"phone\": \"+6588880000\"\n },\n \"person_details\": {\n \"first_name_english\": \"John\",\n \"last_name_english\": \"Doe\",\n \"nationality\": \"US\",\n \"date_of_birth\": \"1990-01-01\",\n \"banking_currencies\": [\n \"USD\"\n ],\n \"banking_countries\": [\n \"US\"\n ],\n \"monthly_estimated_revenue\": {\n \"amount\": \"TM001\",\n \"currency\": \"SGD\"\n },\n \"account_purpose\": [],\n \"identification\": {\n \"type\": \"PASSPORT\",\n \"id_number\": \"A12345678\",\n \"documents\": {\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n },\n \"remark\": \"Valid until 2030\",\n \"citizenship_status\": \"non_resident\"\n },\n \"first_name\": \"三\",\n \"last_name\": \"张\",\n \"local_name\": \"张三\",\n \"tax_number\": \"123-45-6789\",\n \"other_purpose\": \"<string>\"\n },\n \"residential_address\": {\n \"city\": \"Singapore\",\n \"country\": \"SG\",\n \"line1\": \"9 N Buona Vista Dr\",\n \"state\": \"SG\",\n \"postal_code\": \"138666\",\n \"line2\": \"THE METROPOLIS\"\n },\n \"documents\": [\n {\n \"type\": \"PROOF_OF_ADDRESS\",\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n }\n ],\n \"tos_acceptance\": {\n \"ip\": \"0.0.0.0\",\n \"date\": \"2024-03-22T16:08:02+08:00\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0\"\n }\n}")
.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::Post.new(url)
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity_type\": \"INDIVIDUAL\",\n \"name\": \"John Doe\",\n \"contact_details\": {\n \"email\": \"example@company.com\",\n \"phone\": \"+6588880000\"\n },\n \"person_details\": {\n \"first_name_english\": \"John\",\n \"last_name_english\": \"Doe\",\n \"nationality\": \"US\",\n \"date_of_birth\": \"1990-01-01\",\n \"banking_currencies\": [\n \"USD\"\n ],\n \"banking_countries\": [\n \"US\"\n ],\n \"monthly_estimated_revenue\": {\n \"amount\": \"TM001\",\n \"currency\": \"SGD\"\n },\n \"account_purpose\": [],\n \"identification\": {\n \"type\": \"PASSPORT\",\n \"id_number\": \"A12345678\",\n \"documents\": {\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n },\n \"remark\": \"Valid until 2030\",\n \"citizenship_status\": \"non_resident\"\n },\n \"first_name\": \"三\",\n \"last_name\": \"张\",\n \"local_name\": \"张三\",\n \"tax_number\": \"123-45-6789\",\n \"other_purpose\": \"<string>\"\n },\n \"residential_address\": {\n \"city\": \"Singapore\",\n \"country\": \"SG\",\n \"line1\": \"9 N Buona Vista Dr\",\n \"state\": \"SG\",\n \"postal_code\": \"138666\",\n \"line2\": \"THE METROPOLIS\"\n },\n \"documents\": [\n {\n \"type\": \"PROOF_OF_ADDRESS\",\n \"front\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"front_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\",\n \"back\": \"data:image/png;base64,TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4=\",\n \"back_file_id\": \"5135e6cc-28b6-4889-81dc-3b86a09e1395\"\n }\n ],\n \"tos_acceptance\": {\n \"ip\": \"0.0.0.0\",\n \"date\": \"2024-03-22T16:08:02+08:00\",\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0\"\n }\n}"
response = http.request(request)
puts response.read_body{
"account_id": "f5bb6498-552e-40a5-b14b-616aa04ac1c1",
"short_reference_id": "P220406-LLCVLRM",
"status": "PROCESSING",
"verification_status": "APPROVED"
}授权
由 UQPAY 提供的登录 API Token。
请求体
application/json
请从以下实体类型中选择一项。
- Individual Account
- Company Account
有关申请该账户的个人的信息。此字段适用于 INDIVIDUAL。
账户类型。 此字段为必填,且必须是以下之一:
COMPANY- 为从事商业活动而设立的实体。INDIVIDUAL- 来自业务场景的单一个人。目前仅适用于 Banking。
可用选项:
COMPANY, INDIVIDUAL 示例:
"INDIVIDUAL"
昵称,在控制台中选择账户时会显示。
示例:
"John Doe"
Show child attributes
Show child attributes
个人账户持有人的个人信息。
Show child attributes
Show child attributes
Show child attributes
Show child attributes
为该个人账户提交的身份验证文件。
Show child attributes
Show child attributes
有关该账户接受 UQPAY 服务协议的详细信息。 此属性仅可针对 Custom 账户更新。
Show child attributes
Show child attributes
响应
200 - application/json
账户创建成功。
账户的唯一标识符。
示例:
"f5bb6498-552e-40a5-b14b-616aa04ac1c1"
账户的短引用 ID。
示例:
"P220406-LLCVLRM"
账户的状态。为以下之一:
- ACTIVE - 账户已激活。
- PROCESSING - 账户当前正在审核和处理中。
- INACTIVE - 账户暂时未激活
- CLOSED - 账户已关闭。
示例:
"PROCESSING"
KYC/KYB 的状态。为以下之一:
- REJECT - 账户在身份验证过程中被拒绝。
- APPROVED - 账户已通过验证且处于激活状态。
- PENDING - 账户当前正在进行身份验证。
- EXPIRED - 验证已过期。
- RETURN - 账户已被退回以进行身份验证,需要重新上传。
Webhook 说明: 在 accountStatus webhook 通知中,这两个状态
分别以 REJECTED 和 RETURNED 下发(而非 REJECT / RETURN)。
其他所有值均相同。参见
账户状态 webhook。
可用选项:
APPROVED, PENDING, REJECT, EXPIRED, RETURN 示例:
"APPROVED"
⌘I

