Simulate Deposit Creation
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/simulation/deposit \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--header 'x-idempotency-key: <x-idempotency-key>' \
--data '
{
"account_id": "eaf28076-017b-436f-a04c-212563a1aa4f",
"amount": 1,
"currency": "NOK",
"receiver_account_number": "11020075767",
"sender_name": "UQPAY Contract Test",
"sender_country": "SG",
"sender_account_number": "1234567890",
"sender_swift_code": "DBSSSGSG"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/simulation/deposit"
payload = {
"account_id": "eaf28076-017b-436f-a04c-212563a1aa4f",
"amount": 1,
"currency": "NOK",
"receiver_account_number": "11020075767",
"sender_name": "UQPAY Contract Test",
"sender_country": "SG",
"sender_account_number": "1234567890",
"sender_swift_code": "DBSSSGSG"
}
headers = {
"x-idempotency-key": "<x-idempotency-key>",
"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-idempotency-key': '<x-idempotency-key>',
'x-auth-token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
account_id: 'eaf28076-017b-436f-a04c-212563a1aa4f',
amount: 1,
currency: 'NOK',
receiver_account_number: '11020075767',
sender_name: 'UQPAY Contract Test',
sender_country: 'SG',
sender_account_number: '1234567890',
sender_swift_code: 'DBSSSGSG'
})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/simulation/deposit', 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/simulation/deposit",
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([
'account_id' => 'eaf28076-017b-436f-a04c-212563a1aa4f',
'amount' => 1,
'currency' => 'NOK',
'receiver_account_number' => '11020075767',
'sender_name' => 'UQPAY Contract Test',
'sender_country' => 'SG',
'sender_account_number' => '1234567890',
'sender_swift_code' => 'DBSSSGSG'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <api-key>",
"x-idempotency-key: <x-idempotency-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/simulation/deposit"
payload := strings.NewReader("{\n \"account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"amount\": 1,\n \"currency\": \"NOK\",\n \"receiver_account_number\": \"11020075767\",\n \"sender_name\": \"UQPAY Contract Test\",\n \"sender_country\": \"SG\",\n \"sender_account_number\": \"1234567890\",\n \"sender_swift_code\": \"DBSSSGSG\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-idempotency-key", "<x-idempotency-key>")
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/simulation/deposit")
.header("x-idempotency-key", "<x-idempotency-key>")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"amount\": 1,\n \"currency\": \"NOK\",\n \"receiver_account_number\": \"11020075767\",\n \"sender_name\": \"UQPAY Contract Test\",\n \"sender_country\": \"SG\",\n \"sender_account_number\": \"1234567890\",\n \"sender_swift_code\": \"DBSSSGSG\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/simulation/deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-idempotency-key"] = '<x-idempotency-key>'
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"amount\": 1,\n \"currency\": \"NOK\",\n \"receiver_account_number\": \"11020075767\",\n \"sender_name\": \"UQPAY Contract Test\",\n \"sender_country\": \"SG\",\n \"sender_account_number\": \"1234567890\",\n \"sender_swift_code\": \"DBSSSGSG\"\n}"
response = http.request(request)
puts response.read_body{
"sender_bank": {
"bank_name": "",
"bank_address": ""
},
"deposit_id": "984164be-e5c9-4603-b39a-d3981eae146d",
"short_reference_id": "260909-R3OVNXNO",
"amount": "1",
"currency": "NOK",
"deposit_fee": "0",
"create_time": "2026-09-09T18:02:00.842176436+08:00",
"complete_time": "0001-01-01T00:00:00Z",
"deposit_status": "PENDING",
"receiver_account_number": "11020075767",
"deposit_reference": "",
"sender": {
"sender_name": "UQPAY Contract Test",
"sender_country": "SG",
"sender_account_number": "1234567890",
"sender_swift_code": "DBSSSGSG",
"sender_address": ""
}
}Simulate Deposit Creation
你可以使用此端点模拟向全球收款账户的充值。此功能仅在 sandbox 环境中可用。
POST
/
v1
/
simulation
/
deposit
Simulate Deposit Creation
curl --request POST \
--url https://api-sandbox.uqpaytech.com/api/v1/simulation/deposit \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--header 'x-idempotency-key: <x-idempotency-key>' \
--data '
{
"account_id": "eaf28076-017b-436f-a04c-212563a1aa4f",
"amount": 1,
"currency": "NOK",
"receiver_account_number": "11020075767",
"sender_name": "UQPAY Contract Test",
"sender_country": "SG",
"sender_account_number": "1234567890",
"sender_swift_code": "DBSSSGSG"
}
'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/simulation/deposit"
payload = {
"account_id": "eaf28076-017b-436f-a04c-212563a1aa4f",
"amount": 1,
"currency": "NOK",
"receiver_account_number": "11020075767",
"sender_name": "UQPAY Contract Test",
"sender_country": "SG",
"sender_account_number": "1234567890",
"sender_swift_code": "DBSSSGSG"
}
headers = {
"x-idempotency-key": "<x-idempotency-key>",
"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-idempotency-key': '<x-idempotency-key>',
'x-auth-token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
account_id: 'eaf28076-017b-436f-a04c-212563a1aa4f',
amount: 1,
currency: 'NOK',
receiver_account_number: '11020075767',
sender_name: 'UQPAY Contract Test',
sender_country: 'SG',
sender_account_number: '1234567890',
sender_swift_code: 'DBSSSGSG'
})
};
fetch('https://api-sandbox.uqpaytech.com/api/v1/simulation/deposit', 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/simulation/deposit",
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([
'account_id' => 'eaf28076-017b-436f-a04c-212563a1aa4f',
'amount' => 1,
'currency' => 'NOK',
'receiver_account_number' => '11020075767',
'sender_name' => 'UQPAY Contract Test',
'sender_country' => 'SG',
'sender_account_number' => '1234567890',
'sender_swift_code' => 'DBSSSGSG'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-auth-token: <api-key>",
"x-idempotency-key: <x-idempotency-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/simulation/deposit"
payload := strings.NewReader("{\n \"account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"amount\": 1,\n \"currency\": \"NOK\",\n \"receiver_account_number\": \"11020075767\",\n \"sender_name\": \"UQPAY Contract Test\",\n \"sender_country\": \"SG\",\n \"sender_account_number\": \"1234567890\",\n \"sender_swift_code\": \"DBSSSGSG\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-idempotency-key", "<x-idempotency-key>")
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/simulation/deposit")
.header("x-idempotency-key", "<x-idempotency-key>")
.header("x-auth-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"amount\": 1,\n \"currency\": \"NOK\",\n \"receiver_account_number\": \"11020075767\",\n \"sender_name\": \"UQPAY Contract Test\",\n \"sender_country\": \"SG\",\n \"sender_account_number\": \"1234567890\",\n \"sender_swift_code\": \"DBSSSGSG\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/simulation/deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-idempotency-key"] = '<x-idempotency-key>'
request["x-auth-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"eaf28076-017b-436f-a04c-212563a1aa4f\",\n \"amount\": 1,\n \"currency\": \"NOK\",\n \"receiver_account_number\": \"11020075767\",\n \"sender_name\": \"UQPAY Contract Test\",\n \"sender_country\": \"SG\",\n \"sender_account_number\": \"1234567890\",\n \"sender_swift_code\": \"DBSSSGSG\"\n}"
response = http.request(request)
puts response.read_body{
"sender_bank": {
"bank_name": "",
"bank_address": ""
},
"deposit_id": "984164be-e5c9-4603-b39a-d3981eae146d",
"short_reference_id": "260909-R3OVNXNO",
"amount": "1",
"currency": "NOK",
"deposit_fee": "0",
"create_time": "2026-09-09T18:02:00.842176436+08:00",
"complete_time": "0001-01-01T00:00:00Z",
"deposit_status": "PENDING",
"receiver_account_number": "11020075767",
"deposit_reference": "",
"sender": {
"sender_name": "UQPAY Contract Test",
"sender_country": "SG",
"sender_account_number": "1234567890",
"sender_swift_code": "DBSSSGSG",
"sender_address": ""
}
}Authorizations
由 UQPAY 提供的登录 API Token。
Headers
用于保持操作幂等性的唯一标识符(UUID),确保同一操作的重复执行不会产生意外影响或重复。它有助于在网络错误、重试或失败时保持数据一致性。
Body
application/json
接收模拟充值的账户 ID。账户必须已激活且验证通过。
Example:
"eaf28076-017b-436f-a04c-212563a1aa4f"
待充值的金额。
Example:
1000
受益人银行账户的 SWIFT 代码。
Maximum string length:
30Example:
"WELGBE22"
收款方的账号。
Example:
"SG123456789012345678"
汇款方的账号。
Example:
"GB41TCCL12345634178496"
面向客户展示的商户名称。
Example:
"UQPAY SG"
Response
200 - application/json
充值模拟成功。
充值 ID。
Example:
"72970a7c-7921-431c-b95f-3438724ba16f"
系统生成的用于标识该实体的编号。
Example:
"P220406-LLCVLRM"
充值的金额。
Example:
"10000"
充值的状态。
Available options:
PENDING, COMPLETED, FAILED Example:
"PENDING"
对象创建的完成时间。
Example:
"2024-03-21T17:17:32+08:00"
账号,多用于非欧洲国家/地区,account_number 与 iban 须填写其一。
仅允许英文字母(大小写)和数字;不允许使用短横线或其他特殊字符。
Maximum string length:
60Pattern:
^[a-zA-Z0-9]*$Example:
"12345678"
发起该充值的汇款方信息。
Show child attributes
Show child attributes
对象创建的创建时间。
Example:
"2024-03-21T17:17:32+08:00"

