取得存取款詳細資訊
curl --request GET \
--url https://your-api-host/vendor/v2.0/transaction/detail \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/transaction/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://your-api-host/vendor/v2.0/transaction/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-api-host/vendor/v2.0/transaction/detail"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"transactionID": "deposit-7524266853ebe08f9783dae0ac31ba97",
"status": true,
"channelID": 1,
"account": "player001",
"currency": "CNY",
"amount": 99,
"balanceBefore": 0,
"balanceAfter": 99,
"time": "2022-07-01T10:13:54.920+08:00"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
錢包
取得存取款詳細資訊
GET
/
vendor
/
v2.0
/
transaction
/
detail
取得存取款詳細資訊
curl --request GET \
--url https://your-api-host/vendor/v2.0/transaction/detail \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/transaction/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://your-api-host/vendor/v2.0/transaction/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-api-host/vendor/v2.0/transaction/detail"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"transactionID": "deposit-7524266853ebe08f9783dae0ac31ba97",
"status": true,
"channelID": 1,
"account": "player001",
"currency": "CNY",
"amount": 99,
"balanceBefore": 0,
"balanceAfter": 99,
"time": "2022-07-01T10:13:54.920+08:00"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 存取款紀錄資料保存3個月。
- 此服務僅支援轉帳錢包會員。
- 單次搜尋的最大時間區間為2小時,且不得跨日。
請求參數
string
required
參與簽章
交易代碼
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
object
{
"data": {
"transactionID": "deposit-7524266853ebe08f9783dae0ac31ba97",
"status": true,
"channelID": 1,
"account": "player001",
"currency": "CNY",
"amount": 99,
"balanceBefore": 0,
"balanceAfter": 99,
"time": "2022-07-01T10:13:54.920+08:00"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}