取得點數異動紀錄
curl --request GET \
--url https://your-api-host/vendor/v2.0/transaction/changeList \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/transaction/changeList",
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/changeList', 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/changeList"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"transactionList": [
{
"transactionID": "deposit-7524266853ebe08f9783dba97",
"status": true,
"channelID": 1,
"account": "player001",
"currency": "CNY",
"amount": 99,
"balanceBefore": 0,
"balanceAfter": 99,
"time": "2022-07-04T10:13:54.920+08:00",
"changeType": "PlatformTransfer",
"note": ""
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
錢包
取得點數異動紀錄
GET
/
vendor
/
v2.0
/
transaction
/
changeList
取得點數異動紀錄
curl --request GET \
--url https://your-api-host/vendor/v2.0/transaction/changeList \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/transaction/changeList",
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/changeList', 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/changeList"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"transactionList": [
{
"transactionID": "deposit-7524266853ebe08f9783dba97",
"status": true,
"channelID": 1,
"account": "player001",
"currency": "CNY",
"amount": 99,
"balanceBefore": 0,
"balanceAfter": 99,
"time": "2022-07-04T10:13:54.920+08:00",
"changeType": "PlatformTransfer",
"note": ""
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 點數異動紀錄資料保存3個月。
- 單次搜尋的最大時間區間為30分鐘,且不得跨日。
- 此服務僅支援轉帳錢包會員。
- 點數異動類型: GameRefund、PlatformTransfer、EventBonus、ManualAdjustment。
- 分頁請參考查詢分頁注意事項。
請求參數
string
參與簽章
點數異動類型 (查詢全部請帶空值,特定類型參照應用說明以逗點隔開,例如:PlatformTransfer,EventBonus)
string
參與簽章
查詢憑證 (初次查詢帶入空白,之後應帶入前一次結果的nextToken)
number
required
參與簽章
返回限制筆數 (最小2000筆,最大5000筆)
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
object
{
"data": {
"transactionList": [
{
"transactionID": "deposit-7524266853ebe08f9783dba97",
"status": true,
"channelID": 1,
"account": "player001",
"currency": "CNY",
"amount": 99,
"balanceBefore": 0,
"balanceAfter": 99,
"time": "2022-07-04T10:13:54.920+08:00",
"changeType": "PlatformTransfer",
"note": ""
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}