Recode.md 2.7 KB

Get Transactions By Last Update Date

Description

This function allows Operator to get transactions by last update date. Without getting too much duplicated data. Return "3000" records at most per API Call (ascending order). Suggest operator to invoke this API every 3~5 minutes.

Request method:( Host-> BeSoft):post

Encoding method:application/x-www-form-urlencoded

Besoft The response data format is: application/json

Method URL

{besoftapi}/api/game/getbalanceoperationLog

Request Parameters

Name Type Required Description
cert string Y security code
user string Y only one user name, Query all user transactions if user name is empty
extension1 string Y Agent ID
status integer N return all data0: return settled data , 1: return cancelled data
startdate string Y Need to convert datetime to long format. 1517265756000 : 2018/01/30 06:42:36(GMT+8)Start date and time
enddate string Y Need to convert datetime to long format. 1517265756000 : 2018/01/30 06:42:36(GMT+8)End date and time

Example

  • URL:
  • HTTP Method
    • POST
  • Form Data

    Content-Type: application/x-www-form-urlencoded

    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
    extension1:adminweb
    user:test1
    page:0
    pagesize:20
    startdate:1700122818110
    enddate:1700123037718
    

Return Result

Name Type Description
status Int32 status code
totalsize Int32 total transactions in query result
result array Result data array
result.user string user id
result.sellbuy double 1.Transfer score to player , 2.Transfer score from player
result.createdate Int64 TimeStamp of data addition (MS)
result.extension1 string Agent ID

Successful Result

{
"status":1, "count":1, "transactions":[
{
"id":"2019052810043052277244837023322", "gameNumber":"201905281004305227724483702332",
"userId":"test01", "extension1":"gggggggg", "status":"Pay", "gameId":3,
"chair":0, "room":"0", "profit":0,
"validbet":1,
"count":1, "currency":"CNY",
"updateTime":"05/28/2019 10:04:30.793",
"createTime": 1558980270793,
"betTransTime":"05/28/2019 10:04:30.408",
"payTransTime":"05/28/2019 10:04:30.698", "betAmount":1,
"realBetAmount":1, "payAmount":1, "realPayAmount":1
}
]
}

Failed Result

{
    "status":1, "totalsize": 0,"result":[]
    }

Failed Result

{
"status": 0
}