List Deposits
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/deposit \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/deposit"
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/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/deposit",
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/deposit"
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/deposit")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/deposit")
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": 10,
"total_items": 105,
"data": [
{
"deposit_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"short_reference_id": "P220406-LLCVLRM",
"amount": "10000",
"currency": "USD",
"deposit_fee": "1",
"deposit_status": "COMPLETED",
"deposit_method": "LOCAL",
"complete_time": "2024-03-01T00:00:00+08:00",
"receiver_account_number": "12345678",
"sender": {
"sender_type": "INDIVIDUAL",
"name_type": "NAMED",
"sender_name": "UQPAY SG",
"sender_country": "SG",
"sender_account_number": "12345678",
"sender_swift_code": "WELGBE22"
},
"deposit_reference": "test reference",
"create_time": "2024-03-01T00:00:00+08:00"
}
]
}Deposits
List Deposits
返回向你的 UQPAY 钱包发起的充值列表。你可以通过指定时间范围来筛选结果。如果未提供时间范围,或仅指定结束日期,返回结果将包含截至今天或指定结束日期前 30 天内的充值。
GET
/
v1
/
deposit
List Deposits
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/deposit \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/deposit"
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/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/deposit",
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/deposit"
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/deposit")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/deposit")
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": 10,
"total_items": 105,
"data": [
{
"deposit_id": "72970a7c-7921-431c-b95f-3438724ba16f",
"short_reference_id": "P220406-LLCVLRM",
"amount": "10000",
"currency": "USD",
"deposit_fee": "1",
"deposit_status": "COMPLETED",
"deposit_method": "LOCAL",
"complete_time": "2024-03-01T00:00:00+08:00",
"receiver_account_number": "12345678",
"sender": {
"sender_type": "INDIVIDUAL",
"name_type": "NAMED",
"sender_name": "UQPAY SG",
"sender_country": "SG",
"sender_account_number": "12345678",
"sender_swift_code": "WELGBE22"
},
"deposit_reference": "test reference",
"create_time": "2024-03-01T00:00:00+08:00"
}
]
}授权
由 UQPAY 提供的登录 API Token。
查询参数
每页返回的最大条目数。必须在 10 到 100 之间(含)。
必填范围:
1 <= x <= 100示例:
10
用于获取特定一组条目的页码。必须 大于等于 1。
必填范围:
x >= 1示例:
1
created_time 的开始时间,ISO8601 格式(含)。
示例:
"2024-03-01T00:00:00+08:00"
created_time 的结束时间,ISO8601 格式(含)。
示例:
"2024-03-01T00:00:00+08:00"
充值的状态。
PENDING:充值正在处理中,资金尚不可用。COMPLETED:充值已成功处理,资金可用。FAILED:充值无法处理,已被拒绝或退回。
可用选项:
PENDING, COMPLETED, FAILED 示例:
"COMPLETED"

