取得歷史注單列表
curl --request GET \
--url https://your-api-host/vendor/v2.0/betlog/history/listByTime \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/betlog/history/listByTime",
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/betlog/history/listByTime', 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/betlog/history/listByTime"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"betlogList": [
{
"betID": "428263_1-1_22882_24",
"channelID": 1,
"account": "player001",
"currency": "CNY",
"gameID": 22,
"gameType": "slot",
"bet": 4.5,
"payout": 9,
"winLose": 4.5,
"freeGame": 1,
"status": 1,
"betMode": "main",
"betTime": "2022-07-04T22:54:29.649+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T23:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
注單
取得歷史注單列表
GET
/
vendor
/
v2.0
/
betlog
/
history
/
listByTime
取得歷史注單列表
curl --request GET \
--url https://your-api-host/vendor/v2.0/betlog/history/listByTime \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/betlog/history/listByTime",
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/betlog/history/listByTime', 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/betlog/history/listByTime"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"betlogList": [
{
"betID": "428263_1-1_22882_24",
"channelID": 1,
"account": "player001",
"currency": "CNY",
"gameID": 22,
"gameType": "slot",
"bet": 4.5,
"payout": 9,
"winLose": 4.5,
"freeGame": 1,
"status": 1,
"betMode": "main",
"betTime": "2022-07-04T22:54:29.649+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T23:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 歷史注單為1小時前注單,最大保留時間為3個月。
- 若同一注單單號有一張注單以上的注單 (Ex:改單狀況),則回傳最晚生成的那張注單。
- 此服務有連線次數限制,限制為每秒限制呼叫 2 次 (2/s)。
- 單次搜尋的起迄時間區間最大為15分鐘,且不得跨日。
- 此功能不提供單錢包介接商使用。
- 分頁請參考查詢分頁注意事項。
請求參數
number
必填
參與簽章
渠道編號 (無渠道請帶入1,帶入0查詢全部)
string
參與簽章
查詢憑證 (初次查詢帶入空白,之後應帶入前一次結果的nextToken)
number
必填
參與簽章
返回限制筆數 (最小2000筆,最大5000筆)
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
顯示 屬性
顯示 屬性
object[]
number
下次查詢憑證(最後一次查詢返回空字串)
number
返回限制筆數
number
本次查詢總注單數
object
{
"data": {
"betlogList": [
{
"betID": "428263_1-1_22882_24",
"channelID": 1,
"account": "player001",
"currency": "CNY",
"gameID": 22,
"gameType": "slot",
"bet": 4.5,
"payout": 9,
"winLose": 4.5,
"freeGame": 1,
"status": 1,
"betMode": "main",
"betTime": "2022-07-04T22:54:29.649+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T23:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}